pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
py-coala: Fix installation dirs
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Sun Oct 8 03:37:44 2017 +0200
Changeset: 075260823d47494806e74ba2b663b44c7add64ec
Modified Files:
py-coala/Makefile
py-coala/PLIST
Added Files:
py-coala/ALTERNATIVES
Log Message:
py-coala: Fix installation dirs
Correct target dir of the man page coala.1.
Add ALTERNATIVES.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=075260823d47494806e74ba2b663b44c7add64ec
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
py-coala/ALTERNATIVES | 5 +++++
py-coala/Makefile | 10 ++++++++++
py-coala/PLIST | 12 ++++++------
3 files changed, 21 insertions(+), 6 deletions(-)
diffs:
diff --git a/py-coala/ALTERNATIVES b/py-coala/ALTERNATIVES
new file mode 100644
index 0000000000..6bf8c4f86f
--- /dev/null
+++ b/py-coala/ALTERNATIVES
@@ -0,0 +1,5 @@
+bin/coala @PREFIX@/bin/coala@PYVERSSUFFIX@
+bin/coala-ci @PREFIX@/bin/coala-ci@PYVERSSUFFIX@
+bin/coala-delete-orig @PREFIX@/bin/coala-delete-orig@PYVERSSUFFIX@
+bin/coala-format @PREFIX@/bin/coala-format@PYVERSSUFFIX@
+bin/coala-json @PREFIX@/bin/coala-json@PYVERSSUFFIX@
diff --git a/py-coala/Makefile b/py-coala/Makefile
index 7f60fb7223..a4aad71b31 100644
--- a/py-coala/Makefile
+++ b/py-coala/Makefile
@@ -13,6 +13,8 @@ LICENSE= gnu-agpl-v3
PYTHON_VERSIONS_INCOMPATIBLE= 27
+INSTALLATION_DIRS+= ${PKGMANDIR}
+
DEPENDS+= ${PYPKGPREFIX}-appdirs-[0-9]*:../../devel/py-appdirs
DEPENDS+= ${PYPKGPREFIX}-print-[0-9]*:../../wip/py-print
DEPENDS+= ${PYPKGPREFIX}-coala_utils-[0-9]*:../../wip/py-coala_utils
@@ -24,6 +26,14 @@ DEPENDS+= ${PYPKGPREFIX}-dependency_management-[0-9]*:../../wip/py-dependency_ma
# Missing:
# py-libclang
+post-install:
+.for w in coala coala-ci coala-delete-orig coala-format coala-json
+ ${RUN} ${MV} ${DESTDIR}${PREFIX}/bin/${w} \
+ ${DESTDIR}${PREFIX}/bin/${w}${PYVERSSUFFIX}
+.endfor
+ ${RUN} ${MV} ${DESTDIR}${PREFIX}/coala.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/coala.1
+
.include "../../lang/python/application.mk"
.include "../../lang/python/distutils.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/py-coala/PLIST b/py-coala/PLIST
index 93f1ee3902..e3569f8912 100644
--- a/py-coala/PLIST
+++ b/py-coala/PLIST
@@ -1,10 +1,9 @@
@comment $NetBSD$
-bin/coala
-bin/coala-ci
-bin/coala-delete-orig
-bin/coala-format
-bin/coala-json
-coala.1
+bin/coala-ci${PYVERSSUFFIX}
+bin/coala-delete-orig${PYVERSSUFFIX}
+bin/coala-format${PYVERSSUFFIX}
+bin/coala-json${PYVERSSUFFIX}
+bin/coala${PYVERSSUFFIX}
${PYSITELIB}/${EGG_FILE}/PKG-INFO
${PYSITELIB}/${EGG_FILE}/SOURCES.txt
${PYSITELIB}/${EGG_FILE}/dependency_links.txt
@@ -391,3 +390,4 @@ ${PYSITELIB}/coalib/testing/LocalBearTestHelper.pyo
${PYSITELIB}/coalib/testing/LocalBearTestHelper.pyc
${PYSITELIB}/coalib/testing/__init__.pyo
${PYSITELIB}/coalib/testing/__init__.pyc
+man/coala.1
Home |
Main Index |
Thread Index |
Old Index