summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2015-05-03 18:01:28 +0000
committerbsiegert <bsiegert@pkgsrc.org>2015-05-03 18:01:28 +0000
commit61f80633a1f32c5ca67f7e5711b46142284c80da (patch)
treefdf39f30a1509181cd74fb7b77d6c42e29a690ad /devel
parent5760c5c2d0837e50786c505b882a224779269ba7 (diff)
downloadpkgsrc-61f80633a1f32c5ca67f7e5711b46142284c80da.tar.gz
Move hgview binary to a unique location depending on the Python version,
so multiple hgview versions may be installed at the same time. Bump PKGREVISION. Proposed by wiz@ ages ago.
Diffstat (limited to 'devel')
-rw-r--r--devel/py-hgview/Makefile8
-rw-r--r--devel/py-hgview/PLIST4
2 files changed, 8 insertions, 4 deletions
diff --git a/devel/py-hgview/Makefile b/devel/py-hgview/Makefile
index 64727974af4..f73fd50c76d 100644
--- a/devel/py-hgview/Makefile
+++ b/devel/py-hgview/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.9 2015/04/25 14:20:39 tnn Exp $
+# $NetBSD: Makefile,v 1.10 2015/05/03 18:01:28 bsiegert Exp $
DISTNAME= hgview-1.8.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= devel python
MASTER_SITES= http://download.logilab.org/pub/hgview/
@@ -18,9 +18,13 @@ BUILD_DEPENDS+= xmlto-[0-9]*:../../textproc/xmlto
REPLACE_PYTHON= *.py
PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # not yet ported as of 1.8.0
+PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q}
USE_TOOLS+= gmake
+post-install:
+ mv ${DESTDIR}${PREFIX}/bin/hgview ${DESTDIR}${PREFIX}/bin/hgview${PYVERSSUFFIX}
+
.include "../../lang/python/application.mk"
.include "../../lang/python/distutils.mk"
.include "../../x11/py-qt4/buildlink3.mk"
diff --git a/devel/py-hgview/PLIST b/devel/py-hgview/PLIST
index 7f5b0d89dc0..6f84ca8fa53 100644
--- a/devel/py-hgview/PLIST
+++ b/devel/py-hgview/PLIST
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.2 2014/05/27 18:27:10 wiz Exp $
-bin/hgview
+@comment $NetBSD: PLIST,v 1.3 2015/05/03 18:01:28 bsiegert Exp $
+bin/hgview${PYVERSSUFFIX}
${PYSITELIB}/hgext/hgview.py
${PYSITELIB}/hgext/hgview.pyc
${PYSITELIB}/hgext/hgview.pyo