aboutsummaryrefslogtreecommitdiff
path: root/textproc/docbook-310/Makefile
diff options
context:
space:
mode:
authorGabor Kovesdan <gabor@FreeBSD.org>2008-08-07 22:21:54 +0000
committerGabor Kovesdan <gabor@FreeBSD.org>2008-08-07 22:21:54 +0000
commit053f0bdf1e2121ca1caf88c2ad68727635c4626c (patch)
tree75b51307215365728222f3da6cbbc1a30395cd40 /textproc/docbook-310/Makefile
parent7e413ac8ac3b278e8a5c6ed48b4a06e2b8863469 (diff)
downloadports-053f0bdf1e2121ca1caf88c2ad68727635c4626c.tar.gz
ports-053f0bdf1e2121ca1caf88c2ad68727635c4626c.zip
Notes
Diffstat (limited to 'textproc/docbook-310/Makefile')
-rw-r--r--textproc/docbook-310/Makefile40
1 files changed, 21 insertions, 19 deletions
diff --git a/textproc/docbook-310/Makefile b/textproc/docbook-310/Makefile
index 870ba15059dd..827f3b1e4efe 100644
--- a/textproc/docbook-310/Makefile
+++ b/textproc/docbook-310/Makefile
@@ -9,13 +9,12 @@
PORTNAME= docbook
PORTVERSION= 3.1
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= textproc
MASTER_SITES= http://www.docbook.org/sgml/3.1/
DISTNAME= docbk31
-EXTRACT_ONLY= # empty
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= gabor@FreeBSD.org
COMMENT= V3.1 of the DocBook DTD, designed for technical documentation
RUN_DEPENDS= ${ISOCAT}:${PORTSDIR}/textproc/iso8879 \
@@ -26,29 +25,32 @@ USE_ZIP= yes
NO_MTREE= yes
NO_BUILD= yes
NO_WRKSUBDIR= yes
-PLIST_SUB= DTD_NAME=${PORTNAME}
-PLIST_SUB+= DTD_VERSION=${PORTVERSION}
-PLIST_SUB+= XMLCATMGR=${XMLCATMGR}
-PLIST_SUB+= CATALOG_PORTS_SGML=${CATALOG_PORTS_SGML}
-INSTDIR= ${PREFIX}/share/sgml/docbook
-ISOCAT= ${PREFIX}/share/sgml/iso8879/catalog
+DTDDIR= share/sgml/docbook/3.1/dtd
+PLIST_SUB+= SGMLCAT_ADD="${SGMLCAT_ADD}" \
+ SGMLCAT_RM="${SGMLCAT_RM}"
+
XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
-CATALOG_PORTS_SGML= ${PREFIX}/share/sgml/catalog.ports
+SGMLCAT= ${PREFIX}/share/sgml/catalog.ports
+XMLCAT= ${PREFIX}/share/xml/catalog.ports
+ISOCAT= ${PREFIX}/share/sgml/iso8879/catalog
-LATEST_LINK= docbook-310
+SGMLCAT_ADD= ${XMLCATMGR} -sc ${SGMLCAT} add CATALOG \
+ ${PREFIX}/${DTDDIR}/catalog
+SGMLCAT_RM= ${XMLCATMGR} -sc ${SGMLCAT} remove \
+ ${PREFIX}/${DTDDIR}/catalog
-pre-su-install:
- @[ -d ${INSTDIR}/${PORTVERSION} ] || ${MKDIR} ${INSTDIR}/${PORTVERSION}
+LATEST_LINK= docbook-310
do-install:
- @${UNZIP_CMD} -a -q -o ${DISTDIR}/${DISTFILES} -d ${INSTDIR}/${PORTVERSION}
- @${INSTALL_DATA} ${FILESDIR}/catalog ${INSTDIR}/${PORTVERSION}/catalog
- @${ECHO_CMD} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/${PORTVERSION}/catalog
- @${CHMOD} ${SHAREMODE} ${INSTDIR}/${PORTVERSION}/*
- @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${INSTDIR}
+ @${MKDIR} ${PREFIX}/${DTDDIR}
+ files=$$(${FIND} ${WRKSRC} -type f | ${GREP} -v "${WRKSRC}/\."); \
+ for i in $${files}; do \
+ ${INSTALL_DATA} $${i} ${PREFIX}/${DTDDIR}; \
+ done
+ @${ECHO} "CATALOG \"${ISOCAT}\"" >> ${PREFIX}/${DTDDIR}/catalog
post-install:
- @${XMLCATMGR} -sc ${CATALOG_PORTS_SGML} add CATALOG ${PORTNAME}/${PORTVERSION}/catalog
+ -${SGMLCAT_ADD}
.include <bsd.port.mk>