- fix paths in CATALOG;

- since I'm there, fix ownership of installed files;

- complete pkg-message and bump PORTREVISION.

PR:		ports/37518
Submitted by:	Paul Hoadley.
This commit is contained in:
Thierry Thomas 2004-12-13 13:44:13 +00:00
parent 4649ff8277
commit cf08b86e99
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=123932
4 changed files with 30 additions and 8 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= gmat
PORTVERSION= 0.2.4c
PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= ftp://ftp.ora.com/pub/gmat/
@ -15,7 +16,8 @@ COMMENT= O'Reilly's SGML formatting package
RUN_DEPENDS= ${LOCALBASE}/bin/nsgmls:${PORTSDIR}/textproc/sp \
${LOCALBASE}/bin/procmail:${PORTSDIR}/mail/procmail \
${LOCALBASE}/share/sgml/docbook/3.1/docbook.dtd:${PORTSDIR}/textproc/docbook-310 \
${LOCALBASE}/share/sgml/docbook/catalog:${PORTSDIR}/textproc/docbook \
${LOCALBASE}/share/sgml/iso12083/book.dtd:${PORTSDIR}/textproc/iso12083 \
gv:${PORTSDIR}/print/gv
USE_PERL5_BUILD=yes
@ -26,11 +28,21 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-0.2.4
PKGMESSAGE= ${WRKDIR}/pkg-message
PORTDOCS= README gmat.sgm
DTDVER?= 4.2 # docbook-xml version
post-patch:
@${RM} ${WRKSRC}/src/crlf/crlf.o ${WRKSRC}/src/crlf/crlf
@${RM} ${WRKSRC}/src/crlf/crlf.o ${WRKSRC}/src/crlf/crlf ${WRKSRC}/bin/gmat.troff.orig
pre-build:
# Change the pathnames in CATALOG & BOOKFILES
.for RP in /usr/local/prod %%PRODROOT%%
${REINPLACE_CMD} -e "s|${RP}/sgml/ISO_12083-1993/dtds|${LOCALBASE}/share/sgml/iso12083|" \
-e "s|${RP}/sgml/Davenport/dtds|${LOCALBASE}/share/sgml/docbook|" \
-e "s|${RP}/sgml/DocBook-XML/iso|${LOCALBASE}/share/xml/docbook/${DTDVER}/ent/iso|" \
-e "s|${RP}/sgml/DocBook-XML|${LOCALBASE}/share/xml/docbook/${DTDVER}|" \
-e "s|${RP}/sgml/DocBook|${LOCALBASE}/share/sgml/docbook|" \
${WRKSRC}/test/CATALOG ${WRKSRC}/sgml/CATALOG
.endfor
.for FILE in BOOKFILES CATALOG
${REINPLACE_CMD} -e "s|/usr/local/prod|${DATADIR}|" ${WRKSRC}/test/${FILE}
.endfor
@ -42,6 +54,7 @@ pre-build:
post-install:
@${STRIP_CMD} ${PREFIX}/bin/crlf
(cd ${WRKSRC}; tar cf - test) | (cd ${DATADIR}; tar xvf -)
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}

View file

@ -1,5 +1,14 @@
--- bin/gmat.troff~ Fri Dec 27 15:20:10 2002
+++ bin/gmat.troff Fri Dec 27 15:20:33 2002
--- bin/gmat.troff.orig Tue Feb 1 21:49:18 2000
+++ bin/gmat.troff Mon Dec 13 14:04:14 2004
@@ -90,7 +90,7 @@
$PS_FONT_FILE = ($ENV{"PSFONTFILE"}
|| &cfg($gmat, $PROGNAME, "ps-font-file")
- || "/usr/local/lib/groff/font/devps/download");
+ || "/usr/share/groff_font/devps");
############################################################################
# Let's get to work, process each file with its options
@@ -519,10 +519,10 @@
# HANDLE RETURN CODE!
} elsif ($preview) {

View file

@ -1,7 +1,8 @@
============================================================
===============================================================================
To use the programs in this package, add the path
/usr/local/share/gmat/bin to your PATH environment variable.
Then, type gmat /usr/local/share/doc/gmat/gmat.sgm
Then, type
gmat --job /usr/local/share/gmat/test/BOOKFILES /usr/local/share/doc/gmat/gmat.sgm
to format the documentation.
============================================================
===============================================================================

View file

@ -21,7 +21,6 @@ bin/crlf
%%DATADIR%%/bin/gmat.nop
%%DATADIR%%/bin/gmat.sgmls
%%DATADIR%%/bin/gmat.troff
%%DATADIR%%/bin/gmat.troff.orig
%%DATADIR%%/bin/gnct
%%DATADIR%%/bin/inx
%%DATADIR%%/bin/kern10sed