diff options
Diffstat (limited to 'textproc/sgmlformat')
-rw-r--r-- | textproc/sgmlformat/Makefile | 9 | ||||
-rw-r--r-- | textproc/sgmlformat/files/patch-sgmlfmt__Makefile | 19 | ||||
-rw-r--r-- | textproc/sgmlformat/files/patch-transpec-_Makefile | 16 | ||||
-rw-r--r-- | textproc/sgmlformat/pkg-plist | 3 |
4 files changed, 42 insertions, 5 deletions
diff --git a/textproc/sgmlformat/Makefile b/textproc/sgmlformat/Makefile index c01dd6bd9cf1..c700daa8ffcb 100644 --- a/textproc/sgmlformat/Makefile +++ b/textproc/sgmlformat/Makefile @@ -13,15 +13,11 @@ COMMENT= Generates groff and HTML from linuxdoc and docbook SGML documents USES= perl5 USE_PERL5= run - -MAN1= instant.1 sgmlfmt.1 -MAN5= transpec.5 -MANCOMPRESSED= yes +MAKE_ENV= STAGEDIR=${STAGEDIR} # There are two ports that satisfy the nsgmls requirement. # Jade is preferred. -NO_STAGE= yes .include <bsd.port.pre.mk> .if ${MACHINE_ARCH} != "i386" @@ -44,6 +40,9 @@ post-patch: @${REINPLACE_CMD} -e 's,nsgmls,onsgmls,g' ${WRKSRC}/instant/traninit.c .endif +pre-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/share/sgml/transpec + post-install: @${CAT} ${PKGMESSAGE} diff --git a/textproc/sgmlformat/files/patch-sgmlfmt__Makefile b/textproc/sgmlformat/files/patch-sgmlfmt__Makefile new file mode 100644 index 000000000000..5a96eaab31a4 --- /dev/null +++ b/textproc/sgmlformat/files/patch-sgmlfmt__Makefile @@ -0,0 +1,19 @@ +--- ./sgmlfmt/Makefile.orig 2014-06-10 08:00:07.272462749 +0900 ++++ ./sgmlfmt/Makefile 2014-06-10 08:01:56.855462177 +0900 +@@ -1,6 +1,6 @@ + # $Id$ + +-FILES= sgmlfmt ++SCRIPTS= sgmlfmt + CLEANFILES= sgmlfmt + MAN1= sgmlfmt.1 + +@@ -13,7 +13,7 @@ + sed -e 's|##PERL##|${PREFIX}/bin/perl|' -e 's|##PREFIX##|${PREFIX}|' < sgmlfmt.pl > sgmlfmt + .endif + +-afterinstall: ++no-afterinstall: + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} ${FILES} \ + ${BINDIR} + diff --git a/textproc/sgmlformat/files/patch-transpec-_Makefile b/textproc/sgmlformat/files/patch-transpec-_Makefile new file mode 100644 index 000000000000..853560dd630e --- /dev/null +++ b/textproc/sgmlformat/files/patch-transpec-_Makefile @@ -0,0 +1,16 @@ +--- transpec/Makefile.orig 2014-06-10 21:01:50.280462342 +0900 ++++ transpec/Makefile 2014-06-10 21:42:02.463462646 +0900 +@@ -9,11 +9,9 @@ + + all clean cleandir depend lint tags: + +-beforeinstall: +- @mkdir -p ${TRANSPEC_DIR} +- + afterinstall: + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FILES} \ +- ${TRANSPEC_DIR} ++ ${STAGEDIR}${PREFIX}/share/sgml/transpec/ + + .include <bsd.prog.mk> ++ diff --git a/textproc/sgmlformat/pkg-plist b/textproc/sgmlformat/pkg-plist index 51518b60ed22..8ab8e592aa2d 100644 --- a/textproc/sgmlformat/pkg-plist +++ b/textproc/sgmlformat/pkg-plist @@ -12,6 +12,9 @@ bin/roff.cmap bin/roff.sdata bin/sgmlfmt bin/transpec.dtd +man/man1/instant.1.gz +man/man1/sgmlfmt.1.gz +man/man5/transpec.5.gz share/sgml/transpec/catalog share/sgml/transpec/docbook-html.ts share/sgml/transpec/docbook-roff.ts |