svn commit: r329211 - head/net-p2p/btpd
Baptiste Daroussin
bapt at FreeBSD.org
Thu Oct 3 16:49:13 UTC 2013
Author: bapt
Date: Thu Oct 3 16:49:12 2013
New Revision: 329211
URL: http://svnweb.freebsd.org/changeset/ports/329211
Log:
Add a DOCS option
Always install docs in post-install to avoid reading twice bsd.port.mk
Remove the bsd.port.options.mk/bsd.port.mk dancing
Define all plist related things into pkg-plist
Modified:
head/net-p2p/btpd/Makefile
head/net-p2p/btpd/pkg-plist
Modified: head/net-p2p/btpd/Makefile
==============================================================================
--- head/net-p2p/btpd/Makefile Thu Oct 3 16:40:17 2013 (r329210)
+++ head/net-p2p/btpd/Makefile Thu Oct 3 16:49:12 2013 (r329211)
@@ -11,18 +11,14 @@ COMMENT= Bittorrent client consisting of
LICENSE= BSD
+OPTIONS_DEFINE= DOCS
+
USE_AUTOTOOLS= autoconf aclocal
GNU_CONFIGURE= yes
USE_OPENSSL= yes
-PORTDOCS= README
-
-.include <bsd.port.options.mk>
-
post-install:
-.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
-.endif
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>
Modified: head/net-p2p/btpd/pkg-plist
==============================================================================
--- head/net-p2p/btpd/pkg-plist Thu Oct 3 16:40:17 2013 (r329210)
+++ head/net-p2p/btpd/pkg-plist Thu Oct 3 16:49:12 2013 (r329211)
@@ -4,3 +4,5 @@ bin/btpd
man/man1/btcli.1.gz
man/man1/btinfo.1.gz
man/man1/btpd.1.gz
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%@dirrmtry %%DOCSDIR%%
More information about the svn-ports-head
mailing list