aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/docbook-410
diff options
context:
space:
mode:
authorgabor <gabor@FreeBSD.org>2010-01-23 16:56:00 +0800
committergabor <gabor@FreeBSD.org>2010-01-23 16:56:00 +0800
commite37d0d760ac5e918a95d56189b6f90fd52a2c802 (patch)
tree15ee87a8ddb0c45bdd49b98e9a406b31ff5d3fed /textproc/docbook-410
parentbc057db12a0a385d6d467694add3b5ddefa6db36 (diff)
downloadfreebsd-ports-gnome-e37d0d760ac5e918a95d56189b6f90fd52a2c802.tar.gz
freebsd-ports-gnome-e37d0d760ac5e918a95d56189b6f90fd52a2c802.tar.zst
freebsd-ports-gnome-e37d0d760ac5e918a95d56189b6f90fd52a2c802.zip
- Fix build error [1]
- Clean up port and installed structure - Bump PORTREVISION Reported by: pointyhat via erwin, pav [1]
Diffstat (limited to 'textproc/docbook-410')
-rw-r--r--textproc/docbook-410/Makefile39
-rw-r--r--textproc/docbook-410/pkg-plist35
2 files changed, 39 insertions, 35 deletions
diff --git a/textproc/docbook-410/Makefile b/textproc/docbook-410/Makefile
index 31b1743cd716..b7242354c170 100644
--- a/textproc/docbook-410/Makefile
+++ b/textproc/docbook-410/Makefile
@@ -9,11 +9,10 @@
PORTNAME= docbook
PORTVERSION= 4.1
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= textproc
MASTER_SITES= http://www.docbook.org/sgml/4.1/
DISTNAME= docbk41
-EXTRACT_ONLY= # empty
MAINTAINER= gabor@FreeBSD.org
COMMENT= V4.1 of the DocBook DTD, designed for technical documentation
@@ -25,29 +24,33 @@ 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/4.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-410
+SGMLCAT_ADD= ${XMLCATMGR} -sc ${SGMLCAT} add CATALOG \
+ ${PREFIX}/${DTDDIR}/catalog
+SGMLCAT_RM= ${XMLCATMGR} -sc ${SGMLCAT} remove \
+ ${PREFIX}/${DTDDIR}/catalog
-pre-su-install:
- @${MKDIR} ${INSTDIR}/${PORTVERSION}
+LATEST_LINK= docbook-410
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
+ ${INSTALL_DATA} ${FILESDIR}/catalog ${PREFIX}/${DTDDIR}
+ @${ECHO} "CATALOG \"${ISOCAT}\"" >> ${PREFIX}/${DTDDIR}/catalog
post-install:
- @-${XMLCATMGR} -sc ${CATALOG_PORTS_SGML} add CATALOG ${PORTNAME}/${PORTVERSION}/catalog
+ -${SGMLCAT_ADD}
.include <bsd.port.mk>
diff --git a/textproc/docbook-410/pkg-plist b/textproc/docbook-410/pkg-plist
index d6d3f19a1542..b5c175dead9e 100644
--- a/textproc/docbook-410/pkg-plist
+++ b/textproc/docbook-410/pkg-plist
@@ -1,19 +1,20 @@
-share/sgml/docbook/4.1/40chg.txt
-share/sgml/docbook/4.1/41chg.txt
-share/sgml/docbook/4.1/50issues.txt
-share/sgml/docbook/4.1/ChangeLog
-share/sgml/docbook/4.1/cals-tbl.dtd
-@unexec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% remove %%DTD_NAME%%/%%DTD_VERSION%%/catalog
-share/sgml/docbook/4.1/catalog
-@exec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% add CATALOG %%DTD_NAME%%/%%DTD_VERSION%%/catalog
-share/sgml/docbook/4.1/dbcent.mod
-share/sgml/docbook/4.1/dbgenent.mod
-share/sgml/docbook/4.1/dbhier.mod
-share/sgml/docbook/4.1/dbnotn.mod
-share/sgml/docbook/4.1/dbpool.mod
-share/sgml/docbook/4.1/docbook.cat
-share/sgml/docbook/4.1/docbook.dcl
-share/sgml/docbook/4.1/docbook.dtd
-share/sgml/docbook/4.1/readme.txt
+@unexec %%SGMLCAT_RM%%
+share/sgml/docbook/4.1/dtd/40chg.txt
+share/sgml/docbook/4.1/dtd/41chg.txt
+share/sgml/docbook/4.1/dtd/50issues.txt
+share/sgml/docbook/4.1/dtd/ChangeLog
+share/sgml/docbook/4.1/dtd/cals-tbl.dtd
+share/sgml/docbook/4.1/dtd/catalog
+share/sgml/docbook/4.1/dtd/dbcent.mod
+share/sgml/docbook/4.1/dtd/dbgenent.mod
+share/sgml/docbook/4.1/dtd/dbhier.mod
+share/sgml/docbook/4.1/dtd/dbnotn.mod
+share/sgml/docbook/4.1/dtd/dbpool.mod
+share/sgml/docbook/4.1/dtd/docbook.cat
+share/sgml/docbook/4.1/dtd/docbook.dcl
+share/sgml/docbook/4.1/dtd/docbook.dtd
+share/sgml/docbook/4.1/dtd/readme.txt
+@dirrm share/sgml/docbook/4.1/dtd
@dirrm share/sgml/docbook/4.1
@dirrmtry share/sgml/docbook
+@exec %%SGMLCAT_ADD%%