aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--audio/Makefile1
-rw-r--r--audio/py-tagpy/Makefile28
-rw-r--r--audio/py-tagpy/distinfo3
-rw-r--r--audio/py-tagpy/files/patch-setup.py18
-rw-r--r--audio/py-tagpy/pkg-descr12
-rw-r--r--audio/py-tagpy/pkg-plist24
6 files changed, 86 insertions, 0 deletions
diff --git a/audio/Makefile b/audio/Makefile
index 13fcfdcf9294..7f41fc603c0f 100644
--- a/audio/Makefile
+++ b/audio/Makefile
@@ -497,6 +497,7 @@
SUBDIR += py-openal
SUBDIR += py-sdl_mixer
SUBDIR += py-taglib
+ SUBDIR += py-tagpy
SUBDIR += py-vorbis
SUBDIR += py-xmms
SUBDIR += py-xmms2
diff --git a/audio/py-tagpy/Makefile b/audio/py-tagpy/Makefile
new file mode 100644
index 000000000000..70a544e77914
--- /dev/null
+++ b/audio/py-tagpy/Makefile
@@ -0,0 +1,28 @@
+# New ports collection makefile for: py-tagpy
+# Date created: 2007-01-22
+# Whom: Nicola Vitale <nivit@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= tagpy
+PORTVERSION= 0.90.1
+CATEGORIES= audio python
+MASTER_SITES= http://news.tiker.net/news.tiker.net/download/software/${PORTNAME}/ \
+ http://nivi.interfree.it/distfiles/${PORTNAME}/
+
+MAINTAINER= nivit@FreeBSD.org
+COMMENT= Python bindings for Scott Wheeler's TagLib
+
+LIB_DEPENDS= boost_python.3:${PORTSDIR}/devel/boost-python \
+ tag.5:${PORTSDIR}/audio/taglib
+
+USE_PYTHON= yes
+USE_PYDISTUTILS= yes
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
+ -e 's|%%PYTHON_INCLUDEDIR%%|${PYTHON_INCLUDEDIR}|g' \
+ -e 's|%%PYTHON_LIBDIR%%|${PYTHON_LIBDIR}|g' ${WRKSRC}/setup.py
+
+.include <bsd.port.mk>
diff --git a/audio/py-tagpy/distinfo b/audio/py-tagpy/distinfo
new file mode 100644
index 000000000000..0d6eea7edf23
--- /dev/null
+++ b/audio/py-tagpy/distinfo
@@ -0,0 +1,3 @@
+MD5 (tagpy-0.90.1.tar.gz) = 03608fa15d35fefef2a0e124fa83f9d5
+SHA256 (tagpy-0.90.1.tar.gz) = a1cc912a844760e9982008fb02a77a22d07e43a34d88110c2132c3301d948b0b
+SIZE (tagpy-0.90.1.tar.gz) = 132417
diff --git a/audio/py-tagpy/files/patch-setup.py b/audio/py-tagpy/files/patch-setup.py
new file mode 100644
index 000000000000..4db8e00f8a1d
--- /dev/null
+++ b/audio/py-tagpy/files/patch-setup.py
@@ -0,0 +1,18 @@
+--- setup.py Sun Jan 8 19:36:27 2006
++++ setup.py.port Mon Jan 22 15:51:41 2007
+@@ -4,12 +4,12 @@
+ from distutils.core import setup,Extension
+
+ # BEGIN USER CUSTOMIZABLE SECTION --------------------
+-TAGLIB_INCLUDE_DIRS = ["/usr/include/taglib"]
++TAGLIB_INCLUDE_DIRS = ["%%LOCALBASE%%/include/taglib"]
+ TAGLIB_LIBRARY_DIRS = []
+ TAGLIB_LIBRARIES = ["tag"]
+
+-BOOST_INCLUDE_DIRS = []
+-BOOST_LIBRARY_DIRS = []
++BOOST_INCLUDE_DIRS = ["%%PYTHON_INCLUDEDIR%%", "%%LOCALBASE%%/include"]
++BOOST_LIBRARY_DIRS = ["%%PYTHON_LIBDIR%%", "%%LOCALBASE%%/lib"]
+ BOOST_LIBRARIES = ["boost_python"]
+ # END USER CUSTOMIZABLE SECTION ----------------------
+
diff --git a/audio/py-tagpy/pkg-descr b/audio/py-tagpy/pkg-descr
new file mode 100644
index 000000000000..392bafc00829
--- /dev/null
+++ b/audio/py-tagpy/pkg-descr
@@ -0,0 +1,12 @@
+TagPy is a Python crust (or a set of Python bindings) for
+Scott Wheeler's TagLib.
+
+TagPy can:
+
+ * read and write ID3 tags of version 1 and 2, with many supported
+ frame types for version 2 (in MPEG Layer 2 and MPEG Layer 3,
+ FLAC and MPC)
+ * access Xiph Comments in Ogg Vorbis Files and Ogg Flac Files
+ * access APE tags in Musepack and MP3 files.
+
+WWW: http://news.tiker.net/software/tagpy
diff --git a/audio/py-tagpy/pkg-plist b/audio/py-tagpy/pkg-plist
new file mode 100644
index 000000000000..ddc60645f934
--- /dev/null
+++ b/audio/py-tagpy/pkg-plist
@@ -0,0 +1,24 @@
+@comment $FreeBSD$
+%%PYTHON_SITELIBDIR%%/_tagpy.so
+%%PYTHON_SITELIBDIR%%/tagpy/__init__.py
+%%PYTHON_SITELIBDIR%%/tagpy/__init__.pyc
+%%PYTHON_SITELIBDIR%%/tagpy/__init__.pyo
+%%PYTHON_SITELIBDIR%%/tagpy/ape.py
+%%PYTHON_SITELIBDIR%%/tagpy/ape.pyc
+%%PYTHON_SITELIBDIR%%/tagpy/ape.pyo
+%%PYTHON_SITELIBDIR%%/tagpy/flac.py
+%%PYTHON_SITELIBDIR%%/tagpy/flac.pyc
+%%PYTHON_SITELIBDIR%%/tagpy/flac.pyo
+%%PYTHON_SITELIBDIR%%/tagpy/id3v1.py
+%%PYTHON_SITELIBDIR%%/tagpy/id3v1.pyc
+%%PYTHON_SITELIBDIR%%/tagpy/id3v1.pyo
+%%PYTHON_SITELIBDIR%%/tagpy/id3v2.py
+%%PYTHON_SITELIBDIR%%/tagpy/id3v2.pyc
+%%PYTHON_SITELIBDIR%%/tagpy/id3v2.pyo
+%%PYTHON_SITELIBDIR%%/tagpy/mpc.py
+%%PYTHON_SITELIBDIR%%/tagpy/mpc.pyc
+%%PYTHON_SITELIBDIR%%/tagpy/mpc.pyo
+%%PYTHON_SITELIBDIR%%/tagpy/mpeg.py
+%%PYTHON_SITELIBDIR%%/tagpy/mpeg.pyc
+%%PYTHON_SITELIBDIR%%/tagpy/mpeg.pyo
+@dirrm %%PYTHON_SITELIBDIR%%/tagpy