summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2013-01-04 15:28:32 +0000
committerRene Ladan <rene@FreeBSD.org>2013-01-04 15:28:32 +0000
commit5f54ed8b68c18e29bb040b71335c56b3e64c03e5 (patch)
tree2e6412ef09753af9f725dd18cbf6966c2ce64a4d /audio
parentEnable the CHERRYPY option by default and bump PORTREVISION (diff)
A fork of the original MPD (Music Player Daemon) client library written
in pure Python. WWW: https://github.com/Mic92/python-mpd2/ Use new Makefile header and optionsNG
Notes
Notes: svn path=/head/; revision=309932
Diffstat (limited to 'audio')
-rw-r--r--audio/Makefile1
-rw-r--r--audio/py-mpd2/Makefile47
-rw-r--r--audio/py-mpd2/distinfo2
-rw-r--r--audio/py-mpd2/pkg-descr4
-rw-r--r--audio/py-mpd2/pkg-plist1
5 files changed, 55 insertions, 0 deletions
diff --git a/audio/Makefile b/audio/Makefile
index 8fa61e0a5564..708d60deea5c 100644
--- a/audio/Makefile
+++ b/audio/Makefile
@@ -610,6 +610,7 @@
SUBDIR += py-karaoke
SUBDIR += py-mad
SUBDIR += py-mpd
+ SUBDIR += py-mpd2
SUBDIR += py-musicbrainz2
SUBDIR += py-mutagen
SUBDIR += py-ogg
diff --git a/audio/py-mpd2/Makefile b/audio/py-mpd2/Makefile
new file mode 100644
index 000000000000..d23f39f01e2e
--- /dev/null
+++ b/audio/py-mpd2/Makefile
@@ -0,0 +1,47 @@
+# Created by: rene@FreeBSD.org (repocopied from audio/py-mpd)
+# $FreeBSD$
+
+PORTNAME= mpd2
+PORTVERSION= 0.4.6
+CATEGORIES= audio python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= python-${PORTNAME}-${PORTVERSION}
+
+MAINTAINER= rene@FreeBSD.org
+COMMENT= Fork of the Python MPD client library
+
+USE_GITHUB= yes
+GH_ACCOUNT= Mic92
+GH_PROJECT= python-${PORTNAME}
+GH_TAGNAME= v${PORTVERSION}
+GH_COMMIT= 52d5280
+
+USE_PYTHON= yes
+USE_PYDISTUTILS= easy_install
+PYDISTUTILS_PKGNAME= python_mpd2
+
+OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
+OPTIONS_DEFINE= DOCS EXAMPLES
+
+DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
+PORTDOCS= commands.txt
+EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
+PORTEXAMPLES= locking.py logger.py
+
+.include <bsd.port.options.mk>
+
+post-install:
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+.for f in ${PORTDOCS}
+ @${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
+.endfor
+.endif
+.if ${PORT_OPTIONS:MEXAMPLES}
+ @${MKDIR} ${EXAMPLESDIR}
+.for f in ${PORTEXAMPLES}
+ @${INSTALL_SCRIPT} ${WRKSRC}/examples/${f} ${EXAMPLESDIR}
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/audio/py-mpd2/distinfo b/audio/py-mpd2/distinfo
new file mode 100644
index 000000000000..e0f54eecd3d1
--- /dev/null
+++ b/audio/py-mpd2/distinfo
@@ -0,0 +1,2 @@
+SHA256 (python-mpd2-0.4.6.tar.gz) = 4e0f18a467ebbb2b08e07579c4744f0a7640d15107eb9813fcea2bf12cdadbf0
+SIZE (python-mpd2-0.4.6.tar.gz) = 27340
diff --git a/audio/py-mpd2/pkg-descr b/audio/py-mpd2/pkg-descr
new file mode 100644
index 000000000000..df6ca17133da
--- /dev/null
+++ b/audio/py-mpd2/pkg-descr
@@ -0,0 +1,4 @@
+A fork of the original MPD (Music Player Daemon) client library written
+in pure Python.
+
+WWW: https://github.com/Mic92/python-mpd2/
diff --git a/audio/py-mpd2/pkg-plist b/audio/py-mpd2/pkg-plist
new file mode 100644
index 000000000000..ddf68a1c022f
--- /dev/null
+++ b/audio/py-mpd2/pkg-plist
@@ -0,0 +1 @@
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%