aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2017-04-10 19:15:25 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2017-04-10 19:15:25 +0800
commitf1a9d673913b6e50f452662689bcaeb284673ed7 (patch)
tree45cacd1af0466d1167c190aa2dc34bed8c124979
parent757e2db245e985da6f176934a951f1c147cc39ce (diff)
downloadfreebsd-ports-gnome-f1a9d673913b6e50f452662689bcaeb284673ed7.tar.gz
freebsd-ports-gnome-f1a9d673913b6e50f452662689bcaeb284673ed7.tar.zst
freebsd-ports-gnome-f1a9d673913b6e50f452662689bcaeb284673ed7.zip
- Optionize docs
- Switch to options helpers
-rw-r--r--news/nntpcache/Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/news/nntpcache/Makefile b/news/nntpcache/Makefile
index 5c93ff712122..a1c50d1888ac 100644
--- a/news/nntpcache/Makefile
+++ b/news/nntpcache/Makefile
@@ -28,7 +28,7 @@ SHEBANG_FILES= contrib/perlnewshound/newshound.pl
AUTHINFO_EXT= authinfo_pam.ext
USE_RC_SUBR= nntpcached
-OPTIONS_DEFINE= LDAP RADIUS SPAMPHOBIA
+OPTIONS_DEFINE= LDAP RADIUS SPAMPHOBIA DOCS
SPAMPHOBIA_DESC= Spamphobia NoCeM support
RADIUS_CONFIGURE_WITH= authinfo-radius
@@ -51,11 +51,10 @@ SPAMPHOBIA_PATCH_SITES= http://people.freebsd.org/~leeym/:SPAMPHOBIA
SPAMPHOBIA_PATCHFILES= ${DISTNAME}-spamphobia-${REVISEDATE}.diff.gz:SPAMPHOBIA
post-configure:
- ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} -C ${WRKSRC}/src ${AUTHINFO_EXT}
+ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} -C ${WRKSRC}/src ${AUTHINFO_EXT}
-post-install:
- @ ${MKDIR} ${STAGEDIR}${DOCSDIR}
- (cd ${WRKSRC} && ${FIND} ${PORTDOCS} \
- | ${CPIO_CMD} ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DOCSDIR})
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ @cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>