mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-10 02:21:15 +02:00
create bsd12 branch
This commit is contained in:
38
text/xmlcatmgr/Makefile
Normal file
38
text/xmlcatmgr/Makefile
Normal file
@@ -0,0 +1,38 @@
|
||||
#
|
||||
# $Id: Makefile 1285 2007-10-25 11:42:14Z root $
|
||||
#
|
||||
PORTNAME= xmlcatmgr
|
||||
PORTVERSION= 2.2
|
||||
CATEGORIES= textproc
|
||||
MASTER_SITES= SF
|
||||
|
||||
|
||||
MAINTAINER= onborodin@gmail.com
|
||||
COMMENT= SGML and XML catalog manager
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USES+= gmake
|
||||
CONFIGURE_ARGS+= DEFAULT_CATALOG_SGML="${CATALOG_SGML}"
|
||||
CONFIGURE_ARGS+= DEFAULT_CATALOG_XML="${CATALOG_XML}"
|
||||
CONFIGURE_ARGS+= --disable-docs
|
||||
|
||||
PLIST_FILES+= man/man1/xmlcatmgr.1.gz
|
||||
|
||||
XMLCATMGR= ${PREFIX}/bin/xmlcatmgr
|
||||
CATALOG_SGML= ${LOCALBASE}/share/sgml/catalog
|
||||
CATALOG_XML= ${LOCALBASE}/share/xml/catalog.xml
|
||||
|
||||
|
||||
SUB_FILES+= pkg-install pkg-deinstall
|
||||
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
|
||||
PKGINSTALL= ${WRKDIR}/pkg-install
|
||||
|
||||
LIST_SUB+= XMLCATMGR=${XMLCATMGR}
|
||||
LIST_SUB+= CATALOG_SGML=${CATALOG_SGML}
|
||||
LIST_SUB+= CATALOG_XML=${CATALOG_XML}
|
||||
|
||||
SUB_LIST+= ${LIST_SUB}
|
||||
PLIST_SUB+= ${LIST_SUB}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
#EOF
|
||||
2
text/xmlcatmgr/distinfo
Normal file
2
text/xmlcatmgr/distinfo
Normal file
@@ -0,0 +1,2 @@
|
||||
SHA256 (xmlcatmgr-2.2.tar.gz) = ea1142b6aef40fbd624fc3e2130cf10cf081b5fa88e5229c92b8f515779d6fdc
|
||||
SIZE (xmlcatmgr-2.2.tar.gz) = 97265
|
||||
9
text/xmlcatmgr/files/pkg-deinstall.in
Normal file
9
text/xmlcatmgr/files/pkg-deinstall.in
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
case $2 in
|
||||
DEINSTALL)
|
||||
;;
|
||||
POST-DEINSTALL)
|
||||
;;
|
||||
esac
|
||||
#EOF
|
||||
23
text/xmlcatmgr/files/pkg-install.in
Normal file
23
text/xmlcatmgr/files/pkg-install.in
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/bin/sh -x
|
||||
|
||||
set -x
|
||||
|
||||
XMLCATMGR="%%XMLCATMGR%%";
|
||||
CATALOG_SGML="%%CATALOG_SGML%%";
|
||||
CATALOG_XML="%%CATALOG_XML%%";
|
||||
|
||||
case $2 in
|
||||
PRE-INSTALL)
|
||||
;;
|
||||
POST-INSTALL)
|
||||
mkdir -p $(dirname ${CATALOG_SGML})
|
||||
if [ ! -f "${CATALOG_SGML}" ]; then
|
||||
${XMLCATMGR} -sc "${CATALOG_SGML}" create
|
||||
fi
|
||||
mkdir -p $(dirname ${CATALOG_XML})
|
||||
if [ ! -f "${CATALOG_XML}" ]; then
|
||||
${XMLCATMGR} -c "${CATALOG_XML}" create
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
#EOF
|
||||
11
text/xmlcatmgr/pkg-descr
Normal file
11
text/xmlcatmgr/pkg-descr
Normal file
@@ -0,0 +1,11 @@
|
||||
XML Catalog Manager (xmlcatmgr in its short form) is a small utility used
|
||||
to manipulate SGML and XML catalogs. It is extremely small and lightweight,
|
||||
specially designed to be run from packaging systems. Basically, it allows
|
||||
adding and removing entries from catalogs in a completely automated way.
|
||||
|
||||
A catalog is a lookup mechanism used to translate entities into other
|
||||
different entities. They can, for example, map public identifiers to
|
||||
local files or URIs. This allows you to tell the parser where to look
|
||||
for entities without having to modify the original document source.
|
||||
|
||||
WWW: http://xmlcatmgr.sourceforge.net/
|
||||
4
text/xmlcatmgr/pkg-plist
Normal file
4
text/xmlcatmgr/pkg-plist
Normal file
@@ -0,0 +1,4 @@
|
||||
bin/xmlcatmgr
|
||||
@exec test -r %%CATALOG_SGML%% || %%PREFIX%%/bin/xmlcatmgr -sc %%CATALOG_SGML%% create
|
||||
@exec test -r %%CATALOG_XML%% || %%PREFIX%%/bin/xmlcatmgr -c %%CATALOG_XML%% create
|
||||
|
||||
Reference in New Issue
Block a user