1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Support staging

This commit is contained in:
Emanuel Haupt 2014-03-06 15:13:31 +00:00
parent 46f80024bc
commit 281d18c3bf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=347257
3 changed files with 14 additions and 7 deletions

View File

@ -11,16 +11,12 @@ COMMENT= Strip HTML attachments from email
USE_PYTHON= yes
MANCOMPRESSED= yes
MAN1= nohtml.1
OPTIONS_DEFINE= DOCS
NO_STAGE= yes
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in nohtml-license.txt nohtml.html nohtml.pdf nohtml.ps nohtml.txt
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,10 @@
--- Makefile.orig 2014-03-06 16:09:13.534356472 +0100
+++ Makefile 2014-03-06 16:09:37.863354792 +0100
@@ -4,5 +4,5 @@
all: # Do nothing - this is a python script that needs no build
install:
- ${BSD_INSTALL_SCRIPT} nohtml.py ${PREFIX}/bin
- ${BSD_INSTALL_MAN} nohtml.1.gz ${PREFIX}/man/man1
+ ${BSD_INSTALL_SCRIPT} nohtml.py ${DESTDIR}${PREFIX}/bin
+ ${BSD_INSTALL_MAN} nohtml.1.gz ${DESTDIR}${MANPREFIX}/man/man1

View File

@ -1,4 +1,5 @@
bin/nohtml.py
man/man1/nohtml.1.gz
%%PORTDOCS%%share/doc/nohtml/nohtml-license.txt
%%PORTDOCS%%share/doc/nohtml/nohtml.html
%%PORTDOCS%%share/doc/nohtml/nohtml.pdf