pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/py-nose py-nose: simplify installation, and fix ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/2dbe10decc78
branches: trunk
changeset: 459565:2dbe10decc78
user: wiz <wiz%pkgsrc.org@localhost>
date: Sat Oct 09 12:50:45 2021 +0000
description:
py-nose: simplify installation, and fix for python 3.10
diffstat:
devel/py-nose/Makefile | 15 ++++++---------
devel/py-nose/distinfo | 4 ++--
devel/py-nose/patches/patch-aa | 24 ------------------------
3 files changed, 8 insertions(+), 35 deletions(-)
diffs (79 lines):
diff -r 78fb47077f25 -r 2dbe10decc78 devel/py-nose/Makefile
--- a/devel/py-nose/Makefile Sat Oct 09 10:59:44 2021 +0000
+++ b/devel/py-nose/Makefile Sat Oct 09 12:50:45 2021 +0000
@@ -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@localhost
HOMEPAGE= https://nose.readthedocs.io/
@@ -16,18 +15,16 @@
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 -r 78fb47077f25 -r 2dbe10decc78 devel/py-nose/distinfo
--- a/devel/py-nose/distinfo Sat Oct 09 10:59:44 2021 +0000
+++ b/devel/py-nose/distinfo Sat Oct 09 12:50:45 2021 +0000
@@ -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 -r 78fb47077f25 -r 2dbe10decc78 devel/py-nose/patches/patch-aa
--- a/devel/py-nose/patches/patch-aa Sat Oct 09 10:59:44 2021 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -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']},
Home |
Main Index |
Thread Index |
Old Index