aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorrene <rene@FreeBSD.org>2013-01-04 23:28:32 +0800
committerrene <rene@FreeBSD.org>2013-01-04 23:28:32 +0800
commit5656a821189d2304775e46a2d316d53b95a55635 (patch)
tree2e6412ef09753af9f725dd18cbf6966c2ce64a4d /audio
parentb330ef3fb86438ecf8746d22721f642ba424f603 (diff)
downloadfreebsd-ports-graphics-5656a821189d2304775e46a2d316d53b95a55635.tar.gz
freebsd-ports-graphics-5656a821189d2304775e46a2d316d53b95a55635.tar.zst
freebsd-ports-graphics-5656a821189d2304775e46a2d316d53b95a55635.zip
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
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 8fa61e0a556..708d60deea5 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 00000000000..d23f39f01e2
--- /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 00000000000..e0f54eecd3d
--- /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 00000000000..df6ca17133d
--- /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 00000000000..ddf68a1c022
--- /dev/null
+++ b/audio/py-mpd2/pkg-plist
@@ -0,0 +1 @@
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%