diff options
author | mat <mat@FreeBSD.org> | 2014-02-18 00:26:16 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2014-02-18 00:26:16 +0800 |
commit | 53c0aa8e3bc07bdf05192501fc614ab31556c67d (patch) | |
tree | 46d0add1b9717737b7bb320ea0b33980f5bee336 /textproc | |
parent | 5e259741c9c0ce2aae2ce65d55ef302f470b93ee (diff) | |
download | freebsd-ports-gnome-53c0aa8e3bc07bdf05192501fc614ab31556c67d.tar.gz freebsd-ports-gnome-53c0aa8e3bc07bdf05192501fc614ab31556c67d.tar.zst freebsd-ports-gnome-53c0aa8e3bc07bdf05192501fc614ab31556c67d.zip |
Support staging.
Sponsored by: Absolight
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/docbook-400/Makefile | 33 | ||||
-rw-r--r-- | textproc/docbook-400/files/catalog.in (renamed from textproc/docbook-400/files/catalog) | 1 | ||||
-rw-r--r-- | textproc/docbook-400/pkg-plist | 4 |
3 files changed, 13 insertions, 25 deletions
diff --git a/textproc/docbook-400/Makefile b/textproc/docbook-400/Makefile index 41c37ce61b36..bc6c151c3b82 100644 --- a/textproc/docbook-400/Makefile +++ b/textproc/docbook-400/Makefile @@ -6,7 +6,9 @@ PORTVERSION= 4.0 PORTREVISION= 3 CATEGORIES= textproc MASTER_SITES= http://www.oasis-open.org/docbook/sgml/4.0/ +PKGNAMESUFFIX= 400 DISTNAME= docbk40 +EXTRACT_SUFX= .zip MAINTAINER= gabor@FreeBSD.org COMMENT= V4.0 of the DocBook DTD, designed for technical documentation @@ -14,38 +16,23 @@ COMMENT= V4.0 of the DocBook DTD, designed for technical documentation RUN_DEPENDS= ${ISOCAT}:${PORTSDIR}/textproc/iso8879 \ ${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr -USE_ZIP= yes NO_MTREE= yes NO_BUILD= yes -NO_WRKSUBDIR= yes +EXTRACT_AFTER_ARGS= -s ,^,${DISTNAME}/, -DTDDIR= share/sgml/docbook/4.0/dtd -PLIST_SUB+= SGMLCAT_ADD="${SGMLCAT_ADD}" \ - SGMLCAT_RM="${SGMLCAT_RM}" +DTDDIR= ${PREFIX}/share/sgml/docbook/4.0/dtd +PLIST_SUB+= XMLCATMGR=${XMLCATMGR} SGMLCAT=${SGMLCAT} \ + DTDDIR=${DTDDIR:S/${PREFIX}\///} XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr SGMLCAT= ${PREFIX}/share/sgml/catalog.ports -XMLCAT= ${PREFIX}/share/xml/catalog.ports ISOCAT= ${PREFIX}/share/sgml/iso8879/catalog -SGMLCAT_ADD= ${XMLCATMGR} -sc ${SGMLCAT} add CATALOG \ - ${PREFIX}/${DTDDIR}/catalog -SGMLCAT_RM= ${XMLCATMGR} -sc ${SGMLCAT} remove \ - ${PREFIX}/${DTDDIR}/catalog +SUB_FILES= catalog -PKGNAMESUFFIX= ${PKGORIGIN:T:S/docbook-//} - -NO_STAGE= yes do-install: - @${MKDIR} ${PREFIX}/${DTDDIR} - files=$$(${FIND} ${WRKSRC} -type f \! -name '.*'); \ - 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: - -${SGMLCAT_ADD} + @${MKDIR} ${STAGEDIR}${DTDDIR} + cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DTDDIR} + ${INSTALL_DATA} ${WRKDIR}/catalog ${STAGEDIR}${DTDDIR} .include <bsd.port.mk> diff --git a/textproc/docbook-400/files/catalog b/textproc/docbook-400/files/catalog.in index 4330aba2385a..6b8ef517cc9c 100644 --- a/textproc/docbook-400/files/catalog +++ b/textproc/docbook-400/files/catalog.in @@ -34,3 +34,4 @@ PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V4.0//EN" "dbcent.mod" -- End of catalog data for DocBook V4.0 ................................. -- -- ...................................................................... -- +CATALOG "%%PREFIX%%/share/sgml/iso8879/catalog" diff --git a/textproc/docbook-400/pkg-plist b/textproc/docbook-400/pkg-plist index 976804ac2ce3..5ef1909c69da 100644 --- a/textproc/docbook-400/pkg-plist +++ b/textproc/docbook-400/pkg-plist @@ -1,4 +1,4 @@ -@unexec %%SGMLCAT_RM%% +@unexec %%XMLCATMGR%% -sc %%SGMLCAT%% remove %D/%%DTDDIR%%/catalog share/sgml/docbook/4.0/dtd/40chg.txt share/sgml/docbook/4.0/dtd/50issues.txt share/sgml/docbook/4.0/dtd/cals-tbl.dtd @@ -15,4 +15,4 @@ share/sgml/docbook/4.0/dtd/readme.txt @dirrm share/sgml/docbook/4.0/dtd @dirrm share/sgml/docbook/4.0 @dirrmtry share/sgml/docbook -@exec %%SGMLCAT_ADD%% +@exec %%XMLCATMGR%% -sc %%SGMLCAT%% add CATALOG %D/%%DTDDIR%%/catalog |