summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-06-01 14:47:26 +0000
committerpawel <pawel@FreeBSD.org>2014-06-01 14:47:26 +0000
commitd917d7dabd8ea5466bbe9730d306bf85b56fddf4 (patch)
treef8623a724efac2a61822eb7e5fd240db62ec3a4b
parent90d19c77abbbb2ae914f70f10c8fc5a7984b74d3 (diff)
downloadFreeBSD-ports-d917d7dabd8ea5466bbe9730d306bf85b56fddf4.zip
FreeBSD-ports-d917d7dabd8ea5466bbe9730d306bf85b56fddf4.tar.gz
- Add staging support
- Convert to new options framework
-rw-r--r--mail/ask/Makefile29
-rw-r--r--mail/ask/pkg-plist3
2 files changed, 14 insertions, 18 deletions
diff --git a/mail/ask/Makefile b/mail/ask/Makefile
index e17405e..2e28d10 100644
--- a/mail/ask/Makefile
+++ b/mail/ask/Makefile
@@ -14,11 +14,11 @@ NO_BUILD= yes
ASKLIBDIR= ${PREFIX}/lib/${PORTNAME}
BINS= askfilter asksetup utils/asksenders
-MAN1= askfilter.1 asksenders.1 asksetup.1
SUB_FILES= pkg-message
PORTDOCS= *
-NO_STAGE= yes
+OPTIONS_DEFINE= DOCS
+
post-extract:
@${REINPLACE_CMD} -E \
-e "s,/usr/share/ask/templates,${EXAMPLESDIR},g" \
@@ -27,21 +27,14 @@ post-extract:
${BINS:S,^,${WRKSRC}/,} ${WRKSRC}/*.py
do-install:
- ${MKDIR} ${ASKLIBDIR}
- ${INSTALL_DATA} ${WRKSRC}/*.py ${ASKLIBDIR}
- ${INSTALL_SCRIPT} ${BINS:S,^,${WRKSRC}/,} ${PREFIX}/bin
-
- ${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/templates/* ${EXAMPLESDIR}
-
- ${INSTALL_MAN} ${MAN1:S,^,${WRKSRC}/docs/,} ${PREFIX}/man/man1
-
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/docs/*.[!1]* ${DOCSDIR}
-.endif
-
-post-install:
- @${CAT} ${PKGMESSAGE}
+ @${MKDIR} ${STAGEDIR}${ASKLIBDIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.py ${STAGEDIR}${ASKLIBDIR}
+ ${INSTALL_SCRIPT} ${BINS:S,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/templates/* ${STAGEDIR}${EXAMPLESDIR}
+ (cd ${WRKSRC}/docs && ${INSTALL_MAN} askfilter.1 asksetup.1 \
+ asksenders.1 ${STAGEDIR}${PREFIX}/man/man1)
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/*.[!1]* ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/mail/ask/pkg-plist b/mail/ask/pkg-plist
index 3385f2e..d6a1927 100644
--- a/mail/ask/pkg-plist
+++ b/mail/ask/pkg-plist
@@ -10,6 +10,9 @@ lib/ask/askmessage.py
lib/ask/askremote.py
lib/ask/askversion.py
lib/ask/test.py
+man/man1/askfilter.1.gz
+man/man1/asksenders.1.gz
+man/man1/asksetup.1.gz
%%EXAMPLESDIR%%/ask.rc
%%EXAMPLESDIR%%/confirm_da.txt
%%EXAMPLESDIR%%/confirm_de.txt
OpenPOWER on IntegriCloud