pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-gflags Fix installation of the gflags2man scr...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/512ec67555ce
branches:  trunk
changeset: 381194:512ec67555ce
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Thu May 31 20:07:00 2018 +0000

description:
Fix installation of the gflags2man script.

- install with a name that contains the Python version
- add alternatives file
- correctly mark script executable
- bump revision.

diffstat:

 devel/py-gflags/ALTERNATIVES |  1 +
 devel/py-gflags/Makefile     |  8 ++++++--
 devel/py-gflags/PLIST        |  4 ++--
 3 files changed, 9 insertions(+), 4 deletions(-)

diffs (41 lines):

diff -r c5ebb2b7378e -r 512ec67555ce devel/py-gflags/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-gflags/ALTERNATIVES      Thu May 31 20:07:00 2018 +0000
@@ -0,0 +1,1 @@
+bin/gflags2man.py @PREFIX@/bin/gflags2man@PYVERSSUFFIX@.py
diff -r c5ebb2b7378e -r 512ec67555ce devel/py-gflags/Makefile
--- a/devel/py-gflags/Makefile  Thu May 31 19:56:37 2018 +0000
+++ b/devel/py-gflags/Makefile  Thu May 31 20:07:00 2018 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.8 2018/05/25 02:08:36 bsiegert Exp $
+# $NetBSD: Makefile,v 1.9 2018/05/31 20:07:00 bsiegert Exp $
 
 DISTNAME=      python-gflags-3.1.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/python-//}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/python-gflags/}
 
@@ -16,6 +16,10 @@
 
 DEPENDS+=      ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
 
+post-install:
+       ${MV} ${DESTDIR}${PREFIX}/bin/gflags2man.py ${DESTDIR}${PREFIX}/bin/gflags2man${PYVERSSUFFIX}.py 
+       ${CHMOD} +x ${DESTDIR}${PREFIX}/bin/gflags2man${PYVERSSUFFIX}.py 
+
 .include "../../lang/python/application.mk"
 .include "../../lang/python/distutils.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r c5ebb2b7378e -r 512ec67555ce devel/py-gflags/PLIST
--- a/devel/py-gflags/PLIST     Thu May 31 19:56:37 2018 +0000
+++ b/devel/py-gflags/PLIST     Thu May 31 20:07:00 2018 +0000
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.3 2018/05/25 02:08:36 bsiegert Exp $
-bin/gflags2man.py
+@comment $NetBSD: PLIST,v 1.4 2018/05/31 20:07:00 bsiegert Exp $
+bin/gflags2man${PYVERSSUFFIX}.py
 ${PYSITELIB}/gflags/__init__.py
 ${PYSITELIB}/gflags/__init__.pyc
 ${PYSITELIB}/gflags/__init__.pyo



Home | Main Index | Thread Index | Old Index