From 0f651030b1fd7b557e135c97942274d9ba8b941f Mon Sep 17 00:00:00 2001 From: sthen Date: Thu, 29 Jan 2009 17:44:27 +0000 Subject: [PATCH] import py-mutagen, from giovanni@ with tweaks by me and suggestions from wcmaier. ok giovanni@ wcmaier@ Mutagen is a Python module to handle audio metadata. It supports ASF, FLAC, M4A, Monkey's Audio, MP3, Musepack, Ogg FLAC, Ogg Speex, Ogg Theora, Ogg Vorbis, True Audio, WavPack and OptimFROG audio files. All versions of ID3v2 are supported, and all standard ID3v2.4 frames are parsed. It can read Xing headers to accurately calculate the bitrate and length of MP3s. ID3 and APEv2 tags can be edited regardless of audio format. It can also manipulate Ogg streams on an individual packet/page level. --- audio/py-mutagen/Makefile | 27 ++++++++++++ audio/py-mutagen/distinfo | 5 +++ audio/py-mutagen/patches/patch-setup_py | 12 ++++++ audio/py-mutagen/pkg/DESCR | 8 ++++ audio/py-mutagen/pkg/PLIST | 57 +++++++++++++++++++++++++ 5 files changed, 109 insertions(+) create mode 100644 audio/py-mutagen/Makefile create mode 100644 audio/py-mutagen/distinfo create mode 100644 audio/py-mutagen/patches/patch-setup_py create mode 100644 audio/py-mutagen/pkg/DESCR create mode 100644 audio/py-mutagen/pkg/PLIST diff --git a/audio/py-mutagen/Makefile b/audio/py-mutagen/Makefile new file mode 100644 index 00000000000..721091f0c00 --- /dev/null +++ b/audio/py-mutagen/Makefile @@ -0,0 +1,27 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2009/01/29 17:44:27 sthen Exp $ + +COMMENT = Python module to handle audio metadata + +MODPY_EGG_VERSION = 1.15 +DISTNAME = mutagen-${MODPY_EGG_VERSION} +PKGNAME = py-${DISTNAME} +CATEGORIES = audio + +HOMEPAGE = http://code.google.com/p/quodlibet/wiki/Development/Mutagen + +MASTER_SITES = http://quodlibet.googlecode.com/files/ + +# GPLv2 +PERMIT_PACKAGE_CDROM = Yes +PERMIT_PACKAGE_FTP = Yes +PERMIT_DISTFILES_CDROM =Yes +PERMIT_DISTFILES_FTP = Yes + +MODULES = lang/python + +REGRESS_TARGET = test + +do-regress: + ${_MODPY_CMD} ${REGRESS_TARGET} + +.include diff --git a/audio/py-mutagen/distinfo b/audio/py-mutagen/distinfo new file mode 100644 index 00000000000..89e329903e8 --- /dev/null +++ b/audio/py-mutagen/distinfo @@ -0,0 +1,5 @@ +MD5 (mutagen-1.15.tar.gz) = c346e1290711a38c123727c31f3602f8 +RMD160 (mutagen-1.15.tar.gz) = 2763d311941e8408d800d929a731a89f443c66b6 +SHA1 (mutagen-1.15.tar.gz) = 831e618f6f0778a5cc285332d3d1e363dd31d652 +SHA256 (mutagen-1.15.tar.gz) = 636d816aa4c7e754496b9daec8a00d7e5f62b67d640440c91dea6d694c83c944 +SIZE (mutagen-1.15.tar.gz) = 590439 diff --git a/audio/py-mutagen/patches/patch-setup_py b/audio/py-mutagen/patches/patch-setup_py new file mode 100644 index 00000000000..8c3aab4aedd --- /dev/null +++ b/audio/py-mutagen/patches/patch-setup_py @@ -0,0 +1,12 @@ +$OpenBSD: patch-setup_py,v 1.1.1.1 2009/01/29 17:44:27 sthen Exp $ +--- setup.py.orig Mon Jan 19 19:19:52 2009 ++++ setup.py Mon Jan 19 19:20:13 2009 +@@ -191,7 +191,7 @@ class coverage_cmd(Command): + 100.0 * (total_lines - bad_lines) / float(total_lines)) + + if os.name == "posix": +- data_files = [('share/man/man1', glob.glob("man/*.1"))] ++ data_files = [('man/man1', glob.glob("man/*.1"))] + else: + data_files = [] + diff --git a/audio/py-mutagen/pkg/DESCR b/audio/py-mutagen/pkg/DESCR new file mode 100644 index 00000000000..236cf7a1449 --- /dev/null +++ b/audio/py-mutagen/pkg/DESCR @@ -0,0 +1,8 @@ +Mutagen is a Python module to handle audio metadata. +It supports ASF, FLAC, M4A, Monkey's Audio, MP3, Musepack, Ogg FLAC, +Ogg Speex, Ogg Theora, Ogg Vorbis, True Audio, WavPack and OptimFROG +audio files. All versions of ID3v2 are supported, and all standard +ID3v2.4 frames are parsed. It can read Xing headers to accurately +calculate the bitrate and length of MP3s. ID3 and APEv2 tags can be +edited regardless of audio format. It can also manipulate Ogg streams +on an individual packet/page level. diff --git a/audio/py-mutagen/pkg/PLIST b/audio/py-mutagen/pkg/PLIST new file mode 100644 index 00000000000..67b46d651cd --- /dev/null +++ b/audio/py-mutagen/pkg/PLIST @@ -0,0 +1,57 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2009/01/29 17:44:27 sthen Exp $ +bin/mid3iconv +bin/mid3v2 +bin/moggsplit +bin/mutagen-inspect +bin/mutagen-pony +lib/python${MODPY_VERSION}/site-packages/mutagen/ +lib/python${MODPY_VERSION}/site-packages/mutagen-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info +lib/python${MODPY_VERSION}/site-packages/mutagen/__init__.py +lib/python${MODPY_VERSION}/site-packages/mutagen/__init__.pyc +lib/python${MODPY_VERSION}/site-packages/mutagen/_constants.py +lib/python${MODPY_VERSION}/site-packages/mutagen/_constants.pyc +lib/python${MODPY_VERSION}/site-packages/mutagen/_util.py +lib/python${MODPY_VERSION}/site-packages/mutagen/_util.pyc +lib/python${MODPY_VERSION}/site-packages/mutagen/_vorbis.py +lib/python${MODPY_VERSION}/site-packages/mutagen/_vorbis.pyc +lib/python${MODPY_VERSION}/site-packages/mutagen/apev2.py +lib/python${MODPY_VERSION}/site-packages/mutagen/apev2.pyc +lib/python${MODPY_VERSION}/site-packages/mutagen/asf.py +lib/python${MODPY_VERSION}/site-packages/mutagen/asf.pyc +lib/python${MODPY_VERSION}/site-packages/mutagen/easyid3.py +lib/python${MODPY_VERSION}/site-packages/mutagen/easyid3.pyc +lib/python${MODPY_VERSION}/site-packages/mutagen/flac.py +lib/python${MODPY_VERSION}/site-packages/mutagen/flac.pyc +lib/python${MODPY_VERSION}/site-packages/mutagen/id3.py +lib/python${MODPY_VERSION}/site-packages/mutagen/id3.pyc +lib/python${MODPY_VERSION}/site-packages/mutagen/m4a.py +lib/python${MODPY_VERSION}/site-packages/mutagen/m4a.pyc +lib/python${MODPY_VERSION}/site-packages/mutagen/monkeysaudio.py +lib/python${MODPY_VERSION}/site-packages/mutagen/monkeysaudio.pyc +lib/python${MODPY_VERSION}/site-packages/mutagen/mp3.py +lib/python${MODPY_VERSION}/site-packages/mutagen/mp3.pyc +lib/python${MODPY_VERSION}/site-packages/mutagen/mp4.py +lib/python${MODPY_VERSION}/site-packages/mutagen/mp4.pyc +lib/python${MODPY_VERSION}/site-packages/mutagen/musepack.py +lib/python${MODPY_VERSION}/site-packages/mutagen/musepack.pyc +lib/python${MODPY_VERSION}/site-packages/mutagen/ogg.py +lib/python${MODPY_VERSION}/site-packages/mutagen/ogg.pyc +lib/python${MODPY_VERSION}/site-packages/mutagen/oggflac.py +lib/python${MODPY_VERSION}/site-packages/mutagen/oggflac.pyc +lib/python${MODPY_VERSION}/site-packages/mutagen/oggspeex.py +lib/python${MODPY_VERSION}/site-packages/mutagen/oggspeex.pyc +lib/python${MODPY_VERSION}/site-packages/mutagen/oggtheora.py +lib/python${MODPY_VERSION}/site-packages/mutagen/oggtheora.pyc +lib/python${MODPY_VERSION}/site-packages/mutagen/oggvorbis.py +lib/python${MODPY_VERSION}/site-packages/mutagen/oggvorbis.pyc +lib/python${MODPY_VERSION}/site-packages/mutagen/optimfrog.py +lib/python${MODPY_VERSION}/site-packages/mutagen/optimfrog.pyc +lib/python${MODPY_VERSION}/site-packages/mutagen/trueaudio.py +lib/python${MODPY_VERSION}/site-packages/mutagen/trueaudio.pyc +lib/python${MODPY_VERSION}/site-packages/mutagen/wavpack.py +lib/python${MODPY_VERSION}/site-packages/mutagen/wavpack.pyc +@man man/man1/mid3iconv.1 +@man man/man1/mid3v2.1 +@man man/man1/moggsplit.1 +@man man/man1/mutagen-inspect.1 +@man man/man1/mutagen-pony.1