1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00

Support staging.

Sponsored by:	Absolight
This commit is contained in:
Mathieu Arnold 2014-02-17 16:14:39 +00:00
parent d67de138a9
commit f983befbc3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=344789
3 changed files with 13 additions and 25 deletions

View File

@ -6,7 +6,9 @@ PORTVERSION= 3.1
PORTREVISION= 4
CATEGORIES= textproc
MASTER_SITES= http://www.docbook.org/sgml/3.1/
PKGNAMESUFFIX= 310
DISTNAME= docbk31
EXTRACT_SUFX= .zip
MAINTAINER= gabor@FreeBSD.org
COMMENT= V3.1 of the DocBook DTD, designed for technical documentation
@ -14,38 +16,23 @@ COMMENT= V3.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/3.1/dtd
PLIST_SUB+= SGMLCAT_ADD="${SGMLCAT_ADD}" \
SGMLCAT_RM="${SGMLCAT_RM}"
DTDDIR= ${PREFIX}/share/sgml/docbook/3.1/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>

View File

@ -33,3 +33,4 @@ PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V3.1//EN" "dbcent.mod"
-- End of catalog data for DocBook V3.1 ................................. --
-- ...................................................................... --
CATALOG "%%PREFIX%%/share/sgml/iso8879/catalog"

View File

@ -1,4 +1,4 @@
@unexec %%SGMLCAT_RM%%
@unexec %%XMLCATMGR%% -sc %%SGMLCAT%% remove %D/%%DTDDIR%%/catalog
share/sgml/docbook/3.1/dtd/31chg.txt
share/sgml/docbook/3.1/dtd/40issues.txt
share/sgml/docbook/3.1/dtd/50issues.txt
@ -17,4 +17,4 @@ share/sgml/docbook/3.1/dtd/readme.txt
@dirrm share/sgml/docbook/3.1/dtd
@dirrm share/sgml/docbook/3.1
@dirrmtry share/sgml/docbook
@exec %%SGMLCAT_ADD%%
@exec %%XMLCATMGR%% -sc %%SGMLCAT%% add CATALOG %D/%%DTDDIR%%/catalog