aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2014-03-06 23:13:31 +0800
committerehaupt <ehaupt@FreeBSD.org>2014-03-06 23:13:31 +0800
commit46fb8d67599d9bd0b23ca3f5cdde419e8bb261b1 (patch)
treef52e5366dd1482083de779cfd8430cbd43195c54
parenta6ed65b16609f2474aff54120e2eda1241fb2b56 (diff)
downloadfreebsd-ports-gnome-46fb8d67599d9bd0b23ca3f5cdde419e8bb261b1.tar.gz
freebsd-ports-gnome-46fb8d67599d9bd0b23ca3f5cdde419e8bb261b1.tar.zst
freebsd-ports-gnome-46fb8d67599d9bd0b23ca3f5cdde419e8bb261b1.zip
Support staging
-rw-r--r--mail/nohtml/Makefile10
-rw-r--r--mail/nohtml/files/patch-Makefile10
-rw-r--r--mail/nohtml/pkg-plist1
3 files changed, 14 insertions, 7 deletions
diff --git a/mail/nohtml/Makefile b/mail/nohtml/Makefile
index f7cc131188c3..69ea16a1f77f 100644
--- a/mail/nohtml/Makefile
+++ b/mail/nohtml/Makefile
@@ -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>
diff --git a/mail/nohtml/files/patch-Makefile b/mail/nohtml/files/patch-Makefile
new file mode 100644
index 000000000000..5ac2a327053b
--- /dev/null
+++ b/mail/nohtml/files/patch-Makefile
@@ -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
diff --git a/mail/nohtml/pkg-plist b/mail/nohtml/pkg-plist
index 6786fb1ade67..254337a352ce 100644
--- a/mail/nohtml/pkg-plist
+++ b/mail/nohtml/pkg-plist
@@ -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