pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
py-Glances: Adds ALTERNATIVES for supporting builds with Python 2 and 3.
Module Name: pkgsrc-wip
Committed By: Santhosh Raju <fox%NetBSD.org@localhost>
Pushed By: fox
Date: Wed Oct 9 17:15:46 2019 -0500
Changeset: e2c6a21b4a50e3d68f7d6e1bdbf31848a5736d9e
Modified Files:
py-Glances/Makefile
py-Glances/PLIST
Added Files:
py-Glances/ALTERNATIVES
Log Message:
py-Glances: Adds ALTERNATIVES for supporting builds with Python 2 and 3.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=e2c6a21b4a50e3d68f7d6e1bdbf31848a5736d9e
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
py-Glances/ALTERNATIVES | 1 +
py-Glances/Makefile | 3 +++
py-Glances/PLIST | 2 +-
3 files changed, 5 insertions(+), 1 deletion(-)
diffs:
diff --git a/py-Glances/ALTERNATIVES b/py-Glances/ALTERNATIVES
new file mode 100644
index 0000000000..d4a6af86c3
--- /dev/null
+++ b/py-Glances/ALTERNATIVES
@@ -0,0 +1 @@
+bin/glances @PREFIX@/bin/glances@PYVERSSUFFIX@
diff --git a/py-Glances/Makefile b/py-Glances/Makefile
index c51aeab066..ee7998ff46 100644
--- a/py-Glances/Makefile
+++ b/py-Glances/Makefile
@@ -24,5 +24,8 @@ SUBST_FILES.prefix= ${WRKSRC}/setup.py
SUBST_VARS.prefix= PREFIX
SUBST_VARS.prefix+= PKGMANDIR
+post-install:
+ cd ${DESTDIR}${PREFIX}/bin && ${MV} glances glances${PYVERSSUFFIX} || ${TRUE}
+
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/py-Glances/PLIST b/py-Glances/PLIST
index 901c36466e..129637e129 100644
--- a/py-Glances/PLIST
+++ b/py-Glances/PLIST
@@ -1,5 +1,5 @@
@comment $NetBSD$
-bin/glances
+bin/glances${PYVERSSUFFIX}
man/man1/glances.1
share/doc/glances/AUTHORS
share/doc/glances/CONTRIBUTING.md
Home |
Main Index |
Thread Index |
Old Index