summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authoraugustss <augustss@pkgsrc.org>2005-05-21 23:20:23 +0000
committeraugustss <augustss@pkgsrc.org>2005-05-21 23:20:23 +0000
commit42d2764bb739bb767997149411834c27dee72839 (patch)
tree1dcb11c0a86eb31ac4b290aae8e658c7f5d7f073 /audio
parent57927142699d015a82aba2bd24438bf84176df47 (diff)
downloadpkgsrc-42d2764bb739bb767997149411834c27dee72839.tar.gz
Add py-musique, a program for buying iTunes songs.
Diffstat (limited to 'audio')
-rw-r--r--audio/Makefile3
-rw-r--r--audio/py-musique/DESCR7
-rw-r--r--audio/py-musique/Makefile25
-rw-r--r--audio/py-musique/PLIST18
-rw-r--r--audio/py-musique/distinfo6
-rw-r--r--audio/py-musique/patches/patch-aa18
6 files changed, 76 insertions, 1 deletions
diff --git a/audio/Makefile b/audio/Makefile
index 527a5a0f57c..973b11cdb0c 100644
--- a/audio/Makefile
+++ b/audio/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.282 2005/05/21 03:17:00 grant Exp $
+# $NetBSD: Makefile,v 1.283 2005/05/21 23:20:23 augustss Exp $
#
COMMENT= Audio tools
@@ -200,6 +200,7 @@ SUBDIR+= portaudio
SUBDIR+= py-ao
SUBDIR+= py-cddb
SUBDIR+= py-mad
+SUBDIR+= py-musique
SUBDIR+= py-ogg
SUBDIR+= py-vorbis
SUBDIR+= py-xmms
diff --git a/audio/py-musique/DESCR b/audio/py-musique/DESCR
new file mode 100644
index 00000000000..65455d76153
--- /dev/null
+++ b/audio/py-musique/DESCR
@@ -0,0 +1,7 @@
+The fair interface to the iTunes Music Store.
+
+Features:
+ * Preview songs
+ * Signup for an account
+ * Buy songs
+ * Redownload songs that were bought with PyMusique
diff --git a/audio/py-musique/Makefile b/audio/py-musique/Makefile
new file mode 100644
index 00000000000..6967727ab82
--- /dev/null
+++ b/audio/py-musique/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1 2005/05/21 23:20:24 augustss Exp $
+#
+
+DISTNAME= pymusique-0.5
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//}
+PKGREVISION= 1
+CATEGORIES= audio
+MASTER_SITES= http://fuware.nanocrew.net/pymusique/
+
+MAINTAINER= augustss@NetBSD.org
+HOMEPAGE= http://fuware.nanocrew.net/pymusique/
+COMMENT= Interface to the iTunes Music Store
+
+DEPENDS+= ${PYPKGPREFIX}-twisted-[0-9]*:../../net/py-twisted
+DEPENDS+= ${PYPKGPREFIX}-OpenSSL-[0-9]*:../../security/py-OpenSSL
+DEPENDS+= ${PYPKGPREFIX}-mcrypt-[0-9]*:../../security/py-mcrypt
+DEPENDS+= ${PYPKGPREFIX}-libxml2-[0-9]*:../../textproc/py-libxml2
+DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
+
+PYDISTUTILSPKG= yes
+
+.include "../../lang/python/application.mk"
+.include "../../lang/python/extension.mk"
+.include "../../x11/py-gtk2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/py-musique/PLIST b/audio/py-musique/PLIST
new file mode 100644
index 00000000000..3371221513d
--- /dev/null
+++ b/audio/py-musique/PLIST
@@ -0,0 +1,18 @@
+@comment $NetBSD: PLIST,v 1.1 2005/05/21 23:20:24 augustss Exp $
+bin/pymusique
+lib/pymusique/config.py
+lib/pymusique/debug.py
+lib/pymusique/dedrms.py
+lib/pymusique/player.py
+lib/pymusique/qtstream.py
+lib/pymusique/scramble.py
+lib/pymusique/store.py
+lib/pymusique/storebase.py
+share/applications/pymusique.desktop
+share/doc/pymusique/AUTHORS
+share/doc/pymusique/COPYING
+share/doc/pymusique/ChangeLog
+share/doc/pymusique/README
+share/pixmaps/pymusique.png
+@dirrm lib/pymusique
+@dirrm share/doc/pymusique
diff --git a/audio/py-musique/distinfo b/audio/py-musique/distinfo
new file mode 100644
index 00000000000..af36d094b1f
--- /dev/null
+++ b/audio/py-musique/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2005/05/21 23:20:24 augustss Exp $
+
+SHA1 (pymusique-0.5.tar.gz) = 7e6ca4fb4845bf74d44dbc8fa38a20646ae1fdac
+RMD160 (pymusique-0.5.tar.gz) = a152f4bbd196805a6b8022e9f2e822bbe727906f
+Size (pymusique-0.5.tar.gz) = 40386 bytes
+SHA1 (patch-aa) = b5cffe2a490fdc0b673e6ec5af37e46af8bb2043
diff --git a/audio/py-musique/patches/patch-aa b/audio/py-musique/patches/patch-aa
new file mode 100644
index 00000000000..e9517443bf0
--- /dev/null
+++ b/audio/py-musique/patches/patch-aa
@@ -0,0 +1,18 @@
+$NetBSD: patch-aa,v 1.1 2005/05/21 23:20:24 augustss Exp $
+--- bin/pymusique.orig 2005-04-10 22:57:54.000000000 +0200
++++ bin/pymusique 2005-05-20 20:17:36.000000000 +0200
+@@ -460,7 +460,13 @@
+ if not os.path.isdir(self.config['songdir']):
+ os.mkdir(self.config['songdir'])
+ metadata = self.download['metaData']
+- filename = metadata['playlistArtistName'] + ' - ' + metadata['playlistName'] + ' - ' + metadata['songName']
++ trackNo = ''
++ if 'trackNumber' in metadata:
++ trackNo = metadata['trackNumber']
++ if len(trackNo) < 2:
++ trackNo = '0' + trackNo
++ trackNo = trackNo + ' - '
++ filename = metadata['playlistArtistName'] + ' - ' + metadata['playlistName'] + ' - ' + trackNo + metadata['songName']
+ filename = os.path.join(self.config['songdir'], filename.replace('/', '-') + '.m4a')
+ file(filename, 'wb').write(data)
+ try: