Lines 2-9
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= ansible |
4 |
PORTNAME= ansible |
5 |
PORTVERSION= 1.9.4 |
5 |
PORTVERSION?= 2.0.0.0 |
6 |
PORTREVISION= 1 |
|
|
7 |
CATEGORIES= sysutils python |
6 |
CATEGORIES= sysutils python |
8 |
MASTER_SITES= http://releases.ansible.com/ansible/ |
7 |
MASTER_SITES= http://releases.ansible.com/ansible/ |
9 |
|
8 |
|
Lines 13-31
Link Here
|
13 |
LICENSE= GPLv3+ |
12 |
LICENSE= GPLv3+ |
14 |
LICENSE_FILE= ${WRKSRC}/COPYING |
13 |
LICENSE_FILE= ${WRKSRC}/COPYING |
15 |
|
14 |
|
|
|
15 |
BUILD_DEPENDS+= a2x:${PORTSDIR}/textproc/asciidoc \ |
16 |
xsltproc:${PORTSDIR}/textproc/libxslt \ |
17 |
docbook-xml>0:${PORTSDIR}/textproc/docbook-xml \ |
18 |
${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl |
19 |
|
16 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml>0:${PORTSDIR}/devel/py-yaml \ |
20 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml>0:${PORTSDIR}/devel/py-yaml \ |
17 |
${PYTHON_PKGNAMEPREFIX}pycrypto>0:${PORTSDIR}/security/py-pycrypto \ |
21 |
${PYTHON_PKGNAMEPREFIX}pycrypto>0:${PORTSDIR}/security/py-pycrypto \ |
18 |
${PYTHON_PKGNAMEPREFIX}paramiko>0:${PORTSDIR}/security/py-paramiko \ |
22 |
${PYTHON_PKGNAMEPREFIX}paramiko>0:${PORTSDIR}/security/py-paramiko \ |
19 |
${PYTHON_PKGNAMEPREFIX}Jinja2>0:${PORTSDIR}/devel/py-Jinja2 |
23 |
${PYTHON_PKGNAMEPREFIX}Jinja2>0:${PORTSDIR}/devel/py-Jinja2 |
20 |
|
24 |
|
21 |
OPTIONS_DEFINE= EXAMPLES |
25 |
OPTIONS_DEFINE= DOCS EXAMPLES |
22 |
|
26 |
|
23 |
NO_ARCH= yes |
27 |
NO_ARCH= yes |
24 |
USES= cpe python:2 shebangfix |
28 |
USES= cpe python:2 shebangfix |
25 |
USE_PYTHON= autoplist distutils |
29 |
USE_PYTHON= autoplist distutils |
26 |
python_CMD= ${LOCALBASE}/bin/python |
30 |
python_CMD= ${LOCALBASE}/bin/python |
27 |
SHEBANG_FILES= lib/ansible/runner/action_plugins/synchronize.py \ |
31 |
SHEBANG_FILES+= lib/ansible/modules/core/*/*.py \ |
28 |
lib/ansible/modules/core/*/*.py \ |
|
|
29 |
lib/ansible/modules/core/*/*/*.py \ |
32 |
lib/ansible/modules/core/*/*/*.py \ |
30 |
lib/ansible/modules/extras/*/*.py \ |
33 |
lib/ansible/modules/extras/*/*.py \ |
31 |
lib/ansible/modules/extras/*/*/*.py |
34 |
lib/ansible/modules/extras/*/*/*.py |
Lines 43-62
Link Here
|
43 |
PORTEXAMPLES= ansible.cfg hosts |
46 |
PORTEXAMPLES= ansible.cfg hosts |
44 |
|
47 |
|
45 |
post-patch: |
48 |
post-patch: |
46 |
.for f in bin/ansible-galaxy docs/man/man1/ansible-galaxy.1 \ |
49 |
.for f in bin/* docs/man/man1/* examples/* lib/ansible/*.py \ |
47 |
docs/man/man1/ansible-playbook.1 docs/man/man1/ansible.1 \ |
50 |
lib/ansible/*/*.py lib/ansible/*/*/*.py lib/ansible/*/*/*/*.py |
48 |
examples/ansible.cfg examples/hosts lib/ansible/constants.py \ |
|
|
49 |
lib/ansible/module_utils/urls.py lib/ansible/modules/core/system/setup.py \ |
50 |
lib/ansible/playbook/__init__.py lib/ansible/runner/__init__.py |
51 |
@${REINPLACE_CMD} -e 's|/etc/ansible|${ETCDIR}|' ${WRKSRC}/${f} |
51 |
@${REINPLACE_CMD} -e 's|/etc/ansible|${ETCDIR}|' ${WRKSRC}/${f} |
52 |
.endfor |
52 |
.endfor |
53 |
|
53 |
|
54 |
.for f in docs/man/man1/ansible-playbook.1 docs/man/man1/ansible.1 \ |
54 |
.for f in docs/man/man1/* examples/* lib/ansible/*.py lib/ansible/*/*.py |
55 |
examples/ansible.cfg lib/ansible/constants.py \ |
|
|
56 |
lib/ansible/playbook/__init__.py lib/ansible/runner/__init__.py \ |
57 |
@${REINPLACE_CMD} -e 's|/usr/share/ansible|${DATADIR}|' ${WRKSRC}/${f} |
55 |
@${REINPLACE_CMD} -e 's|/usr/share/ansible|${DATADIR}|' ${WRKSRC}/${f} |
58 |
.endfor |
56 |
.endfor |
59 |
|
57 |
|
|
|
58 |
post-build: |
59 |
.for f in ansible-doc ansible-galaxy ansible-playbook ansible-pull \ |
60 |
ansible-vault ansible |
61 |
${LOCALBASE}/bin/a2x -d manpage -f manpage -L \ |
62 |
${WRKSRC}/docs/man/man1/${f}.1.asciidoc.in |
63 |
${RM} ${WRKSRC}/docs/man/man1/${f}.1.asciidoc.in |
64 |
.endfor |
65 |
|
60 |
post-install: |
66 |
post-install: |
61 |
@${MKDIR} ${STAGEDIR}${MAN1PREFIX}/man/man1 |
67 |
@${MKDIR} ${STAGEDIR}${MAN1PREFIX}/man/man1 |
62 |
${INSTALL_MAN} ${WRKSRC}/docs/man/man1/*.1 \ |
68 |
${INSTALL_MAN} ${WRKSRC}/docs/man/man1/*.1 \ |