diff options
author | gabor <gabor@FreeBSD.org> | 2008-08-08 06:21:54 +0800 |
---|---|---|
committer | gabor <gabor@FreeBSD.org> | 2008-08-08 06:21:54 +0800 |
commit | 5659972390c828fa08e3947e7daa6cb9cc6ae1a1 (patch) | |
tree | 87f467101cd67e46439f0c3827626bb17dfa0efb /textproc/docbook-310 | |
parent | 0a77258b6e5c4dc514985e20df9057c328527bac (diff) | |
download | freebsd-ports-gnome-5659972390c828fa08e3947e7daa6cb9cc6ae1a1.tar.gz freebsd-ports-gnome-5659972390c828fa08e3947e7daa6cb9cc6ae1a1.tar.zst freebsd-ports-gnome-5659972390c828fa08e3947e7daa6cb9cc6ae1a1.zip |
- Use the official site with the .zip distribution
- Ignore error if catalog is already registered
- Cleanup and consistency with similar ports
- Bump PORTREVISION
- Take maintainership
Diffstat (limited to 'textproc/docbook-310')
-rw-r--r-- | textproc/docbook-310/Makefile | 40 | ||||
-rw-r--r-- | textproc/docbook-310/pkg-plist | 35 |
2 files changed, 39 insertions, 36 deletions
diff --git a/textproc/docbook-310/Makefile b/textproc/docbook-310/Makefile index 870ba15059dd..827f3b1e4efe 100644 --- a/textproc/docbook-310/Makefile +++ b/textproc/docbook-310/Makefile @@ -9,13 +9,12 @@ PORTNAME= docbook PORTVERSION= 3.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= textproc MASTER_SITES= http://www.docbook.org/sgml/3.1/ DISTNAME= docbk31 -EXTRACT_ONLY= # empty -MAINTAINER= ports@FreeBSD.org +MAINTAINER= gabor@FreeBSD.org COMMENT= V3.1 of the DocBook DTD, designed for technical documentation RUN_DEPENDS= ${ISOCAT}:${PORTSDIR}/textproc/iso8879 \ @@ -26,29 +25,32 @@ USE_ZIP= yes NO_MTREE= yes NO_BUILD= yes NO_WRKSUBDIR= yes -PLIST_SUB= DTD_NAME=${PORTNAME} -PLIST_SUB+= DTD_VERSION=${PORTVERSION} -PLIST_SUB+= XMLCATMGR=${XMLCATMGR} -PLIST_SUB+= CATALOG_PORTS_SGML=${CATALOG_PORTS_SGML} -INSTDIR= ${PREFIX}/share/sgml/docbook -ISOCAT= ${PREFIX}/share/sgml/iso8879/catalog +DTDDIR= share/sgml/docbook/3.1/dtd +PLIST_SUB+= SGMLCAT_ADD="${SGMLCAT_ADD}" \ + SGMLCAT_RM="${SGMLCAT_RM}" + XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr -CATALOG_PORTS_SGML= ${PREFIX}/share/sgml/catalog.ports +SGMLCAT= ${PREFIX}/share/sgml/catalog.ports +XMLCAT= ${PREFIX}/share/xml/catalog.ports +ISOCAT= ${PREFIX}/share/sgml/iso8879/catalog -LATEST_LINK= docbook-310 +SGMLCAT_ADD= ${XMLCATMGR} -sc ${SGMLCAT} add CATALOG \ + ${PREFIX}/${DTDDIR}/catalog +SGMLCAT_RM= ${XMLCATMGR} -sc ${SGMLCAT} remove \ + ${PREFIX}/${DTDDIR}/catalog -pre-su-install: - @[ -d ${INSTDIR}/${PORTVERSION} ] || ${MKDIR} ${INSTDIR}/${PORTVERSION} +LATEST_LINK= docbook-310 do-install: - @${UNZIP_CMD} -a -q -o ${DISTDIR}/${DISTFILES} -d ${INSTDIR}/${PORTVERSION} - @${INSTALL_DATA} ${FILESDIR}/catalog ${INSTDIR}/${PORTVERSION}/catalog - @${ECHO_CMD} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/${PORTVERSION}/catalog - @${CHMOD} ${SHAREMODE} ${INSTDIR}/${PORTVERSION}/* - @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${INSTDIR} + @${MKDIR} ${PREFIX}/${DTDDIR} + files=$$(${FIND} ${WRKSRC} -type f | ${GREP} -v "${WRKSRC}/\."); \ + for i in $${files}; do \ + ${INSTALL_DATA} $${i} ${PREFIX}/${DTDDIR}; \ + done + @${ECHO} "CATALOG \"${ISOCAT}\"" >> ${PREFIX}/${DTDDIR}/catalog post-install: - @${XMLCATMGR} -sc ${CATALOG_PORTS_SGML} add CATALOG ${PORTNAME}/${PORTVERSION}/catalog + -${SGMLCAT_ADD} .include <bsd.port.mk> diff --git a/textproc/docbook-310/pkg-plist b/textproc/docbook-310/pkg-plist index 55bb9619ef16..f1b8790104fa 100644 --- a/textproc/docbook-310/pkg-plist +++ b/textproc/docbook-310/pkg-plist @@ -1,19 +1,20 @@ -share/sgml/docbook/3.1/31chg.txt -share/sgml/docbook/3.1/40issues.txt -share/sgml/docbook/3.1/50issues.txt -share/sgml/docbook/3.1/ChangeLog -share/sgml/docbook/3.1/cals-tbl.dtd -share/sgml/docbook/3.1/dbcent.mod -share/sgml/docbook/3.1/dbgenent.mod -share/sgml/docbook/3.1/dbhier.mod -share/sgml/docbook/3.1/dbnotn.mod -share/sgml/docbook/3.1/dbpool.mod -share/sgml/docbook/3.1/docbook.cat -share/sgml/docbook/3.1/docbook.dcl -share/sgml/docbook/3.1/docbook.dtd -@unexec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% remove %%DTD_NAME%%/%%DTD_VERSION%%/catalog -share/sgml/docbook/3.1/catalog -@exec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% add CATALOG %%DTD_NAME%%/%%DTD_VERSION%%/catalog -share/sgml/docbook/3.1/readme.txt +@unexec %%SGMLCAT_RM%% +share/sgml/docbook/3.1/dtd/31chg.txt +share/sgml/docbook/3.1/dtd/40issues.txt +share/sgml/docbook/3.1/dtd/50issues.txt +share/sgml/docbook/3.1/dtd/ChangeLog +share/sgml/docbook/3.1/dtd/cals-tbl.dtd +share/sgml/docbook/3.1/dtd/catalog +share/sgml/docbook/3.1/dtd/dbcent.mod +share/sgml/docbook/3.1/dtd/dbgenent.mod +share/sgml/docbook/3.1/dtd/dbhier.mod +share/sgml/docbook/3.1/dtd/dbnotn.mod +share/sgml/docbook/3.1/dtd/dbpool.mod +share/sgml/docbook/3.1/dtd/docbook.cat +share/sgml/docbook/3.1/dtd/docbook.dcl +share/sgml/docbook/3.1/dtd/docbook.dtd +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%% |