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:
parent
652243af0a
commit
4348d291dd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=344791
@ -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>
|
||||
|
@ -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"
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user