From 7e11c9598ce55c2e85c038c703f1404f9b3091a1 Mon Sep 17 00:00:00 2001 From: "Vanilla I. Shu" Date: Thu, 10 Jul 2014 13:19:08 +0000 Subject: [PATCH] Stagify. --- mail/mailfmt/Makefile | 13 ++++--------- mail/mailfmt/files/patch-Makefile | 15 +++++++++------ mail/mailfmt/pkg-plist | 5 +++-- 3 files changed, 16 insertions(+), 17 deletions(-) diff --git a/mail/mailfmt/Makefile b/mail/mailfmt/Makefile index 1fdce17f9785..44281b8dc8ed 100644 --- a/mail/mailfmt/Makefile +++ b/mail/mailfmt/Makefile @@ -7,19 +7,14 @@ PORTREVISION= 1 CATEGORIES= mail MASTER_SITES= http://www.tundraware.com/Software/mailfmt/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= ports@FreeBSD.org COMMENT= Remove leading quotations from mail/news and wrap lines to fixed width USE_PYTHON= yes +OPTIONS_DEFINE= DOCS -MANCOMPRESSED= yes -MAN1= mailfmt.1 - -NO_STAGE= yes post-install: -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/mailfmt-license.txt ${DOCSDIR} -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/mailfmt-license.txt ${STAGEDIR}${DOCSDIR} .include diff --git a/mail/mailfmt/files/patch-Makefile b/mail/mailfmt/files/patch-Makefile index f722228d003d..9d0812ab8493 100644 --- a/mail/mailfmt/files/patch-Makefile +++ b/mail/mailfmt/files/patch-Makefile @@ -1,11 +1,14 @@ ---- ./Makefile.orig 2002-10-09 22:43:16.000000000 +0300 -+++ ./Makefile 2008-06-29 23:42:15.000000000 +0300 -@@ -5,6 +5,6 @@ +--- 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 +- install -c -o root -g wheel -m 755 ./mailfmt ${PREFIX}/bin - mkdir ${PREFIX}/share/doc/mailfmt -+# 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.1.gz ${PREFIX}/man/man1 - install -c -o root -g wheel -m 644 ./mailfmt-license.txt ${PREFIX}/share/doc/mailfmt ++ install -c -o root -g wheel -m 755 ./mailfmt $(DESTDIR)${PREFIX}/bin ++# mkdir ${PREFIX}/share/doc/mailfmt ++ install -c -o root -g wheel -m 644 ./mailfmt.1.gz $(DESTDIR)${PREFIX}/man/man1 +# install -c -o root -g wheel -m 644 ./mailfmt-license.txt ${PREFIX}/share/doc/mailfmt diff --git a/mail/mailfmt/pkg-plist b/mail/mailfmt/pkg-plist index 93be07c65226..553bdf753773 100644 --- a/mail/mailfmt/pkg-plist +++ b/mail/mailfmt/pkg-plist @@ -1,3 +1,4 @@ bin/mailfmt -%%PORTDOCS%%share/doc/mailfmt/mailfmt-license.txt -%%PORTDOCS%%@dirrm share/doc/mailfmt +man/man1/mailfmt.1.gz +%%PORTDOCS%%%%DOCSDIR%%/mailfmt-license.txt +%%PORTDOCS%%@dirrm %%DOCSDIR%%