pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-pyelftools py-pyelftools: enable all Python v...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/21e7986a3139
branches:  trunk
changeset: 378356:21e7986a3139
user:      adam <adam%pkgsrc.org@localhost>
date:      Fri Apr 06 07:08:26 2018 +0000

description:
py-pyelftools: enable all Python versions; enable tests; use ALTERNATIVES

diffstat:

 devel/py-pyelftools/ALTERNATIVES |   1 +
 devel/py-pyelftools/Makefile     |  15 +++++++++++----
 devel/py-pyelftools/PLIST        |   4 ++--
 3 files changed, 14 insertions(+), 6 deletions(-)

diffs (47 lines):

diff -r 58100b3bbfa5 -r 21e7986a3139 devel/py-pyelftools/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-pyelftools/ALTERNATIVES  Fri Apr 06 07:08:26 2018 +0000
@@ -0,0 +1,1 @@
+bin/readelf.py @PREFIX@/bin/readelf-@PYVERSSUFFIX@.py
diff -r 58100b3bbfa5 -r 21e7986a3139 devel/py-pyelftools/Makefile
--- a/devel/py-pyelftools/Makefile      Fri Apr 06 06:58:24 2018 +0000
+++ b/devel/py-pyelftools/Makefile      Fri Apr 06 07:08:26 2018 +0000
@@ -1,16 +1,23 @@
-# $NetBSD: Makefile,v 1.1 2018/03/20 15:34:16 khorben Exp $
+# $NetBSD: Makefile,v 1.2 2018/04/06 07:08:26 adam Exp $
 
 DISTNAME=      pyelftools-0.24
 PKGNAME=       ${PYPKGPREFIX}-${EGG_NAME}
-CATEGORIES=    devel
+PKGREVISION=   1
+CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pyelftools/}
 
 MAINTAINER=    khorben%defora.org@localhost
-HOMEPAGE=      https://pypi.python.org/pypi/pyelftools/
+HOMEPAGE=      https://github.com/eliben/pyelftools
 COMMENT=       Library for analyzing ELF files and DWARF debugging information
 LICENSE=       public-domain
 
-PYTHON_VERSIONS_ACCEPTED=      27
+USE_LANGUAGES= # none
+
+post-install:
+       cd ${DESTDIR}${PREFIX}/bin && ${MV} readelf.py readelf-${PYVERSSUFFIX}.py || ${TRUE}
+
+do-test:
+       cd ${WRKSRC} && ${PYTHONBIN} test/run_all_unittests.py
 
 .include "../../lang/python/distutils.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 58100b3bbfa5 -r 21e7986a3139 devel/py-pyelftools/PLIST
--- a/devel/py-pyelftools/PLIST Fri Apr 06 06:58:24 2018 +0000
+++ b/devel/py-pyelftools/PLIST Fri Apr 06 07:08:26 2018 +0000
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.1 2018/03/20 15:34:16 khorben Exp $
-bin/readelf.py
+@comment $NetBSD: PLIST,v 1.2 2018/04/06 07:08:26 adam Exp $
+bin/readelf-${PYVERSSUFFIX}.py
 ${PYSITELIB}/elftools/__init__.py
 ${PYSITELIB}/elftools/__init__.pyc
 ${PYSITELIB}/elftools/__init__.pyo



Home | Main Index | Thread Index | Old Index