pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
py-pysrt: properly handle installation with multiple Python versions
Module Name: pkgsrc-wip
Committed By: Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By: leot
Date: Mon Feb 13 13:09:14 2017 +0100
Changeset: 496c24af1f147ee344d9efe37a7a2775a5421b71
Modified Files:
py-pysrt/Makefile
py-pysrt/PLIST
Added Files:
py-pysrt/ALTERNATIVES
Log Message:
py-pysrt: properly handle installation with multiple Python versions
- Properly rename srt script with a -${PYVERSSUFFIX} suffix appended in the
post-install phase and adjust PLIST accordingly
- Add ALTERNATIVES
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=496c24af1f147ee344d9efe37a7a2775a5421b71
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
py-pysrt/ALTERNATIVES | 1 +
py-pysrt/Makefile | 3 +++
py-pysrt/PLIST | 2 +-
3 files changed, 5 insertions(+), 1 deletion(-)
diffs:
diff --git a/py-pysrt/ALTERNATIVES b/py-pysrt/ALTERNATIVES
new file mode 100644
index 0000000000..631d91d721
--- /dev/null
+++ b/py-pysrt/ALTERNATIVES
@@ -0,0 +1 @@
+bin/srt @PREFIX@/bin/srt-@PYVERSSUFFIX@
diff --git a/py-pysrt/Makefile b/py-pysrt/Makefile
index ccda205663..b63df8cda7 100644
--- a/py-pysrt/Makefile
+++ b/py-pysrt/Makefile
@@ -14,6 +14,9 @@ DEPENDS+= ${PYPKGPREFIX}-chardet-[0-9]*:../../converters/py-chardet
USE_LANGUAGES= # none
+post-install:
+ ${MV} ${DESTDIR}${PREFIX}/bin/srt ${DESTDIR}${PREFIX}/bin/srt-${PYVERSSUFFIX} || ${TRUE}
+
.include "../../lang/python/application.mk"
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/py-pysrt/PLIST b/py-pysrt/PLIST
index 26e3476a1b..e5ab02c414 100644
--- a/py-pysrt/PLIST
+++ b/py-pysrt/PLIST
@@ -1,5 +1,5 @@
@comment $NetBSD$
-bin/srt
+bin/srt-${PYVERSSUFFIX}
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
Home |
Main Index |
Thread Index |
Old Index