summaryrefslogtreecommitdiff
path: root/devel/bokken
diff options
context:
space:
mode:
authorkamil <kamil>2015-12-09 03:03:46 +0000
committerkamil <kamil>2015-12-09 03:03:46 +0000
commit872f4e1893949882bbe70933309273c7e2c08c39 (patch)
tree09d7104a96375cca0048a729afc558f5d281b840 /devel/bokken
parent09db961d89aa34a7883253f3561e3a3886a486ea (diff)
downloadpkgsrc-872f4e1893949882bbe70933309273c7e2c08c39.tar.gz
Make devel/bokken work
Changes: - Fix bokken startup script. - Add runtime dependency on py-Pillow It would be probably better to link bin/bokken share/bokken/bokken.py The intermediate script tries to detect (wrongly in pkgsrc) the Python executable and it needs adapting anyway.
Diffstat (limited to 'devel/bokken')
-rw-r--r--devel/bokken/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/devel/bokken/Makefile b/devel/bokken/Makefile
index e8de93c610a..ef254291b76 100644
--- a/devel/bokken/Makefile
+++ b/devel/bokken/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2015/12/05 21:25:33 adam Exp $
+# $NetBSD: Makefile,v 1.5 2015/12/09 03:03:46 kamil Exp $
DISTNAME= bokken-1.8
CATEGORIES= devel
@@ -13,6 +13,7 @@ DEPENDS+= ${PYPKGPREFIX}-graphviz-[0-9]*:../../graphics/py-graphviz
DEPENDS+= ${PYPKGPREFIX}-gtk2-[0-9]*:../../x11/py-gtk2
DEPENDS+= ${PYPKGPREFIX}-gtksourceview-[0-9]*:../../x11/py-gtksourceview
DEPENDS+= ${PYPKGPREFIX}-radare2-[0-9]*:../../devel/py-radare2
+DEPENDS+= ${PYPKGPREFIX}-Pillow-[0-9]*:../../graphics/py-Pillow
USE_TOOLS+= pax
@@ -35,6 +36,14 @@ SUBST_MESSAGE.bin-dot= Fixing path to dot(1)
SUBST_FILES.bin-dot= ui/graph.py
SUBST_SED.bin-dot= -e 's,/usr/bin/dot,${PREFIX}/bin/dot,'
+SUBST_CLASSES+= bin-python
+SUBST_STAGE.bin-python= post-patch
+SUBST_MESSAGE.bin-python= Fixing path to python${PYVERSSUFFIX}(1)
+SUBST_FILES.bin-python= bokken
+SUBST_SED.bin-python= -e 's,"python","python${PYVERSSUFFIX}",'
+SUBST_SED.bin-python+= -e 's,\(PYTHON_VER=\).*,\1${PYVERSSUFFIX},'
+SUBST_SED.bin-python+= -e 's,-eq,=,'
+
INSTALLATION_DIRS= bin share/bokken
do-install: