py-gflags: convert to egg.mk Disable python 2.7 version, which would need a hack. Bump PKGREVISION.diff -r1.10 -r1.11 pkgsrc/devel/py-gflags/Makefile
(wiz)
@@ -1,25 +1,25 @@ | @@ -1,25 +1,25 @@ | |||
1 | # $NetBSD: Makefile,v 1.10 2019/11/03 10:18:27 rillig Exp $ | 1 | # $NetBSD: Makefile,v 1.11 2022/01/01 17:31:36 wiz Exp $ | |
2 | 2 | |||
3 | DISTNAME= python-gflags-3.1.2 | 3 | DISTNAME= python-gflags-3.1.2 | |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/python-//} | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/python-//} | |
5 | PKGREVISION= 2 | 5 | PKGREVISION= 3 | |
6 | CATEGORIES= devel python | 6 | CATEGORIES= devel python | |
7 | MASTER_SITES= ${MASTER_SITE_PYPI:=p/python-gflags/} | 7 | MASTER_SITES= ${MASTER_SITE_PYPI:=p/python-gflags/} | |
8 | 8 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= https://github.com/google/python-gflags | 10 | HOMEPAGE= https://github.com/google/python-gflags | |
11 | COMMENT= Python equivalent of gflags, a commandline flag implementation | 11 | COMMENT= Python equivalent of gflags, a commandline flag implementation | |
12 | LICENSE= modified-bsd | 12 | LICENSE= modified-bsd | |
13 | 13 | |||
14 | REPLACE_PYTHON+= *.py | |||
15 | PYDISTUTILSPKG= yes | |||
16 | ||||
17 | DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six | 14 | DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six | |
18 | 15 | |||
16 | REPLACE_PYTHON+= *.py | |||
17 | PYTHON_VERSIONS_INCOMPATIBLE= 27 | |||
18 | ||||
19 | post-install: | 19 | post-install: | |
20 | ${MV} ${DESTDIR}${PREFIX}/bin/gflags2man.py ${DESTDIR}${PREFIX}/bin/gflags2man${PYVERSSUFFIX}.py | 20 | ${MV} ${DESTDIR}${PREFIX}/bin/gflags2man.py ${DESTDIR}${PREFIX}/bin/gflags2man${PYVERSSUFFIX}.py | |
21 | ${CHMOD} +x ${DESTDIR}${PREFIX}/bin/gflags2man${PYVERSSUFFIX}.py | 21 | ${CHMOD} +x ${DESTDIR}${PREFIX}/bin/gflags2man${PYVERSSUFFIX}.py | |
22 | 22 | |||
23 | .include "../../lang/python/application.mk" | 23 | .include "../../lang/python/application.mk" | |
24 | .include "../../lang/python/distutils.mk" | 24 | .include "../../lang/python/egg.mk" | |
25 | .include "../../mk/bsd.pkg.mk" | 25 | .include "../../mk/bsd.pkg.mk" |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.4 2018/05/31 20:07:00 bsiegert Exp $ | 1 | @comment $NetBSD: PLIST,v 1.5 2022/01/01 17:31:36 wiz Exp $ | |
2 | bin/gflags2man${PYVERSSUFFIX}.py | 2 | bin/gflags2man${PYVERSSUFFIX}.py | |
3 | ${PYSITELIB}/gflags/__init__.py | 3 | ${PYSITELIB}/gflags/__init__.py | |
4 | ${PYSITELIB}/gflags/__init__.pyc | 4 | ${PYSITELIB}/gflags/__init__.pyc | |
5 | ${PYSITELIB}/gflags/__init__.pyo | 5 | ${PYSITELIB}/gflags/__init__.pyo | |
6 | ${PYSITELIB}/gflags/_helpers.py | 6 | ${PYSITELIB}/gflags/_helpers.py | |
7 | ${PYSITELIB}/gflags/_helpers.pyc | 7 | ${PYSITELIB}/gflags/_helpers.pyc | |
8 | ${PYSITELIB}/gflags/_helpers.pyo | 8 | ${PYSITELIB}/gflags/_helpers.pyo | |
9 | ${PYSITELIB}/gflags/_helpers_test.py | 9 | ${PYSITELIB}/gflags/_helpers_test.py | |
10 | ${PYSITELIB}/gflags/_helpers_test.pyc | 10 | ${PYSITELIB}/gflags/_helpers_test.pyc | |
11 | ${PYSITELIB}/gflags/_helpers_test.pyo | 11 | ${PYSITELIB}/gflags/_helpers_test.pyo | |
12 | ${PYSITELIB}/gflags/argument_parser.py | 12 | ${PYSITELIB}/gflags/argument_parser.py | |
13 | ${PYSITELIB}/gflags/argument_parser.pyc | 13 | ${PYSITELIB}/gflags/argument_parser.pyc | |
14 | ${PYSITELIB}/gflags/argument_parser.pyo | 14 | ${PYSITELIB}/gflags/argument_parser.pyo | |
@@ -26,14 +26,17 @@ ${PYSITELIB}/gflags/flags_unicode_litera | @@ -26,14 +26,17 @@ ${PYSITELIB}/gflags/flags_unicode_litera | |||
26 | ${PYSITELIB}/gflags/flags_unicode_literals_test.pyo | 26 | ${PYSITELIB}/gflags/flags_unicode_literals_test.pyo | |
27 | ${PYSITELIB}/gflags/flagvalues.py | 27 | ${PYSITELIB}/gflags/flagvalues.py | |
28 | ${PYSITELIB}/gflags/flagvalues.pyc | 28 | ${PYSITELIB}/gflags/flagvalues.pyc | |
29 | ${PYSITELIB}/gflags/flagvalues.pyo | 29 | ${PYSITELIB}/gflags/flagvalues.pyo | |
30 | ${PYSITELIB}/gflags/third_party/__init__.py | 30 | ${PYSITELIB}/gflags/third_party/__init__.py | |
31 | ${PYSITELIB}/gflags/third_party/__init__.pyc | 31 | ${PYSITELIB}/gflags/third_party/__init__.pyc | |
32 | ${PYSITELIB}/gflags/third_party/__init__.pyo | 32 | ${PYSITELIB}/gflags/third_party/__init__.pyo | |
33 | ${PYSITELIB}/gflags/third_party/pep257/__init__.py | 33 | ${PYSITELIB}/gflags/third_party/pep257/__init__.py | |
34 | ${PYSITELIB}/gflags/third_party/pep257/__init__.pyc | 34 | ${PYSITELIB}/gflags/third_party/pep257/__init__.pyc | |
35 | ${PYSITELIB}/gflags/third_party/pep257/__init__.pyo | 35 | ${PYSITELIB}/gflags/third_party/pep257/__init__.pyo | |
36 | ${PYSITELIB}/gflags/validators.py | 36 | ${PYSITELIB}/gflags/validators.py | |
37 | ${PYSITELIB}/gflags/validators.pyc | 37 | ${PYSITELIB}/gflags/validators.pyc | |
38 | ${PYSITELIB}/gflags/validators.pyo | 38 | ${PYSITELIB}/gflags/validators.pyo | |
39 | ${PYSITELIB}/${EGG_FILE} | 39 | ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO | |
40 | ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt | |||
41 | ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt | |||
42 | ${PYSITELIB}/${EGG_INFODIR}/top_level.txt |
@@ -1,31 +1,33 @@ | @@ -1,31 +1,33 @@ | |||
1 | # $NetBSD: Makefile,v 1.7 2021/05/06 04:49:56 adam Exp $ | 1 | # $NetBSD: Makefile,v 1.8 2022/01/01 17:31:36 wiz Exp $ | |
2 | 2 | |||
3 | DISTNAME= google-apitools-0.5.32 | 3 | DISTNAME= google-apitools-0.5.32 | |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | |
5 | CATEGORIES= www python | 5 | CATEGORIES= www python | |
6 | MASTER_SITES= ${MASTER_SITE_PYPI:=g/google-apitools/} | 6 | MASTER_SITES= ${MASTER_SITE_PYPI:=g/google-apitools/} | |
7 | 7 | |||
8 | MAINTAINER= bsiegert@NetBSD.org | 8 | MAINTAINER= bsiegert@NetBSD.org | |
9 | HOMEPAGE= https://github.com/google/apitools | 9 | HOMEPAGE= https://github.com/google/apitools | |
10 | COMMENT= Client libraries for humans | 10 | COMMENT= Client libraries for humans | |
11 | LICENSE= apache-2.0 | 11 | LICENSE= apache-2.0 | |
12 | 12 | |||
13 | DEPENDS+= ${PYPKGPREFIX}-fasteners>=0.14:../../devel/py-fasteners | 13 | DEPENDS+= ${PYPKGPREFIX}-fasteners>=0.14:../../devel/py-fasteners | |
14 | DEPENDS+= ${PYPKGPREFIX}-gflags>=3.0.6:../../devel/py-gflags | 14 | DEPENDS+= ${PYPKGPREFIX}-gflags>=3.0.6:../../devel/py-gflags | |
15 | DEPENDS+= ${PYPKGPREFIX}-httplib2>=0.8:../../www/py-httplib2 | 15 | DEPENDS+= ${PYPKGPREFIX}-httplib2>=0.8:../../www/py-httplib2 | |
16 | DEPENDS+= ${PYPKGPREFIX}-oauth2client>=2.1.0:../../security/py-oauth2client | 16 | DEPENDS+= ${PYPKGPREFIX}-oauth2client>=2.1.0:../../security/py-oauth2client | |
17 | DEPENDS+= ${PYPKGPREFIX}-six>=1.12.0:../../lang/py-six | 17 | DEPENDS+= ${PYPKGPREFIX}-six>=1.12.0:../../lang/py-six | |
18 | TEST_DEPENDS+= ${PYPKGPREFIX}-mock>=1.0.1:../../devel/py-mock | 18 | TEST_DEPENDS+= ${PYPKGPREFIX}-mock>=1.0.1:../../devel/py-mock | |
19 | TEST_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose | 19 | TEST_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose | |
20 | 20 | |||
21 | PYTHON_VERSIONS_INCOMPATIBLE= 27 # py-gflags | |||
22 | ||||
21 | USE_LANGUAGES= # none | 23 | USE_LANGUAGES= # none | |
22 | 24 | |||
23 | post-install: | 25 | post-install: | |
24 | cd ${DESTDIR}${PREFIX}/bin && \ | 26 | cd ${DESTDIR}${PREFIX}/bin && \ | |
25 | ${MV} gen_client gen_client-${PYVERSSUFFIX} || ${TRUE} | 27 | ${MV} gen_client gen_client-${PYVERSSUFFIX} || ${TRUE} | |
26 | 28 | |||
27 | do-test: | 29 | do-test: | |
28 | cd ${WRKSRC} && nosetests-${PYVERSSUFFIX} | 30 | cd ${WRKSRC} && nosetests-${PYVERSSUFFIX} | |
29 | 31 | |||
30 | .include "../../lang/python/egg.mk" | 32 | .include "../../lang/python/egg.mk" | |
31 | .include "../../mk/bsd.pkg.mk" | 33 | .include "../../mk/bsd.pkg.mk" |