aboutsummaryrefslogtreecommitdiff
path: root/mail/ask
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2014-06-01 14:47:26 +0000
committerPawel Pekala <pawel@FreeBSD.org>2014-06-01 14:47:26 +0000
commit762078329c43196ef81bab6dd56ad97e83a2584c (patch)
treef8623a724efac2a61822eb7e5fd240db62ec3a4b /mail/ask
parent07139bedfddc4f280e5413fdcc089a1e0e11a39b (diff)
downloadports-762078329c43196ef81bab6dd56ad97e83a2584c.tar.gz
ports-762078329c43196ef81bab6dd56ad97e83a2584c.zip
- Add staging support
- Convert to new options framework
Notes
Notes: svn path=/head/; revision=356130
Diffstat (limited to 'mail/ask')
-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 e17405ea46df..2e28d109e9a3 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 3385f2eaf643..d6a19272ce5a 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