aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2016-08-30 17:01:25 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2016-08-30 17:01:25 +0800
commit4978b2cd31e70843a04a9c45bf3a9aee5f2840ad (patch)
treea86430e3a7f9d70576736bbb9873995bc6a3a0f0 /mail
parent37fc256bd51e0e7ab0bfdc279d6ec03e182cb4fb (diff)
downloadfreebsd-ports-gnome-4978b2cd31e70843a04a9c45bf3a9aee5f2840ad.tar.gz
freebsd-ports-gnome-4978b2cd31e70843a04a9c45bf3a9aee5f2840ad.tar.zst
freebsd-ports-gnome-4978b2cd31e70843a04a9c45bf3a9aee5f2840ad.zip
- Add NO_ARCH
- Simplify installation (do-install is simpler and more straightforward than changing whole upstream makefile)
Diffstat (limited to 'mail')
-rw-r--r--mail/mailfmt/Makefile11
-rw-r--r--mail/mailfmt/files/patch-Makefile14
2 files changed, 9 insertions, 16 deletions
diff --git a/mail/mailfmt/Makefile b/mail/mailfmt/Makefile
index 1a3f53069b0b..38ef028a5344 100644
--- a/mail/mailfmt/Makefile
+++ b/mail/mailfmt/Makefile
@@ -11,10 +11,17 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Remove leading quotations from mail/news and wrap lines to fixed width
USES= python
+NO_ARCH= yes
+NO_BUILD= yes
+
OPTIONS_DEFINE= DOCS
-post-install:
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1.gz ${STAGEDIR}${MAN1PREFIX}/man/man1
+
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
- @${INSTALL_DATA} ${WRKSRC}/mailfmt-license.txt ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/mailfmt-license.txt ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/mail/mailfmt/files/patch-Makefile b/mail/mailfmt/files/patch-Makefile
deleted file mode 100644
index 46c7c142224f..000000000000
--- a/mail/mailfmt/files/patch-Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
---- Makefile.orig 2002-10-10 03:43:16.000000000 +0800
-+++ Makefile 2014-07-10 21:12:43.040252063 +0800
-@@ -4,7 +4,7 @@
- all: # Do nothing - this is a python script that needs no build
-
- install:
-- install -c -o root -g wheel -m 755 ./mailfmt ${PREFIX}/bin
-- mkdir ${PREFIX}/share/doc/mailfmt
-- install -c -o root -g wheel -m 644 ./mailfmt.1.gz ${PREFIX}/man/man1
-- install -c -o root -g wheel -m 644 ./mailfmt-license.txt ${PREFIX}/share/doc/mailfmt
-+ $(BSD_INSTALL_SCRIPT) ./mailfmt $(DESTDIR)${PREFIX}/bin
-+# mkdir ${PREFIX}/share/doc/mailfmt
-+ $(BSD_INSTALL_MAN) ./mailfmt.1.gz $(DESTDIR)${PREFIX}/man/man1
-+# install -c -o root -g wheel -m 644 ./mailfmt-license.txt ${PREFIX}/share/doc/mailfmt