diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2014-02-17 15:57:49 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2014-02-17 15:57:49 +0000 |
commit | a31c9c395bf62d0c7bad5caf133ef5c68ff0a1c6 (patch) | |
tree | ac3291ee1048eddeefef6f5745f582cf2bf7cb34 /textproc | |
parent | b8a6adbb70179a6b3e3301b9ec5352b6fdfd5d0e (diff) | |
download | ports-a31c9c395bf62d0c7bad5caf133ef5c68ff0a1c6.tar.gz ports-a31c9c395bf62d0c7bad5caf133ef5c68ff0a1c6.zip |
Notes
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/docbook-241/Makefile | 34 | ||||
-rw-r--r-- | textproc/docbook-241/files/catalog.in (renamed from textproc/docbook-241/files/catalog) | 1 | ||||
-rw-r--r-- | textproc/docbook-241/pkg-plist | 4 |
3 files changed, 14 insertions, 25 deletions
diff --git a/textproc/docbook-241/Makefile b/textproc/docbook-241/Makefile index c1e27bb26a62..af8ff9e7af5b 100644 --- a/textproc/docbook-241/Makefile +++ b/textproc/docbook-241/Makefile @@ -7,7 +7,9 @@ PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= textproc MASTER_SITES= http://www.oasis-open.org/docbook/sgml/2.4.1/ +PKGNAMESUFFIX= 241 DISTNAME= docbk241 +EXTRACT_SUFX= .zip MAINTAINER= gabor@FreeBSD.org COMMENT= V2.4.1 of the DocBook DTD, designed for technical documentation @@ -15,38 +17,24 @@ COMMENT= V2.4.1 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/2.4.1/dtd -PLIST_SUB+= SGMLCAT_ADD="${SGMLCAT_ADD}" \ - SGMLCAT_RM="${SGMLCAT_RM}" +DTDDIR= ${PREFIX}/share/sgml/docbook/2.4.1/dtd +PLIST_SUB+= XMLCATMGR=${XMLCATMGR} SGMLCAT=${SGMLCAT} \ + DTDDIR=${DTDDIR:S/${PREFIX}\///} \ + FOO=" " 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-241/files/catalog b/textproc/docbook-241/files/catalog.in index de377e5ef6c3..845f56f63bf1 100644 --- a/textproc/docbook-241/files/catalog +++ b/textproc/docbook-241/files/catalog.in @@ -6,3 +6,4 @@ PUBLIC "-//Davenport//ELEMENTS CALS-Based DocBook Table Model V2.4.1//EN" "calst PUBLIC "-//Davenport//ELEMENTS DocBook Information Pool V2.4.1//EN" "dbpool.mod" PUBLIC "-//Davenport//ELEMENTS DocBook Document Hierarchy V2.4.1//EN" "dbhier.mod" PUBLIC "-//Davenport//ELEMENTS DocBook Additional General Entities//EN" "dbgenent.mod" +CATALOG "%%PREFIX%%/share/sgml/iso8879/catalog" diff --git a/textproc/docbook-241/pkg-plist b/textproc/docbook-241/pkg-plist index fb331e91944d..262b317cfd15 100644 --- a/textproc/docbook-241/pkg-plist +++ b/textproc/docbook-241/pkg-plist @@ -1,4 +1,4 @@ -@unexec %%SGMLCAT_RM%% +@unexec %%XMLCATMGR%% -sc %%SGMLCAT%% remove %D/%%DTDDIR%%/catalog share/sgml/docbook/2.4.1/dtd/241chg.txt share/sgml/docbook/2.4.1/dtd/announce.txt share/sgml/docbook/2.4.1/dtd/calstbl.mod @@ -31,4 +31,4 @@ share/sgml/docbook/2.4.1/dtd/iso-tech.gml @dirrm share/sgml/docbook/2.4.1/dtd @dirrm share/sgml/docbook/2.4.1 @dirrmtry share/sgml/docbook -@exec %%SGMLCAT_ADD%% +@exec %%XMLCATMGR%% -sc %%SGMLCAT%% add CATALOG %D/%%DTDDIR%%/catalog |