From 61f80633a1f32c5ca67f7e5711b46142284c80da Mon Sep 17 00:00:00 2001 From: bsiegert Date: Sun, 3 May 2015 18:01:28 +0000 Subject: 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. --- devel/py-hgview/Makefile | 8 ++++++-- devel/py-hgview/PLIST | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'devel') 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 -- cgit v1.2.3