mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- Support STAGEDIR
This commit is contained in:
parent
658fd28e6f
commit
87310c79cb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=329327
3 changed files with 39 additions and 33 deletions
|
@ -16,56 +16,40 @@ RUN_DEPENDS= p5-IPC-Run>=0:${PORTSDIR}/devel/p5-IPC-Run
|
||||||
|
|
||||||
OPTIONS_DEFINE= MANPAGES
|
OPTIONS_DEFINE= MANPAGES
|
||||||
OPTIONS_DEFAULT=MANPAGES
|
OPTIONS_DEFAULT=MANPAGES
|
||||||
|
OPTIONS_SUB= yes
|
||||||
|
|
||||||
ALL_TARGET= bins
|
ALL_TARGET= bins
|
||||||
USES= perl5
|
USES= perl5
|
||||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||||
|
|
||||||
MANCOMPRESSED= no
|
MANPAGES_ALL_TARGET= mans
|
||||||
PLIST_FILES= bin/chronic \
|
|
||||||
bin/combine \
|
|
||||||
bin/errno \
|
|
||||||
bin/ifne \
|
|
||||||
bin/isutf8 \
|
|
||||||
bin/lckdo \
|
|
||||||
bin/mispipe \
|
|
||||||
bin/pee \
|
|
||||||
bin/sponge \
|
|
||||||
bin/ts \
|
|
||||||
bin/vidir \
|
|
||||||
bin/vipe \
|
|
||||||
bin/zrun
|
|
||||||
|
|
||||||
NO_STAGE= yes
|
CANNED_MANPAGES=errno.1 \
|
||||||
.include <bsd.port.options.mk>
|
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MMANPAGES}
|
|
||||||
ALL_TARGET+= mans
|
|
||||||
CANNED_MAN1= errno.1 \
|
|
||||||
ifne.1 \
|
ifne.1 \
|
||||||
isutf8.1 \
|
isutf8.1 \
|
||||||
lckdo.1 \
|
lckdo.1 \
|
||||||
mispipe.1 \
|
mispipe.1 \
|
||||||
pee.1 \
|
pee.1 \
|
||||||
sponge.1
|
sponge.1
|
||||||
MAN1= chronic.1 \
|
MANPAGES= chronic.1 \
|
||||||
combine.1 \
|
combine.1 \
|
||||||
ts.1 \
|
ts.1 \
|
||||||
vidir.1 \
|
vidir.1 \
|
||||||
vipe.1 \
|
vipe.1 \
|
||||||
zrun.1 \
|
zrun.1 \
|
||||||
${CANNED_MAN1}
|
${CANNED_MANPAGES}
|
||||||
.endif
|
|
||||||
|
.include <bsd.port.options.mk>
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -e 's|share/xml/docbook/schema/dtd/|local/share/xml/docbook/|' ${WRKSRC}/*.docbook
|
@${REINPLACE_CMD} -e 's|share/xml/docbook/schema/dtd/|local/share/xml/docbook/|' ${WRKSRC}/*.docbook
|
||||||
.if ${PORT_OPTIONS:MMANPAGES}
|
.if ${PORT_OPTIONS:MMANPAGES}
|
||||||
@cd ${FILESDIR}/ && ${CP} ${CANNED_MAN1} ${WRKSRC}/
|
@cd ${FILESDIR}/ && ${CP} ${CANNED_MANPAGES} ${WRKSRC}/
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
.if ${PORT_OPTIONS:MMANPAGES}
|
.if ${PORT_OPTIONS:MMANPAGES}
|
||||||
cd ${WRKSRC}/ && ${INSTALL_MAN} ${MAN1} ${MANPREFIX}/man/man1/
|
cd ${WRKSRC}/ && ${INSTALL_MAN} ${MANPAGES} ${STAGEDIR}${PREFIX}/man/man1/
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
--- Makefile.orig 2012-06-06 01:55:53.000000000 +0800
|
--- Makefile.orig 2012-06-06 01:55:53.000000000 +0800
|
||||||
+++ Makefile 2013-02-24 13:23:52.068205829 +0800
|
+++ Makefile 2013-02-24 13:23:52.068205829 +0800
|
||||||
@@ -1,60 +1,38 @@
|
@@ -1,14 +1,17 @@
|
||||||
-BINS=isutf8 ifdata ifne pee sponge mispipe lckdo parallel errno
|
-BINS=isutf8 ifdata ifne pee sponge mispipe lckdo parallel errno
|
||||||
+BINS=isutf8 ifne pee sponge mispipe lckdo errno
|
+BINS=isutf8 ifne pee sponge mispipe lckdo errno
|
||||||
PERLSCRIPTS=vidir vipe ts combine zrun chronic
|
PERLSCRIPTS=vidir vipe ts combine zrun chronic
|
||||||
|
@ -23,13 +23,9 @@
|
||||||
clean:
|
clean:
|
||||||
rm -f $(BINS) $(MANS) dump.c errnos.h errno.o
|
rm -f $(BINS) $(MANS) dump.c errnos.h errno.o
|
||||||
|
|
||||||
install:
|
@@ -17,44 +20,19 @@
|
||||||
- mkdir -p $(DESTDIR)$(PREFIX)/bin
|
$(INSTALL_BIN) $(BINS) $(DESTDIR)$(PREFIX)/bin
|
||||||
- $(INSTALL_BIN) $(BINS) $(DESTDIR)$(PREFIX)/bin
|
install $(PERLSCRIPTS) $(DESTDIR)$(PREFIX)/bin
|
||||||
- install $(PERLSCRIPTS) $(DESTDIR)$(PREFIX)/bin
|
|
||||||
+ mkdir -p $(PREFIX)/bin
|
|
||||||
+ $(INSTALL_BIN) $(BINS) $(PREFIX)/bin
|
|
||||||
+ install $(PERLSCRIPTS) $(PREFIX)/bin
|
|
||||||
|
|
||||||
- mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1
|
- mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1
|
||||||
- install $(MANS) $(DESTDIR)$(PREFIX)/share/man/man1
|
- install $(MANS) $(DESTDIR)$(PREFIX)/share/man/man1
|
||||||
|
|
26
sysutils/moreutils/pkg-plist
Normal file
26
sysutils/moreutils/pkg-plist
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
bin/chronic
|
||||||
|
bin/combine
|
||||||
|
bin/errno
|
||||||
|
bin/ifne
|
||||||
|
bin/isutf8
|
||||||
|
bin/lckdo
|
||||||
|
bin/mispipe
|
||||||
|
bin/pee
|
||||||
|
bin/sponge
|
||||||
|
bin/ts
|
||||||
|
bin/vidir
|
||||||
|
bin/vipe
|
||||||
|
bin/zrun
|
||||||
|
%%MANPAGES%%man/man1/chronic.1.gz
|
||||||
|
%%MANPAGES%%man/man1/combine.1.gz
|
||||||
|
%%MANPAGES%%man/man1/errno.1.gz
|
||||||
|
%%MANPAGES%%man/man1/ifne.1.gz
|
||||||
|
%%MANPAGES%%man/man1/isutf8.1.gz
|
||||||
|
%%MANPAGES%%man/man1/lckdo.1.gz
|
||||||
|
%%MANPAGES%%man/man1/mispipe.1.gz
|
||||||
|
%%MANPAGES%%man/man1/pee.1.gz
|
||||||
|
%%MANPAGES%%man/man1/sponge.1.gz
|
||||||
|
%%MANPAGES%%man/man1/ts.1.gz
|
||||||
|
%%MANPAGES%%man/man1/vidir.1.gz
|
||||||
|
%%MANPAGES%%man/man1/vipe.1.gz
|
||||||
|
%%MANPAGES%%man/man1/zrun.1.gz
|
Loading…
Add table
Reference in a new issue