svn commit: r356130 - head/mail/ask
Pawel Pekala
pawel at FreeBSD.org
Sun Jun 1 14:47:27 UTC 2014
Author: pawel
Date: Sun Jun 1 14:47:26 2014
New Revision: 356130
URL: http://svnweb.freebsd.org/changeset/ports/356130
QAT: https://qat.redports.org/buildarchive/r356130/
Log:
- Add staging support
- Convert to new options framework
Modified:
head/mail/ask/Makefile
head/mail/ask/pkg-plist
Modified: head/mail/ask/Makefile
==============================================================================
--- head/mail/ask/Makefile Sun Jun 1 14:46:12 2014 (r356129)
+++ head/mail/ask/Makefile Sun Jun 1 14:47:26 2014 (r356130)
@@ -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>
Modified: head/mail/ask/pkg-plist
==============================================================================
--- head/mail/ask/pkg-plist Sun Jun 1 14:46:12 2014 (r356129)
+++ head/mail/ask/pkg-plist Sun Jun 1 14:47:26 2014 (r356130)
@@ -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
More information about the svn-ports-all
mailing list