Remove superfluous if ${FLAVOR:Mpython3}

tweaks and ok rpointel@ shadchin@
This commit is contained in:
danj 2016-11-10 21:58:40 +00:00
parent fb27f46a4c
commit f780072f00
26 changed files with 30 additions and 79 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.18 2016/08/30 17:08:05 sthen Exp $
# $OpenBSD: Makefile,v 1.19 2016/11/10 21:58:40 danj Exp $
COMMENT = Python module to handle audio metadata
@ -41,12 +41,10 @@ MAKE_ENV = LC_CTYPE="en_US.UTF-8"
do-test:
${MODPY_TEST_TARGET}
.if ${FLAVOR:Mpython3}
post-install:
.for i in mid3cp mid3iconv mid3v2 moggsplit mutagen-inspect mutagen-pony
mv ${PREFIX}/bin/$i ${PREFIX}/bin/$i${MODPY_BIN_SUFFIX}
mv ${PREFIX}/man/man1/$i.1 ${PREFIX}/man/man1/$i${MODPY_BIN_SUFFIX}.1
.endfor
.endif
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.5 2016/08/28 10:55:38 danj Exp $
# $OpenBSD: Makefile,v 1.6 2016/11/10 21:58:40 danj Exp $
COMMENT = bash tab completion for argparse
@ -18,12 +18,10 @@ MODPY_SETUPTOOLS = Yes
FLAVORS = python3
FLAVOR ?=
.if ${FLAVOR:Mpython3}
post-install:
for i in ${PREFIX}/bin/*; do \
mv $${i} $${i}${MODPY_BIN_SUFFIX} ;\
done
.endif
do-test:
cd ${WRKSRC}/test && ${MODPY_BIN} test.py

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.20 2016/04/27 12:37:30 shadchin Exp $
# $OpenBSD: Makefile,v 1.21 2016/11/10 21:58:40 danj Exp $
COMMENT= I18N/L10N tools for Python
@ -26,11 +26,9 @@ TEST_DEPENDS= ${RUN_DEPENDS} \
FLAVORS= python3
FLAVOR?=
.if ${FLAVOR:Mpython3}
post-install:
mv ${PREFIX}/bin/pybabel \
${PREFIX}/bin/pybabel${MODPY_BIN_SUFFIX}
.endif
do-test:
cd ${WRKSRC} && ${MODPY_BIN} -m pytest

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.2 2016/11/06 07:31:09 shadchin Exp $
# $OpenBSD: Makefile,v 1.3 2016/11/10 21:58:40 danj Exp $
COMMENT = python style guide checker
@ -23,9 +23,7 @@ MODPY_SETUPTOOLS = Yes
FLAVORS = python3
FLAVOR ?=
.if ${FLAVOR:Mpython3}
post-install:
mv ${PREFIX}/bin/pycodestyle ${PREFIX}/bin/pycodestyle${MODPY_BIN_SUFFIX}
.endif
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.1.1.1 2016/09/01 11:19:05 shadchin Exp $
# $OpenBSD: Makefile,v 1.2 2016/11/10 21:58:40 danj Exp $
COMMENT = Python utility / library to sort Python imports
@ -25,9 +25,7 @@ FLAVOR ?=
NO_TEST = Yes
.if ${FLAVOR:Mpython3}
post-install:
mv ${PREFIX}/bin/isort ${PREFIX}/bin/isort${MODPY_BIN_SUFFIX}
.endif
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.4 2016/05/14 15:09:56 danj Exp $
# $OpenBSD: Makefile,v 1.5 2016/11/10 21:58:40 danj Exp $
COMMENT = implementation of JSON Schema validation for Python
@ -29,10 +29,8 @@ TEST_DEPENDS = ${RUN_DEPENDS} \
devel/py-test${MODPY_FLAVOR} \
devel/py-mock${MODPY_FLAVOR}
.if ${FLAVOR:Mpython3}
post-install:
mv ${PREFIX}/bin/jsonschema ${PREFIX}/bin/jsonschema${MODPY_BIN_SUFFIX}
.endif
do-test:
cd ${WRKSRC}/jsonschema && \

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.17 2016/07/03 14:55:53 shadchin Exp $
# $OpenBSD: Makefile,v 1.18 2016/11/10 21:58:40 danj Exp $
COMMENT= common low-level libraries for logilab projects
@ -35,9 +35,7 @@ MODPY_SETUPTOOLS = Yes
do-test:
@cd ${WRKSRC} && ${MODPY_BIN} bin/pytest
.if ${FLAVOR:Mpython3}
post-install:
mv ${PREFIX}/bin/pytest ${PREFIX}/bin/pytest${MODPY_BIN_SUFFIX}
.endif
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.36 2016/10/05 17:06:28 shadchin Exp $
# $OpenBSD: Makefile,v 1.37 2016/11/10 21:58:40 danj Exp $
COMMENT= discovery-based unittest extension
@ -38,12 +38,10 @@ post-install:
find . ! -type d -exec ${INSTALL_DATA} {} \
${PREFIX}/share/examples/${MODPY_PY_PREFIX}nose/{} \;
rm ${PREFIX}/bin/nosetests-${MODPY_VERSION}
.if ${FLAVOR:Mpython3}
mv ${PREFIX}/bin/nosetests \
${PREFIX}/bin/nosetests${MODPY_BIN_SUFFIX}
mv ${PREFIX}/man/man1/nosetests.1 \
${PREFIX}/man/man1/nosetests${MODPY_BIN_SUFFIX}.1
.endif
do-test:

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.1.1.1 2016/09/02 17:02:36 edd Exp $
# $OpenBSD: Makefile,v 1.2 2016/11/10 21:58:40 danj Exp $
COMMENT = generic test automation framework for acceptance testing
@ -21,12 +21,10 @@ FLAVOR ?=
MODULES = lang/python
TEST_DEPENDS = ${FULLPKGNAME}:${FULLPKGPATH}
.if ${FLAVOR:Mpython3}
post-install:
.for i in pybot rebot robot
mv ${PREFIX}/bin/$i ${PREFIX}/bin/$i${MODPY_BIN_SUFFIX}
.endfor
.endif
# There is also a suite of acceptance tests, but they are *very* slow and
# it asks the user to type things and click stuff.

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.19 2016/10/13 10:54:54 shadchin Exp $
# $OpenBSD: Makefile,v 1.20 2016/11/10 21:58:40 danj Exp $
COMMENT= cross-project testing tool for Python
@ -33,9 +33,7 @@ TEST_DEPENDS= ${RUN_DEPENDS} \
TEST_DEPENDS += devel/py-twisted/core
.endif
.if ${FLAVOR:Mpython3}
post-install:
mv ${PREFIX}/bin/py.test ${PREFIX}/bin/py.test${MODPY_BIN_SUFFIX}
.endif
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.2 2016/11/01 22:17:54 danj Exp $
# $OpenBSD: Makefile,v 1.3 2016/11/10 21:58:40 danj Exp $
COMMENT = virtualenv-based automation of test activities
@ -28,10 +28,8 @@ FLAVOR ?=
# some tests need HOME to be writable
PORTHOME = /tmp
.if ${FLAVOR:Mpython3}
post-install:
mv ${PREFIX}/bin/tox ${PREFIX}/bin/tox${MODPY_BIN_SUFFIX}
mv ${PREFIX}/bin/tox-quickstart ${PREFIX}/bin/tox-quickstart${MODPY_BIN_SUFFIX}
.endif
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.5 2016/11/04 07:13:36 shadchin Exp $
# $OpenBSD: Makefile,v 1.6 2016/11/10 21:58:40 danj Exp $
COMMENT = Python cross-version byte-code deparser
@ -28,10 +28,8 @@ FLAVOR ?=
NO_TEST = Yes
.if ${FLAVOR:Mpython3}
post-install:
mv ${PREFIX}/bin/pydisassemble ${PREFIX}/bin/pydisassemble${MODPY_BIN_SUFFIX}
mv ${PREFIX}/bin/uncompyle6 ${PREFIX}/bin/uncompyle6${MODPY_BIN_SUFFIX}
.endif
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.6 2016/11/09 19:02:58 shadchin Exp $
# $OpenBSD: Makefile,v 1.7 2016/11/10 21:58:40 danj Exp $
COMMENT = cross-version byte-code disassembler and marshal routines
@ -26,10 +26,8 @@ MODPY_SETUPTOOLS = Yes
FLAVORS = python3
FLAVOR ?=
.if ${FLAVOR:Mpython3}
post-install:
mv ${PREFIX}/bin/pydisasm ${PREFIX}/bin/pydisasm${MODPY_BIN_SUFFIX}
.endif
do-test:
cd ${WRKSRC} && \

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.20 2016/10/19 13:30:16 sthen Exp $
# $OpenBSD: Makefile,v 1.21 2016/11/10 21:58:40 danj Exp $
COMMENT= Python Imaging Library (maintained fork of PIL)
@ -49,9 +49,7 @@ INCL_DIR= ${MODPY_INCDIR:S/${LOCALBASE}\///}
post-install:
${INSTALL_DATA_DIR} ${WRKINST}${MODPY_INCDIR}
${INSTALL_DATA} ${WRKSRC}/libImaging/{ImPlatform,Imaging}.h ${WRKINST}${MODPY_INCDIR}
.if ${FLAVOR:Mpython3}
for s in ${PREFIX}/bin/*; do mv $$s $$s${MODPY_BIN_SUFFIX}; done
.endif
do-test:
cd ${WRKSRC}; ${MODPY_BIN} ./selftest.py --installed

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.36 2016/03/20 16:12:26 naddy Exp $
# $OpenBSD: Makefile,v 1.37 2016/11/10 21:58:41 danj Exp $
COMMENT = cryptographic tools for Python
@ -42,9 +42,7 @@ do-install:
@${MODPY_INSTALL_TARGET}
${INSTALL_DATA_DIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.if ${FLAVOR:Mpython3}
mv ${PREFIX}/share/doc/py-crypto ${PREFIX}/share/doc/py3-crypto
.endif
mv ${PREFIX}/share/doc/py-crypto ${PREFIX}/share/doc/${MODPY_PY_PREFIX}crypto
do-test: fake
cd ${WRKSRC} && ${MAKE_ENV} \

View File

@ -1,10 +1,11 @@
# $OpenBSD: Makefile,v 1.10 2016/08/27 17:40:17 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.11 2016/11/10 21:58:41 danj Exp $
COMMENT= store and access your passwords safely
MODPY_EGG_VERSION= 9.3.1
DISTNAME= keyring-${MODPY_EGG_VERSION}
PKGNAME= py-${DISTNAME}
REVISION= 0
CATEGORIES= security
@ -29,9 +30,7 @@ TEST_DEPENDS= devel/py-test${MODPY_FLAVOR}
FLAVORS = python3
FLAVOR ?=
.if ${FLAVOR:Mpython3}
post-install:
mv ${PREFIX}/bin/keyring ${PREFIX}/bin/keyring-${MODPY_VERSION}
.endif
mv ${PREFIX}/bin/keyring ${PREFIX}/bin/keyring${MODPY_BIN_SUFFIX}
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
@comment $OpenBSD: PFRAG.python3,v 1.1 2015/03/16 11:09:37 ajacoutot Exp $
bin/keyring-${MODPY_VERSION}
@comment $OpenBSD: PFRAG.python3,v 1.2 2016/11/10 21:58:41 danj Exp $
bin/keyring${MODPY_BIN_SUFFIX}

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.5 2016/05/26 09:57:47 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.6 2016/11/10 21:58:41 danj Exp $
COMMENT= Python RSA implementation
@ -25,12 +25,10 @@ TEST_DEPENDS= ${RUN_DEPENDS} \
FLAVORS= python3
FLAVOR ?=
.if ${FLAVOR:Mpython3}
post-install:
for i in ${PREFIX}/bin/*; do \
mv $${i} $${i}${MODPY_BIN_SUFFIX} ;\
done
.endif
do-test:
cd ${WRKSRC} && ${MODPY_BIN} -m pytest

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.6 2016/01/04 12:18:06 shadchin Exp $
# $OpenBSD: Makefile,v 1.7 2016/11/10 21:58:41 danj Exp $
COMMENT= character encoding auto-detection in Python
@ -22,9 +22,7 @@ NO_TEST= Yes
FLAVORS = python3
FLAVOR ?=
.if ${FLAVOR:Mpython3}
post-install:
mv ${PREFIX}/bin/chardetect ${PREFIX}/bin/chardetect${MODPY_BIN_SUFFIX}
.endif
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.1.1.1 2016/09/02 14:12:20 edd Exp $
# $OpenBSD: Makefile,v 1.2 2016/11/10 21:58:41 danj Exp $
COMMENT = encoder, decoder, and lint/validator for JSON
@ -26,9 +26,7 @@ do-test:
.endif
cd ${WRKSRC}/test && ${MODPY_BIN} -m unittest test_demjson
.if ${FLAVOR:Mpython3}
post-install:
mv ${PREFIX}/bin/jsonlint ${PREFIX}/bin/jsonlint${MODPY_BIN_SUFFIX}
.endif
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.21 2016/01/07 08:26:19 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.22 2016/11/10 21:58:41 danj Exp $
COMMENT = process plaintext documentation into other formats
@ -27,12 +27,10 @@ pre-build:
mv ${WRKSRC}/tools/rst${file}{.py,}
.endfor
.if ${FLAVOR:Mpython3}
post-install:
for i in ${PREFIX}/bin/*; do \
mv $${i} $${i}${MODPY_BIN_SUFFIX} ;\
done
.endif
do-test:
cd ${WRKSRC}/test${MODPY_BIN_SUFFIX:S/-//} && ${MODPY_BIN} ./alltests.py

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.23 2016/05/31 06:06:20 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.24 2016/11/10 21:58:41 danj Exp $
COMMENT= Python syntax highlighter
@ -25,10 +25,8 @@ TEST_DEPENDS= devel/py-nose${MODPY_FLAVOR}
FLAVORS= python3
FLAVOR ?=
.if ${FLAVOR:Mpython3}
post-install:
mv ${PREFIX}/bin/pygmentize ${PREFIX}/bin/pygmentize${MODPY_BIN_SUFFIX}
.endif
do-test:
cd ${WRKSRC}/tests && ${MAKE_ENV} \

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.20 2016/11/06 06:54:56 shadchin Exp $
# $OpenBSD: Makefile,v 1.21 2016/11/10 21:58:41 danj Exp $
COMMENT = python documentation generator
@ -46,9 +46,7 @@ DOCS = ${PREFIX}/share/doc/${MODPY_PY_PREFIX}sphinx
post-install:
${INSTALL_DATA_DIR} ${DOCS}
cd ${WRKSRC}/doc/_build/html && pax -rw * ${DOCS}
.if ${FLAVOR:Mpython3}
cd ${PREFIX}/bin && find . -name '*' -exec mv {} {}${MODPY_BIN_SUFFIX} \;
.endif
do-test:
cd ${WRKSRC} && env SPHINX_TEST_TEMPDIR=${WRKDIR} \

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.19 2016/11/02 16:50:02 danj Exp $
# $OpenBSD: Makefile,v 1.20 2016/11/10 21:58:41 danj Exp $
COMMENT = microframework based on Werkzeug and Jinja 2
@ -45,9 +45,7 @@ post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/${MODPY_PY_PREFIX}flask
cd ${WRKSRC}/examples && pax -rw * \
${PREFIX}/share/examples/${MODPY_PY_PREFIX}flask
.if ${FLAVOR:Mpython3}
mv ${PREFIX}/bin/flask ${PREFIX}/bin/flask${MODPY_BIN_SUFFIX}
.endif
do-test:
cd ${WRKSRC} && LC_ALL=C.UTF-8 ${MODPY_BIN} -m pytest tests examples

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.15 2016/06/13 08:44:52 jasper Exp $
# $OpenBSD: Makefile,v 1.16 2016/11/10 21:58:41 danj Exp $
COMMENT = Python WSGI HTTP server
@ -30,11 +30,9 @@ TEST_DEPENDS = devel/py-test${MODPY_FLAVOR} \
TEST_DEPENDS += devel/py-mock
.endif
.if ${FLAVOR:Mpython3}
post-install:
for i in ${PREFIX}/bin/*; do \
mv $${i} $${i}${MODPY_BIN_SUFFIX} ;\
done
.endif
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.18 2015/09/29 10:52:55 sthen Exp $
# $OpenBSD: Makefile,v 1.19 2016/11/10 21:58:41 danj Exp $
COMMENT = super-fast templating language
@ -31,10 +31,8 @@ TEST_DEPENDS = devel/py-nose${MODPY_FLAVOR} \
MODPY_SETUPTOOLS = Yes
.if ${FLAVOR:Mpython3}
post-install:
mv ${PREFIX}/bin/mako-render \
${PREFIX}/bin/mako-render${MODPY_BIN_SUFFIX}
.endif
.include <bsd.port.mk>