svn commit: r407360 - head/sysutils/ansible
Dmitry Marakasov
amdmi3 at FreeBSD.org
Wed Jan 27 14:49:46 UTC 2016
Author: amdmi3
Date: Wed Jan 27 14:49:44 2016
New Revision: 407360
URL: https://svnweb.freebsd.org/changeset/ports/407360
Log:
- Add dependency on py-netaddr needed for ipaddr() filter
- Switch to options helpers
PR: 206656
Submitted by: amdmi3
Approved by: lifanov at mail.lifanov.com (maintainer)
Modified:
head/sysutils/ansible/Makefile
Modified: head/sysutils/ansible/Makefile
==============================================================================
--- head/sysutils/ansible/Makefile Wed Jan 27 14:38:12 2016 (r407359)
+++ head/sysutils/ansible/Makefile Wed Jan 27 14:49:44 2016 (r407360)
@@ -3,7 +3,7 @@
PORTNAME= ansible
PORTVERSION?= 2.0.0.2
-PORTREVISION?= 1
+PORTREVISION?= 2
CATEGORIES= sysutils python
MASTER_SITES= http://releases.ansible.com/ansible/
@@ -18,8 +18,6 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml
${PYTHON_PKGNAMEPREFIX}paramiko>0:${PORTSDIR}/security/py-paramiko \
${PYTHON_PKGNAMEPREFIX}Jinja2>0:${PORTSDIR}/devel/py-Jinja2
-OPTIONS_DEFINE= DOCS EXAMPLES
-
EXTRA_PATCHES?= ${FILESDIR}/extra-patch-8647fdc
NO_ARCH= yes
@@ -43,6 +41,12 @@ PLIST_FILES+= man/man1/ansible-doc.1.gz
PORTEXAMPLES= ansible.cfg hosts
+OPTIONS_DEFINE= DOCS EXAMPLES NETADDR
+OPTIONS_DEFAULT=NETADDR
+
+NETADDR_DESC= Dependency on py-netaddr for ipaddr() filter
+NETADDR_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}netaddr>0:${PORTSDIR}/net/py-netaddr
+
post-patch:
.for f in bin/* docs/man/man1/* examples/* lib/ansible/*.py \
lib/ansible/*/*.py lib/ansible/*/*/*.py lib/ansible/*/*/*/*.py
@@ -57,6 +61,8 @@ post-install:
@${MKDIR} ${STAGEDIR}${MAN1PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/docs/man/man1/*.1 \
${STAGEDIR}${MAN1PREFIX}/man/man1
+
+post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/ansible.cfg ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/hosts ${STAGEDIR}${EXAMPLESDIR}
More information about the svn-ports-all
mailing list