diff options
author | wiz <wiz@pkgsrc.org> | 2021-10-09 12:50:45 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2021-10-09 12:50:45 +0000 |
commit | 7de9cb8f515ed345b2599d781cdea2c79fcd23d9 (patch) | |
tree | cc57d62afd163dadaf53f50bcf5e083850e9cc1e /devel | |
parent | bb9c1edb287da20aa7169afc28edd89b2f84be7f (diff) | |
download | pkgsrc-7de9cb8f515ed345b2599d781cdea2c79fcd23d9.tar.gz |
py-nose: simplify installation, and fix for python 3.10
Diffstat (limited to 'devel')
-rw-r--r-- | devel/py-nose/Makefile | 15 | ||||
-rw-r--r-- | devel/py-nose/distinfo | 4 | ||||
-rw-r--r-- | devel/py-nose/patches/patch-aa | 24 |
3 files changed, 8 insertions, 35 deletions
diff --git a/devel/py-nose/Makefile b/devel/py-nose/Makefile index ef470d129f9..9cdc61d47cd 100644 --- a/devel/py-nose/Makefile +++ b/devel/py-nose/Makefile @@ -1,10 +1,9 @@ -# $NetBSD: Makefile,v 1.16 2020/08/18 20:12:37 riastradh Exp $ +# $NetBSD: Makefile,v 1.17 2021/10/09 12:50:45 wiz Exp $ DISTNAME= nose-1.3.7 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= devel python MASTER_SITES= ${MASTER_SITE_PYPI:=n/nose/} -EXTRACT_USING= bsdtar MAINTAINER= kamel.derouiche@gmail.com HOMEPAGE= https://nose.readthedocs.io/ @@ -16,18 +15,16 @@ LICENSE= gnu-lgpl-v2.1 USE_LANGUAGES= # none -SUBST_CLASSES+= manpath -SUBST_STAGE.manpath= pre-build -SUBST_FILES.manpath= setup.py -SUBST_VARS.manpath= PKGMANDIR - -post-extract: - ${MV} ${WRKSRC}/nosetests.1 ${WRKSRC}/nosetests${PYVERSSUFFIX}.1 +INSTALLATION_DIRS+= ${PKGMANDIR}/man1 pre-test: ${RUN} cd ${WRKSRC} && \ ${PYTHONBIN} setup.py build_tests +post-install: + ${RM} ${DESTDIR}${PREFIX}/bin/nosetests + ${MV} ${DESTDIR}${PREFIX}/man/man1/nosetests.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/nosetests${PYVERSSUFFIX}.1 + do-test: ${RUN} cd ${WRKSRC}; ${SETENV} ${TEST_ENV} ${PYTHONBIN} selftest.py diff --git a/devel/py-nose/distinfo b/devel/py-nose/distinfo index c7246a19d67..cc3721983af 100644 --- a/devel/py-nose/distinfo +++ b/devel/py-nose/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.10 2021/10/07 13:43:23 nia Exp $ +$NetBSD: distinfo,v 1.11 2021/10/09 12:50:45 wiz Exp $ RMD160 (nose-1.3.7.tar.gz) = 4a3e1bb3121a2620aec0baa51eac1bb5a11cf6e9 SHA512 (nose-1.3.7.tar.gz) = e65c914f621f8da06b9ab11a0ff2763d6e29b82ce2aaed56da0e3773dc899d9deb1f20015789d44c65a5dad7214520f5b659b3f8d7695fb207ad3f78e5cf1b62 Size (nose-1.3.7.tar.gz) = 280488 bytes -SHA1 (patch-aa) = 6bc968f1609a4dd2ea8acba10f4b6d13b6876204 +SHA1 (patch-aa) = 83e3370769762bbb68d79edb7a785f9b62a2b039 diff --git a/devel/py-nose/patches/patch-aa b/devel/py-nose/patches/patch-aa deleted file mode 100644 index 98dd35d5663..00000000000 --- a/devel/py-nose/patches/patch-aa +++ /dev/null @@ -1,24 +0,0 @@ -$NetBSD: patch-aa,v 1.4 2015/09/30 13:58:15 jperkin Exp $ - -Use PKGMANDIR. - ---- setup.py.orig 2011-07-30 23:49:15.000000000 +0000 -+++ setup.py -@@ -29,7 +29,7 @@ try: - packages = find_packages(), - entry_points = { - 'console_scripts': [ -- 'nosetests = nose:run_exit', -+# 'nosetests = nose:run_exit', - 'nosetests%s = nose:run_exit' % py_vers_tag, - ], - 'distutils.commands': [ -@@ -102,7 +102,7 @@ setup( - license = 'GNU LGPL', - keywords = 'test unittest doctest automatic discovery', - url = 'http://readthedocs.org/docs/nose/', -- data_files = [('man/man1', ['nosetests.1'])], -+ data_files = [('@PKGMANDIR@/man1', ['nosetests' + sys.version[0:3] + '.1'])], - package_data = {'': ['*.txt', - 'examples/*.py', - 'examples/*/*.py']}, |