aboutsummaryrefslogtreecommitdiff
path: root/textproc/docbook-241/Makefile
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2003-07-01 06:21:09 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2003-07-01 06:21:09 +0000
commit7464f336e31fd80c931c3eb1c4c62776e4e3f7f1 (patch)
tree967c3aa47957c6218b6c16c34cfdf4261490cfc6 /textproc/docbook-241/Makefile
parentd7f26aaaed78fb07382fa672754350cb37ec40e0 (diff)
downloadports-7464f336e31fd80c931c3eb1c4c62776e4e3f7f1.tar.gz
ports-7464f336e31fd80c931c3eb1c4c62776e4e3f7f1.zip
Notes
Diffstat (limited to 'textproc/docbook-241/Makefile')
-rw-r--r--textproc/docbook-241/Makefile24
1 files changed, 15 insertions, 9 deletions
diff --git a/textproc/docbook-241/Makefile b/textproc/docbook-241/Makefile
index 49c809072fdc..7256c67a4628 100644
--- a/textproc/docbook-241/Makefile
+++ b/textproc/docbook-241/Makefile
@@ -9,6 +9,7 @@
PORTNAME= docbook
PORTVERSION= 241
+PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= ftp://ftp.ora.com/pub/davenport/
DISTFILES= docbk241.tar.Z
@@ -17,31 +18,36 @@ MAINTAINER= nik@FreeBSD.org
COMMENT= V2.4.1 of the DocBook DTD, designed for technical documentation
RUN_DEPENDS= ${ISOCAT}:${PORTSDIR}/textproc/iso8879 \
- ${MKCATALOG}:${PORTSDIR}/textproc/mkcatalog
+ ${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr
NO_MTREE= yes
EXTRACT_ONLY= # empty
NO_BUILD= yes
NO_WRKSUBDIR= yes
-PLIST_SUB= DTD_NAME=${PORTNAME} DTD_VERSION=2.4.1 MKCATALOG=${MKCATALOG}
+PLIST_SUB= DTD_NAME=${PORTNAME}
+PLIST_SUB+= DTD_VERSION=${DTD_VERSION}
+PLIST_SUB+= XMLCATMGR=${XMLCATMGR}
+PLIST_SUB+= CATALOG_PORTS_SGML=${CATALOG_PORTS_SGML}
INSTDIR= ${PREFIX}/share/sgml/docbook
ISOCAT= ${PREFIX}/share/sgml/iso8879/catalog
-MKCATALOG= ${PREFIX}/sbin/mkcatalog
+XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
+CATALOG_PORTS_SGML= ${PREFIX}/share/sgml/catalog.ports
+DTD_VERSION= 2.4.1
LATEST_LINK= docbook-241
pre-install:
- @[ -d ${INSTDIR}/2.4.1 ] || ${MKDIR} ${INSTDIR}/2.4.1
+ @[ -d ${INSTDIR}/${DTD_VERSION} ] || ${MKDIR} ${INSTDIR}/${DTD_VERSION}
do-install:
- @zcat ${DISTDIR}/docbk241.tar.Z |(cd ${INSTDIR}/2.4.1; pax -r)
- @${INSTALL_DATA} ${FILESDIR}/catalog ${INSTDIR}/2.4.1/catalog
- @${ECHO} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/2.4.1/catalog
- @${CHMOD} ${SHAREMODE} ${INSTDIR}/2.4.1/*
+ @zcat ${DISTDIR}/docbk241.tar.Z |(cd ${INSTDIR}/${DTD_VERSION}; pax -r)
+ @${INSTALL_DATA} ${FILESDIR}/catalog ${INSTDIR}/${DTD_VERSION}/catalog
+ @${ECHO} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/${DTD_VERSION}/catalog
+ @${CHMOD} ${SHAREMODE} ${INSTDIR}/${DTD_VERSION}/*
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${INSTDIR}
post-install:
- @${MKCATALOG} -q install ${PORTNAME}/2.4.1
+ @${XMLCATMGR} -sc ${CATALOG_PORTS_SGML} add CATALOG ${PORTNAME}/${DTD_VERSION}/catalog
.include <bsd.port.mk>