aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2014-02-18 01:59:10 +0800
committermat <mat@FreeBSD.org>2014-02-18 01:59:10 +0800
commit3df320ad6fee1577b8d71d5ce95274b43a9267a6 (patch)
tree55b3b1de547195de36334302204581377a512d10
parent337fd2ea1719268d4525bab65a5c2f968292ce6c (diff)
downloadfreebsd-ports-gnome-3df320ad6fee1577b8d71d5ce95274b43a9267a6.tar.gz
freebsd-ports-gnome-3df320ad6fee1577b8d71d5ce95274b43a9267a6.tar.zst
freebsd-ports-gnome-3df320ad6fee1577b8d71d5ce95274b43a9267a6.zip
Convert to staging.
Sponsored by: Absolight
-rw-r--r--textproc/docbook-sk/Makefile33
-rw-r--r--textproc/docbook-sk/pkg-plist88
2 files changed, 51 insertions, 70 deletions
diff --git a/textproc/docbook-sk/Makefile b/textproc/docbook-sk/Makefile
index b83ecc296adc..59c95982bbb0 100644
--- a/textproc/docbook-sk/Makefile
+++ b/textproc/docbook-sk/Makefile
@@ -7,45 +7,26 @@ PORTREVISION= 4
CATEGORIES= textproc
MASTER_SITES= http://www.oasis-open.org/docbook/xml/${PORTVERSION}/
DISTNAME= docbkx${PORTVERSION:S/.//g}
+EXTRACT_SUFX= .zip
MAINTAINER= gnome@FreeBSD.org
COMMENT= XML version of the DocBook DTD version controlled for ScrollKeeper
RUN_DEPENDS= ${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr
-USE_ZIP= yes
NO_BUILD= yes
-NO_WRKSUBDIR= yes
-PLIST_SUB= DTD_VERSION=${PORTVERSION} \
- XMLCATMGR=${XMLCATMGR} \
- DOCBOOKDIR=${DOCBOOKDIR} \
- CATALOG_PORTS_SGML=${CATALOG_PORTS_SGML} \
+EXTRACT_AFTER_ARGS= -s ,^,${DISTNAME}/,
+
+PLIST_SUB= XMLCATMGR=${XMLCATMGR} \
+ DOCBOOKDIR=${DOCBOOKDIR:S/${PREFIX}\///} \
CATALOG_PORTS_XML=${CATALOG_PORTS_XML}
DOCBOOKDIR= ${PREFIX}/share/xml/${PORTNAME:S/-sk//}/${PORTVERSION}
XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
-CATALOG_PORTS_SGML= ${PREFIX}/share/sgml/catalog.ports
CATALOG_PORTS_XML= ${PREFIX}/share/xml/catalog.ports
-NO_STAGE= yes
-pre-su-install:
- @[ -d ${DOCBOOKDIR}/ent ] || ${MKDIR} ${DOCBOOKDIR}/ent
-
do-install:
- for file in `${FIND} ${WRKSRC} -type f | ${SED} -e 's|^${WRKSRC}/||' | ${GREP} -v '^\.' | ${SORT}`; do \
- ${INSTALL_DATA} ${WRKSRC}/$$file ${DOCBOOKDIR}/$$file; \
- done
-
-post-install:
- @${XMLCATMGR} -c ${CATALOG_PORTS_XML} add public "-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN" file://${DOCBOOKDIR}/dbpoolx.mod
- @${XMLCATMGR} -c ${CATALOG_PORTS_XML} add public "-//OASIS//DTD DocBook XML V4.1.2//EN" file://${DOCBOOKDIR}/docbookx.dtd
- @${XMLCATMGR} -c ${CATALOG_PORTS_XML} add public "-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN" file://${DOCBOOKDIR}/dbcentx.mod
- @${XMLCATMGR} -c ${CATALOG_PORTS_XML} add public "-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" file://${DOCBOOKDIR}/dbnotnx.mod
- @${XMLCATMGR} -c ${CATALOG_PORTS_XML} add public "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN" file://${DOCBOOKDIR}/dbgenent.mod
- @${XMLCATMGR} -c ${CATALOG_PORTS_XML} add public "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN" file://${DOCBOOKDIR}/dbhierx.mod
- @${XMLCATMGR} -c ${CATALOG_PORTS_XML} add public "-//OASIS//DTD XML Exchange Table Model 19990315//EN" file://${DOCBOOKDIR}/soextblx.dtd
- @${XMLCATMGR} -c ${CATALOG_PORTS_XML} add public "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" file://${DOCBOOKDIR}/calstblx.dtd
- @${XMLCATMGR} -c ${CATALOG_PORTS_XML} add rewriteSystem "http://www.oasis-open.org/docbook/xml/4.1.2" file://${DOCBOOKDIR}
- @${XMLCATMGR} -c ${CATALOG_PORTS_XML} add rewriteURI "http://www.oasis-open.org/docbook/xml/4.1.2" file://${DOCBOOKDIR}
+ @${MKDIR} ${STAGEDIR}${DOCBOOKDIR}/ent
+ cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCBOOKDIR}
.include <bsd.port.mk>
diff --git a/textproc/docbook-sk/pkg-plist b/textproc/docbook-sk/pkg-plist
index 1706ca35e044..bb09dc77cced 100644
--- a/textproc/docbook-sk/pkg-plist
+++ b/textproc/docbook-sk/pkg-plist
@@ -1,24 +1,24 @@
-share/xml/docbook/%%DTD_VERSION%%/40chg.txt
-share/xml/docbook/%%DTD_VERSION%%/41chg.txt
-share/xml/docbook/%%DTD_VERSION%%/ChangeLog
-share/xml/docbook/%%DTD_VERSION%%/calstblx.dtd
-share/xml/docbook/%%DTD_VERSION%%/dbcentx.mod
-share/xml/docbook/%%DTD_VERSION%%/dbgenent.mod
-share/xml/docbook/%%DTD_VERSION%%/dbhierx.mod
-share/xml/docbook/%%DTD_VERSION%%/dbnotnx.mod
-share/xml/docbook/%%DTD_VERSION%%/dbpoolx.mod
-share/xml/docbook/%%DTD_VERSION%%/docbook.cat
-share/xml/docbook/%%DTD_VERSION%%/docbookx.dtd
-@exec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% add public "-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN" file://%%DOCBOOKDIR%%/dbpoolx.mod
-@exec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% add public "-//OASIS//DTD DocBook XML V4.1.2//EN" file://%%DOCBOOKDIR%%/docbookx.dtd
-@exec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% add public "-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN" file://%%DOCBOOKDIR%%/dbcentx.mod
-@exec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% add public "-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" file://%%DOCBOOKDIR%%/dbnotnx.mod
-@exec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% add public "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN" file://%%DOCBOOKDIR%%/dbgenent.mod
-@exec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% add public "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN" file://%%DOCBOOKDIR%%/dbhierx.mod
-@exec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% add public "-//OASIS//DTD XML Exchange Table Model 19990315//EN" file://%%DOCBOOKDIR%%/soextblx.dtd
-@exec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% add public "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" file://%%DOCBOOKDIR%%/calstblx.dtd
-@exec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% add rewriteSystem "http://www.oasis-open.org/docbook/xml/4.1.2" file://%%DOCBOOKDIR%%
-@exec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% add rewriteURI "http://www.oasis-open.org/docbook/xml/4.1.2" file://%%DOCBOOKDIR%%
+%%DOCBOOKDIR%%/40chg.txt
+%%DOCBOOKDIR%%/41chg.txt
+%%DOCBOOKDIR%%/ChangeLog
+%%DOCBOOKDIR%%/calstblx.dtd
+%%DOCBOOKDIR%%/dbcentx.mod
+%%DOCBOOKDIR%%/dbgenent.mod
+%%DOCBOOKDIR%%/dbhierx.mod
+%%DOCBOOKDIR%%/dbnotnx.mod
+%%DOCBOOKDIR%%/dbpoolx.mod
+%%DOCBOOKDIR%%/docbook.cat
+%%DOCBOOKDIR%%/docbookx.dtd
+@exec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% add public "-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN" file://%D/%%DOCBOOKDIR%%/dbpoolx.mod
+@exec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% add public "-//OASIS//DTD DocBook XML V4.1.2//EN" file://%D/%%DOCBOOKDIR%%/docbookx.dtd
+@exec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% add public "-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN" file://%D/%%DOCBOOKDIR%%/dbcentx.mod
+@exec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% add public "-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" file://%D/%%DOCBOOKDIR%%/dbnotnx.mod
+@exec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% add public "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN" file://%D/%%DOCBOOKDIR%%/dbgenent.mod
+@exec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% add public "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN" file://%D/%%DOCBOOKDIR%%/dbhierx.mod
+@exec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% add public "-//OASIS//DTD XML Exchange Table Model 19990315//EN" file://%D/%%DOCBOOKDIR%%/soextblx.dtd
+@exec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% add public "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" file://%D/%%DOCBOOKDIR%%/calstblx.dtd
+@exec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% add rewriteSystem "http://www.oasis-open.org/docbook/xml/4.1.2" file://%D/%%DOCBOOKDIR%%
+@exec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% add rewriteURI "http://www.oasis-open.org/docbook/xml/4.1.2" file://%D/%%DOCBOOKDIR%%
@unexec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% remove public "-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN"
@unexec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% remove public "-//OASIS//DTD DocBook XML V4.1.2//EN"
@unexec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% remove public "-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN"
@@ -29,28 +29,28 @@ share/xml/docbook/%%DTD_VERSION%%/docbookx.dtd
@unexec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% remove public "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN"
@unexec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% remove rewriteSystem "http://www.oasis-open.org/docbook/xml/4.1.2"
@unexec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% remove rewriteURI "http://www.oasis-open.org/docbook/xml/4.1.2"
-share/xml/docbook/%%DTD_VERSION%%/ent/iso-amsa.ent
-share/xml/docbook/%%DTD_VERSION%%/ent/iso-amsb.ent
-share/xml/docbook/%%DTD_VERSION%%/ent/iso-amsc.ent
-share/xml/docbook/%%DTD_VERSION%%/ent/iso-amsn.ent
-share/xml/docbook/%%DTD_VERSION%%/ent/iso-amso.ent
-share/xml/docbook/%%DTD_VERSION%%/ent/iso-amsr.ent
-share/xml/docbook/%%DTD_VERSION%%/ent/iso-box.ent
-share/xml/docbook/%%DTD_VERSION%%/ent/iso-cyr1.ent
-share/xml/docbook/%%DTD_VERSION%%/ent/iso-cyr2.ent
-share/xml/docbook/%%DTD_VERSION%%/ent/iso-dia.ent
-share/xml/docbook/%%DTD_VERSION%%/ent/iso-grk1.ent
-share/xml/docbook/%%DTD_VERSION%%/ent/iso-grk2.ent
-share/xml/docbook/%%DTD_VERSION%%/ent/iso-grk3.ent
-share/xml/docbook/%%DTD_VERSION%%/ent/iso-grk4.ent
-share/xml/docbook/%%DTD_VERSION%%/ent/iso-lat1.ent
-share/xml/docbook/%%DTD_VERSION%%/ent/iso-lat2.ent
-share/xml/docbook/%%DTD_VERSION%%/ent/iso-num.ent
-share/xml/docbook/%%DTD_VERSION%%/ent/iso-pub.ent
-share/xml/docbook/%%DTD_VERSION%%/ent/iso-tech.ent
-share/xml/docbook/%%DTD_VERSION%%/readme.txt
-share/xml/docbook/%%DTD_VERSION%%/soextblx.dtd
-@dirrm share/xml/docbook/%%DTD_VERSION%%/ent
-@dirrm share/xml/docbook/%%DTD_VERSION%%
+%%DOCBOOKDIR%%/ent/iso-amsa.ent
+%%DOCBOOKDIR%%/ent/iso-amsb.ent
+%%DOCBOOKDIR%%/ent/iso-amsc.ent
+%%DOCBOOKDIR%%/ent/iso-amsn.ent
+%%DOCBOOKDIR%%/ent/iso-amso.ent
+%%DOCBOOKDIR%%/ent/iso-amsr.ent
+%%DOCBOOKDIR%%/ent/iso-box.ent
+%%DOCBOOKDIR%%/ent/iso-cyr1.ent
+%%DOCBOOKDIR%%/ent/iso-cyr2.ent
+%%DOCBOOKDIR%%/ent/iso-dia.ent
+%%DOCBOOKDIR%%/ent/iso-grk1.ent
+%%DOCBOOKDIR%%/ent/iso-grk2.ent
+%%DOCBOOKDIR%%/ent/iso-grk3.ent
+%%DOCBOOKDIR%%/ent/iso-grk4.ent
+%%DOCBOOKDIR%%/ent/iso-lat1.ent
+%%DOCBOOKDIR%%/ent/iso-lat2.ent
+%%DOCBOOKDIR%%/ent/iso-num.ent
+%%DOCBOOKDIR%%/ent/iso-pub.ent
+%%DOCBOOKDIR%%/ent/iso-tech.ent
+%%DOCBOOKDIR%%/readme.txt
+%%DOCBOOKDIR%%/soextblx.dtd
+@dirrm %%DOCBOOKDIR%%/ent
+@dirrm %%DOCBOOKDIR%%
@unexec /bin/rmdir %D/share/xml/docbook 2>/dev/null || /usr/bin/true
@unexec /bin/rmdir %D/share/xml 2>/dev/null || /usr/bin/true