svn commit: r344798 - head/textproc/docbook-450
Mathieu Arnold
mat at FreeBSD.org
Mon Feb 17 17:20:29 UTC 2014
Author: mat
Date: Mon Feb 17 17:20:28 2014
New Revision: 344798
URL: http://svnweb.freebsd.org/changeset/ports/344798
QAT: https://qat.redports.org/buildarchive/r344798/
Log:
Convert to staging.
Sponsored by: Absolight
Modified:
head/textproc/docbook-450/Makefile
Modified: head/textproc/docbook-450/Makefile
==============================================================================
--- head/textproc/docbook-450/Makefile Mon Feb 17 17:11:19 2014 (r344797)
+++ head/textproc/docbook-450/Makefile Mon Feb 17 17:20:28 2014 (r344798)
@@ -6,70 +6,42 @@ PORTVERSION= 4.5
PORTREVISION= 2
CATEGORIES= textproc
MASTER_SITES= http://www.oasis-open.org/docbook/sgml/${PORTVERSION}/
+PKGNAMESUFFIX= 450
+EXTRACT_SUFX= .zip
MAINTAINER= gabor at FreeBSD.org
COMMENT= DocBook/SGML DTD V4.5, designed for technical documentation
-RUN_DEPENDS= ${LOCALBASE}/${ISOCAT}:${PORTSDIR}/textproc/iso8879 \
+RUN_DEPENDS= ${ISOCAT}:${PORTSDIR}/textproc/iso8879 \
${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr
-USE_ZIP= yes
NO_BUILD= yes
-NO_WRKSUBDIR= yes
-PKGNAMESUFFIX= ${PKGORIGIN:T:S/docbook-//}
-PLIST= ${WRKSRC}/pkg-plist
-
-SGMLCATBASE= share/sgml
-DTD_NAME= ${PORTNAME}
-DTD_VERSION= ${PORTVERSION}
-ISOCAT= ${SGMLCATBASE}/iso8879/catalog
+EXTRACT_AFTER_ARGS= -s ,^,${DISTNAME}/,
+DTDDIR= ${PREFIX}/share/sgml/${PORTNAME}/${PORTVERSION}
+SGMLCAT= ${PREFIX}/share/sgml/catalog.ports
+ISOCAT= ${PREFIX}/share/sgml/iso8879/catalog
XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
-CATALOG_PORTS_SGML= ${PREFIX}/${SGMLCATBASE}/catalog.ports
-REGIST_CAT_FLAGS_SGML= -sc ${CATALOG_PORTS_SGML} \
- add CATALOG ${DTD_NAME}/${DTD_VERSION}/catalog
-UNREGIST_CAT_FLAGS_SGML= -sc ${CATALOG_PORTS_SGML} \
- remove CATALOG ${DTD_NAME}/${DTD_VERSION}/catalog
-DOC_FILES= README
-DTDDIR= ${SGMLCATBASE}/${DTD_NAME}/${DTD_VERSION}
+PLIST_SUB+= XMLCATMGR=${XMLCATMGR} SGMLCAT=${SGMLCAT} \
+ DTDDIR=${DTDDIR:S/${PREFIX}\///}
+
+PORTDOCS= README
DTD_FILES= calstblx.dtd catalog.xml dbcentx.mod dbgenent.mod \
dbhierx.mod dbnotnx.mod dbpoolx.mod docbook.cat docbook.dcl \
docbook.dtd docbookx.dtd htmltblx.mod soextblx.dtd catalog
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}/${PORTVERSION}
-NO_STAGE= yes
post-extract:
${CP} ${WRKSRC}/docbook.cat ${WRKSRC}/catalog
post-patch:
${ECHO_CMD} 'CATALOG "${LOCALBASE}/${ISOCAT}"' >> ${WRKSRC}/catalog
-pre-install:
- (for F in ${DTD_FILES}; do \
- ${ECHO_CMD} "${DTDDIR}/$${F}"; \
- done;\
- ${ECHO_CMD} "@dirrm ${DTDDIR}";\
- ${ECHO_CMD} "@dirrmtry ${SGMLCATBASE}/${DTD_NAME}"; ) > ${PLIST}
-.if !defined(NOPORTDOCS)
- (for F in ${DOC_FILES}; do \
- ${ECHO_CMD} "${DOCSDIR:S,^${PREFIX}/,,}/$${F}"; \
- done;\
- ${ECHO_CMD} "@dirrm ${DOCSDIR:S,^${PREFIX}/,,}" ) >> ${PLIST}
- ${ECHO_CMD} "@dirrm ${DOCSDIR:S!^${PREFIX}/!!:S!${PORTVERSION}!!}" >> ${PLIST}
-.endif
- ${ECHO_CMD} "@exec ${XMLCATMGR} ${REGIST_CAT_FLAGS_SGML}" >> ${PLIST}
- ${ECHO_CMD} "@unexec ${XMLCATMGR} ${UNREGIST_CAT_FLAGS_SGML}" >> ${PLIST}
-
do-install:
- ${MKDIR} ${PREFIX}/${DTDDIR}
- ${INSTALL_DATA} ${DTD_FILES:S,^,${WRKSRC}/,} ${PREFIX}/${DTDDIR}
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${DOC_FILES:S,^,${WRKSRC}/,} ${DOCSDIR}
-.endif
-
-post-install:
- -${XMLCATMGR} ${REGIST_CAT_FLAGS_SGML}
+ @${MKDIR} ${STAGEDIR}${DTDDIR}
+ ${INSTALL_DATA} ${DTD_FILES:S,^,${WRKSRC}/,} ${STAGEDIR}${DTDDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list