- Fix build error [1]

- Clean up port and installed structure
- Bump PORTREVISION

Reported by:	pointyhat via erwin, pav [1]
This commit is contained in:
Gabor Kovesdan 2010-01-23 08:56:00 +00:00
parent 7cbbe35a50
commit 326cb2a5ba
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=248398
2 changed files with 39 additions and 35 deletions

View File

@ -9,11 +9,10 @@
PORTNAME= docbook
PORTVERSION= 4.1
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= textproc
MASTER_SITES= http://www.docbook.org/sgml/4.1/
DISTNAME= docbk41
EXTRACT_ONLY= # empty
MAINTAINER= gabor@FreeBSD.org
COMMENT= V4.1 of the DocBook DTD, designed for technical documentation
@ -25,29 +24,33 @@ 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/4.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
SGMLCAT_ADD= ${XMLCATMGR} -sc ${SGMLCAT} add CATALOG \
${PREFIX}/${DTDDIR}/catalog
SGMLCAT_RM= ${XMLCATMGR} -sc ${SGMLCAT} remove \
${PREFIX}/${DTDDIR}/catalog
LATEST_LINK= docbook-410
pre-su-install:
@${MKDIR} ${INSTDIR}/${PORTVERSION}
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
${INSTALL_DATA} ${FILESDIR}/catalog ${PREFIX}/${DTDDIR}
@${ECHO} "CATALOG \"${ISOCAT}\"" >> ${PREFIX}/${DTDDIR}/catalog
post-install:
@-${XMLCATMGR} -sc ${CATALOG_PORTS_SGML} add CATALOG ${PORTNAME}/${PORTVERSION}/catalog
-${SGMLCAT_ADD}
.include <bsd.port.mk>

View File

@ -1,19 +1,20 @@
share/sgml/docbook/4.1/40chg.txt
share/sgml/docbook/4.1/41chg.txt
share/sgml/docbook/4.1/50issues.txt
share/sgml/docbook/4.1/ChangeLog
share/sgml/docbook/4.1/cals-tbl.dtd
@unexec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% remove %%DTD_NAME%%/%%DTD_VERSION%%/catalog
share/sgml/docbook/4.1/catalog
@exec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% add CATALOG %%DTD_NAME%%/%%DTD_VERSION%%/catalog
share/sgml/docbook/4.1/dbcent.mod
share/sgml/docbook/4.1/dbgenent.mod
share/sgml/docbook/4.1/dbhier.mod
share/sgml/docbook/4.1/dbnotn.mod
share/sgml/docbook/4.1/dbpool.mod
share/sgml/docbook/4.1/docbook.cat
share/sgml/docbook/4.1/docbook.dcl
share/sgml/docbook/4.1/docbook.dtd
share/sgml/docbook/4.1/readme.txt
@unexec %%SGMLCAT_RM%%
share/sgml/docbook/4.1/dtd/40chg.txt
share/sgml/docbook/4.1/dtd/41chg.txt
share/sgml/docbook/4.1/dtd/50issues.txt
share/sgml/docbook/4.1/dtd/ChangeLog
share/sgml/docbook/4.1/dtd/cals-tbl.dtd
share/sgml/docbook/4.1/dtd/catalog
share/sgml/docbook/4.1/dtd/dbcent.mod
share/sgml/docbook/4.1/dtd/dbgenent.mod
share/sgml/docbook/4.1/dtd/dbhier.mod
share/sgml/docbook/4.1/dtd/dbnotn.mod
share/sgml/docbook/4.1/dtd/dbpool.mod
share/sgml/docbook/4.1/dtd/docbook.cat
share/sgml/docbook/4.1/dtd/docbook.dcl
share/sgml/docbook/4.1/dtd/docbook.dtd
share/sgml/docbook/4.1/dtd/readme.txt
@dirrm share/sgml/docbook/4.1/dtd
@dirrm share/sgml/docbook/4.1
@dirrmtry share/sgml/docbook
@exec %%SGMLCAT_ADD%%