summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2012-01-28 09:07:51 +0000
committerobache <obache@pkgsrc.org>2012-01-28 09:07:51 +0000
commitbe4e119b73e5d79502c89af5d812b6e7b4b9c6c5 (patch)
tree939b457595fe5ffe0437b11bebc60762311cd2b6 /audio
parentd5375e368898f11a33c2e0571e3b1773aaea9a3d (diff)
downloadpkgsrc-be4e119b73e5d79502c89af5d812b6e7b4b9c6c5.tar.gz
Python 2.5 and higher include ctypes module, so let to only depend on py-ctypes
for Python 2.4. Bump PKGREVISION.
Diffstat (limited to 'audio')
-rw-r--r--audio/py-musicbrainz/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/audio/py-musicbrainz/Makefile b/audio/py-musicbrainz/Makefile
index 4a6198619dd..1654087720e 100644
--- a/audio/py-musicbrainz/Makefile
+++ b/audio/py-musicbrainz/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.6 2011/10/15 10:22:14 obache Exp $
+# $NetBSD: Makefile,v 1.7 2012/01/28 09:07:51 obache Exp $
DISTNAME= python-musicbrainz2-0.4.1
PKGNAME= ${DISTNAME:S/python/${PYPKGPREFIX}/}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= audio python
MASTER_SITES= http://users.musicbrainz.org/~matt/
@@ -13,7 +13,11 @@ LICENSE= modified-bsd
PKG_DESTDIR_SUPPORT= user-destdir
+.include "../../lang/python/pyversion.mk"
+
+.if ${PYPKGPREFIX} == "py24"
DEPENDS+= ${PYPKGPREFIX}-ctypes>=1.0.0:../../devel/py-ctypes
+.endif
DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
EGG_NAME= ${DISTNAME:S/-/_/}