mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
Support staging
This commit is contained in:
parent
46f80024bc
commit
281d18c3bf
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=347257
@ -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>
|
||||
|
10
mail/nohtml/files/patch-Makefile
Normal file
10
mail/nohtml/files/patch-Makefile
Normal 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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user