pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-gflags



Module Name:    pkgsrc
Committed By:   bsiegert
Date:           Thu May 31 20:07:00 UTC 2018

Modified Files:
        pkgsrc/devel/py-gflags: Makefile PLIST
Added Files:
        pkgsrc/devel/py-gflags: ALTERNATIVES

Log Message:
Fix installation of the gflags2man script.

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


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-gflags/ALTERNATIVES
cvs rdiff -u -r1.8 -r1.9 pkgsrc/devel/py-gflags/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/py-gflags/PLIST

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-gflags/Makefile
diff -u pkgsrc/devel/py-gflags/Makefile:1.8 pkgsrc/devel/py-gflags/Makefile:1.9
--- pkgsrc/devel/py-gflags/Makefile:1.8 Fri May 25 02:08:36 2018
+++ pkgsrc/devel/py-gflags/Makefile     Thu May 31 20:07:00 2018
@@ -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 @@ PYDISTUTILSPKG=      yes
 
 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"

Index: pkgsrc/devel/py-gflags/PLIST
diff -u pkgsrc/devel/py-gflags/PLIST:1.3 pkgsrc/devel/py-gflags/PLIST:1.4
--- pkgsrc/devel/py-gflags/PLIST:1.3    Fri May 25 02:08:36 2018
+++ pkgsrc/devel/py-gflags/PLIST        Thu May 31 20:07:00 2018
@@ -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

Added files:

Index: pkgsrc/devel/py-gflags/ALTERNATIVES
diff -u /dev/null pkgsrc/devel/py-gflags/ALTERNATIVES:1.1
--- /dev/null   Thu May 31 20:07:00 2018
+++ pkgsrc/devel/py-gflags/ALTERNATIVES Thu May 31 20:07:00 2018
@@ -0,0 +1 @@
+bin/gflags2man.py @PREFIX@/bin/gflags2man@PYVERSSUFFIX@.py



Home | Main Index | Thread Index | Old Index