diff options
author | Sylvio Cesar Teixeira <sylvio@FreeBSD.org> | 2009-11-20 22:34:36 +0000 |
---|---|---|
committer | Sylvio Cesar Teixeira <sylvio@FreeBSD.org> | 2009-11-20 22:34:36 +0000 |
commit | 1a3a92532506ba92f7a9670be49752b00ad8a807 (patch) | |
tree | 1603a0218da262fa1edbabb75028ea6a82e60568 | |
parent | b499c2083486f6580c7d254dd38c80c6f255e4cc (diff) | |
download | ports-1a3a92532506ba92f7a9670be49752b00ad8a807.tar.gz ports-1a3a92532506ba92f7a9670be49752b00ad8a807.zip |
Notes
-rw-r--r-- | sysutils/moreutils/Makefile | 10 | ||||
-rw-r--r-- | sysutils/moreutils/files/patch-Makefile | 52 |
2 files changed, 49 insertions, 13 deletions
diff --git a/sysutils/moreutils/Makefile b/sysutils/moreutils/Makefile index 8fb530bffa3f..a44bf451cba8 100644 --- a/sysutils/moreutils/Makefile +++ b/sysutils/moreutils/Makefile @@ -8,7 +8,7 @@ PORTNAME= moreutils PORTVERSION= 0.37 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MASTER_SITES= ${MASTER_SITE_DEBIAN_POOL} DISTNAME= ${PORTNAME}_${PORTVERSION} @@ -17,12 +17,12 @@ MAINTAINER= corky1951@comcast.net COMMENT= Additional Unix utilities .if !defined(NO_INSTALL_MANPAGES) -BUILD_DEPENDS= docbook2man:${PORTSDIR}/textproc/docbook2X \ +BUILD_DEPENDS= libxslt>=0:${PORTSDIR}/textproc/libxslt \ + ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl \ ${LOCALBASE}/share/xml/docbook/4.4/docbookx.dtd:${PORTSDIR}/textproc/docbook-xml-440 .endif USE_PERL5= yes -USE_GMAKE= yes PLIST_FILES= bin/combine \ bin/ifne \ @@ -57,7 +57,7 @@ MAN1= combine.1 \ vipe.1 \ zrun.1 -ALL_TARGET+= mans +ALL_TARGET+= mans extraman MANCOMPRESSED= no # portlint will warn about the next line, but we need it this way @@ -65,7 +65,7 @@ OLD_DTD= /usr/share/xml/docbook/schema/dtd/4.4/docbookx.dtd NEW_DTD= ${LOCALBASE}/share/xml/docbook/4.4/docbookx.dtd post-patch: - @${FIND} ${WRKSRC} -type f -name "*.docbook" | ${XARGS} -n 7 -x ${REINPLACE_CMD} -E -e 's|${OLD_DTD}|${NEW_DTD}|g' + ${REINPLACE_CMD} -E -e 's|${OLD_DTD}|${NEW_DTD}|g' ${WRKSRC}/*.docbook post-install: .for manpage in ${MAN1} diff --git a/sysutils/moreutils/files/patch-Makefile b/sysutils/moreutils/files/patch-Makefile index 49ed321a08ac..dc3639fdc515 100644 --- a/sysutils/moreutils/files/patch-Makefile +++ b/sysutils/moreutils/files/patch-Makefile @@ -1,23 +1,26 @@ ---- Makefile.orig 2009-05-05 12:09:22.000000000 -0700 -+++ Makefile 2009-06-20 07:59:27.000000000 -0700 -@@ -1,25 +1,25 @@ +--- Makefile.orig 2009-07-02 12:00:44.000000000 -0700 ++++ Makefile 2009-11-07 12:51:25.000000000 -0800 +@@ -1,51 +1,34 @@ -BINS=isutf8 ifdata ifne pee sponge mispipe lckdo parallel +BINS=isutf8 ifne pee sponge mispipe lckdo parallel PERLSCRIPTS=vidir vipe ts combine zrun -MANS=sponge.1 vidir.1 vipe.1 isutf8.1 ts.1 combine.1 ifdata.1 ifne.1 pee.1 zrun.1 mispipe.1 lckdo.1 parallel.1 -+MANS=sponge.1 vidir.1 vipe.1 isutf8.1 ts.1 combine.1 ifne.1 pee.1 zrun.1 mispipe.1 lckdo.1 parallel.1 - CFLAGS=-O2 -g -Wall +-CFLAGS=-O2 -g -Wall ++MANS=sponge.1 isutf8.1 ifne.1 pee.1 mispipe.1 lckdo.1 parallel.1 ++CFLAGS+= -Wall INSTALL_BIN?=install -s -PREFIX=/usr -DOCBOOK2XMAN=docbook2x-man -+DOCBOOK2XMAN=docbook2man ++.SUFFIXES: .1 .docbook ++ ++DOCBOOK2XMAN= ${LOCALBASE}/bin/xsltproc ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl all: $(BINS) $(MANS) -+bins: $(BINS) ++bins: ${BINS} + -+mans: $(MANS) ++mans: ${MANS} + clean: rm -f $(BINS) $(MANS) @@ -35,3 +38,36 @@ - check: isutf8 ./check-isutf8 + +-isutf8.1: isutf8.docbook +- $(DOCBOOK2XMAN) $< +- +-ifdata.1: ifdata.docbook +- $(DOCBOOK2XMAN) $< +- +-ifne.1: ifne.docbook +- $(DOCBOOK2XMAN) $< +- +-pee.1: pee.docbook +- $(DOCBOOK2XMAN) $< +- +-sponge.1: sponge.docbook +- $(DOCBOOK2XMAN) $< +- +-mispipe.1: mispipe.docbook +- $(DOCBOOK2XMAN) $< +- +-lckdo.1: lckdo.docbook +- $(DOCBOOK2XMAN) $< +- +-parallel.1: parallel.docbook +- $(DOCBOOK2XMAN) $< ++.docbook.1: ++ $(DOCBOOK2XMAN) ${.IMPSRC} + +-%.1: % +- pod2man --center=" " --release="moreutils" $< > $@; ++extraman: ${PERLSCRIPTS} ++.for i in ${PERLSCRIPTS} ++ pod2man --center=" " --release="moreutils" ${i} > ${i:S@$@.1$@}; ++.endfor |