diff options
author | drochner <drochner@pkgsrc.org> | 2008-05-05 10:19:22 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2008-05-05 10:19:22 +0000 |
commit | aafeb1f8edb846edf5aeb9391ebfbc42ee2b2b42 (patch) | |
tree | 347637d40c19526d2fd7eadb2c776c9df2e4abb0 /audio/py-mpd | |
parent | 0cda6ac361e57c0f9dee2052f3dcf7c83a0d2d29 (diff) | |
download | pkgsrc-aafeb1f8edb846edf5aeb9391ebfbc42ee2b2b42.tar.gz |
import py-mpd-0.2.0, a Python mpd client library
Diffstat (limited to 'audio/py-mpd')
-rw-r--r-- | audio/py-mpd/DESCR | 1 | ||||
-rw-r--r-- | audio/py-mpd/Makefile | 18 | ||||
-rw-r--r-- | audio/py-mpd/PLIST | 4 | ||||
-rw-r--r-- | audio/py-mpd/buildlink3.mk | 21 | ||||
-rw-r--r-- | audio/py-mpd/distinfo | 6 | ||||
-rw-r--r-- | audio/py-mpd/patches/patch-aa | 13 |
6 files changed, 63 insertions, 0 deletions
diff --git a/audio/py-mpd/DESCR b/audio/py-mpd/DESCR new file mode 100644 index 00000000000..a33a4388637 --- /dev/null +++ b/audio/py-mpd/DESCR @@ -0,0 +1 @@ +An MPD (Music Player Daemon) client library written in pure Python. diff --git a/audio/py-mpd/Makefile b/audio/py-mpd/Makefile new file mode 100644 index 00000000000..b75590c27c1 --- /dev/null +++ b/audio/py-mpd/Makefile @@ -0,0 +1,18 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/05/05 10:19:22 drochner Exp $ +# + +DISTNAME= python-mpd-0.2.0 +PKGNAME= ${PYPKGPREFIX}-mpd-0.2.0 +CATEGORIES= audio +MASTER_SITES= http://pypi.python.org/packages/source/p/python-mpd/ +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://www.musicpd.org/~jat/python-mpd/ +COMMENT= Python mpd client library + +USE_LANGUAGES= # none +PYDISTUTILSPKG= yes + +.include "../../lang/python/extension.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/audio/py-mpd/PLIST b/audio/py-mpd/PLIST new file mode 100644 index 00000000000..fffab5a3232 --- /dev/null +++ b/audio/py-mpd/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2008/05/05 10:19:22 drochner Exp $ +${PYSITELIB}/mpd.py +${PYSITELIB}/mpd.pyc +${PYSITELIB}/mpd.pyo diff --git a/audio/py-mpd/buildlink3.mk b/audio/py-mpd/buildlink3.mk new file mode 100644 index 00000000000..c503262c148 --- /dev/null +++ b/audio/py-mpd/buildlink3.mk @@ -0,0 +1,21 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2008/05/05 10:19:22 drochner Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +PY_MPD_BUILDLINK3_MK:= ${PY_MPD_BUILDLINK3_MK}+ + +.include "../../lang/python/pyversion.mk" + +.if ${BUILDLINK_DEPTH} == "+" +BUILDLINK_DEPENDS+= py-mpd +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Npy-mpd} +BUILDLINK_PACKAGES+= py-mpd +BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}py-mpd + +.if ${PY_MPD_BUILDLINK3_MK} == "+" +BUILDLINK_API_DEPENDS.py-mpd+= ${PYPKGPREFIX}-mpd>=0.2.0 +BUILDLINK_PKGSRCDIR.py-mpd?= ../../audio/py-mpd +.endif # PY_MPD_BUILDLINK3_MK + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/audio/py-mpd/distinfo b/audio/py-mpd/distinfo new file mode 100644 index 00000000000..8b44f9f28c1 --- /dev/null +++ b/audio/py-mpd/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/05/05 10:19:22 drochner Exp $ + +SHA1 (python-mpd-0.2.0.tar.bz2) = 8f3d5b389aac996ca69b51b59473232164e4bcde +RMD160 (python-mpd-0.2.0.tar.bz2) = eec009182f35efdde9c99bfffa8c5b958d47f90b +Size (python-mpd-0.2.0.tar.bz2) = 15817 bytes +SHA1 (patch-aa) = a126f785f5b02a13761bf9a3d0b52b7489e3f6c1 diff --git a/audio/py-mpd/patches/patch-aa b/audio/py-mpd/patches/patch-aa new file mode 100644 index 00000000000..f8a10670c12 --- /dev/null +++ b/audio/py-mpd/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2008/05/05 10:19:22 drochner Exp $ + +--- mpd.py.orig 2008-04-03 06:06:55.000000000 +0200 ++++ mpd.py +@@ -293,7 +293,7 @@ class MPDClient(object): + msg = "getaddrinfo returns an empty list" + for res in socket.getaddrinfo(host, port, socket.AF_UNSPEC, + socket.SOCK_STREAM, socket.IPPROTO_TCP, +- socket.AI_ADDRCONFIG): ++ 0): + af, socktype, proto, canonname, sa = res + try: + self._sock = socket.socket(af, socktype, proto) |