aboutsummaryrefslogtreecommitdiff
path: root/mail/nohtml
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2014-03-06 15:13:31 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2014-03-06 15:13:31 +0000
commit281d18c3bf41721ff6bde75ed247f3ed35b26d96 (patch)
treef52e5366dd1482083de779cfd8430cbd43195c54 /mail/nohtml
parent46f80024bc380da8896b9bf7c66d00079439994a (diff)
downloadports-281d18c3bf41721ff6bde75ed247f3ed35b26d96.tar.gz
ports-281d18c3bf41721ff6bde75ed247f3ed35b26d96.zip
Notes
Diffstat (limited to 'mail/nohtml')
-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