summaryrefslogtreecommitdiffstats
path: root/audio/py-musicbrainz
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2006-01-14 13:04:49 +0000
committerpav <pav@FreeBSD.org>2006-01-14 13:04:49 +0000
commitdb0c0639410466c8d63f6a72a83838007fab3745 (patch)
treeb212dea5100709c27bdd41d8501ec4220136b864 /audio/py-musicbrainz
parent8a585852bda64a21a0b091c64de8606da93c476b (diff)
downloadFreeBSD-ports-db0c0639410466c8d63f6a72a83838007fab3745.zip
FreeBSD-ports-db0c0639410466c8d63f6a72a83838007fab3745.tar.gz
- Unbreak on FreeBSD 7.X
- Simplify
Diffstat (limited to 'audio/py-musicbrainz')
-rw-r--r--audio/py-musicbrainz/Makefile3
-rw-r--r--audio/py-musicbrainz/files/patch-musicbrainz.py33
2 files changed, 17 insertions, 19 deletions
diff --git a/audio/py-musicbrainz/Makefile b/audio/py-musicbrainz/Makefile
index 97cee73..608fb84 100644
--- a/audio/py-musicbrainz/Makefile
+++ b/audio/py-musicbrainz/Makefile
@@ -18,9 +18,8 @@ COMMENT= MusicBrainz bindings for Python
BUILD_DEPENDS= ${PYTHONPREFIX_SITELIBDIR}/ctypes/__init__.py:${PORTSDIR}/devel/py-ctypes
RUN_DEPENDS= ${BUILD_DEPENDS}
-LIB_DEPENDS= musicbrainz.4:${LIBMUSICBRAINZ_PORTDIR}
+LIB_DEPENDS= musicbrainz.4:${PORTSDIR}/audio/libmusicbrainz
-LIBMUSICBRAINZ_PORTDIR= ${PORTSDIR}/audio/libmusicbrainz
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
EXAMPLES= cd2trm.py findartist.py getcdtracklengths.py cdid.py \
findtrack.py gettrm.py cdlookup.py generatetrm.py \
diff --git a/audio/py-musicbrainz/files/patch-musicbrainz.py b/audio/py-musicbrainz/files/patch-musicbrainz.py
index 2e33e23..4f1fc45 100644
--- a/audio/py-musicbrainz/files/patch-musicbrainz.py
+++ b/audio/py-musicbrainz/files/patch-musicbrainz.py
@@ -1,20 +1,19 @@
---- musicbrainz.py.orig Tue Aug 17 03:44:32 2004
-+++ musicbrainz.py Fri Sep 16 19:14:15 2005
-@@ -35,7 +35,16 @@
- if sys.platform == "linux2":
- lib = "libmusicbrainz.so.4"
- else:
+--- musicbrainz.py.orig Tue Aug 17 08:44:54 2004
++++ musicbrainz.py Sat Jan 14 14:04:01 2006
+@@ -28,15 +28,7 @@
+ Error = MusicBrainzError
+
+ def findLibrary():
+-
+- if sys.platform == "darwin":
+- lib = "libmusicbrainz.4.dylib"
+- else:
+- if sys.platform == "linux2":
+- lib = "libmusicbrainz.so.4"
+- else:
- raise MusicBrainzError, "Unknown platform: " + sys.platform
-+ if sys.platform == "freebsd5":
-+ lib = "libmusicbrainz.so.4"
-+ else:
-+ if sys.platform == "freebsd6":
-+ lib = "libmusicbrainz.so.4"
-+ else:
-+ if sys.platform == "freebsd4":
-+ lib = "libmusicbrainz.so.4"
-+ else:
-+ raise MusicBrainzError, "Unknown platform: " + sys.platform
-
+-
++ lib = "libmusicbrainz.so.4"
path = "/usr/lib/" + lib
if os.access(path, os.F_OK):
+ return path;
OpenPOWER on IntegriCloud