summaryrefslogtreecommitdiff
path: root/audio/cplay
diff options
context:
space:
mode:
authortonio <tonio@pkgsrc.org>2005-11-08 15:56:40 +0000
committertonio <tonio@pkgsrc.org>2005-11-08 15:56:40 +0000
commitaae7398c4ae097cf7511730a3096baab96986b20 (patch)
tree723bc9d4b2780243c125969af4ed4d0ec3ce4218 /audio/cplay
parentff7ae0fb7964ee57e526b59920849ad52d9fb9a6 (diff)
downloadpkgsrc-aae7398c4ae097cf7511730a3096baab96986b20.tar.gz
Add audio/cplay (by Geert Hendrickx, in PR 31928)
cplay is a curses front-end for various audio players. It aims to provide a power-user-friendly interface with simple filelist and playlist control. cplay is written in Python and can use either pyncurses or the standard curses module. Supported players: * ogg123 * splay * mpg123 * mpg321 * madplay * mikmod * xmp * sox
Diffstat (limited to 'audio/cplay')
-rw-r--r--audio/cplay/DESCR14
-rw-r--r--audio/cplay/MESSAGE14
-rw-r--r--audio/cplay/Makefile45
-rw-r--r--audio/cplay/PLIST9
-rw-r--r--audio/cplay/distinfo6
-rw-r--r--audio/cplay/patches/patch-aa23
6 files changed, 111 insertions, 0 deletions
diff --git a/audio/cplay/DESCR b/audio/cplay/DESCR
new file mode 100644
index 00000000000..dec7aa81788
--- /dev/null
+++ b/audio/cplay/DESCR
@@ -0,0 +1,14 @@
+cplay is a curses front-end for various audio players. It aims to
+provide a power-user-friendly interface with simple filelist and
+playlist control. cplay is written in Python and can use either
+pyncurses or the standard curses module.
+
+Supported players:
+* ogg123
+* splay
+* mpg123
+* mpg321
+* madplay
+* mikmod
+* xmp
+* sox
diff --git a/audio/cplay/MESSAGE b/audio/cplay/MESSAGE
new file mode 100644
index 00000000000..15617ff8c4f
--- /dev/null
+++ b/audio/cplay/MESSAGE
@@ -0,0 +1,14 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2005/11/08 15:56:40 tonio Exp $
+
+In order to make this package actually useful, you should install at least
+one of the following audio players:
+
+audio/splay
+audio/mpg123
+audio/mpg321
+audio/madplay
+audio/mikmod
+audio/xmp
+audio/sox
+===========================================================================
diff --git a/audio/cplay/Makefile b/audio/cplay/Makefile
new file mode 100644
index 00000000000..60cacec6531
--- /dev/null
+++ b/audio/cplay/Makefile
@@ -0,0 +1,45 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/11/08 15:56:40 tonio Exp $
+
+DISTNAME= cplay-1.49
+CATEGORIES= audio
+MASTER_SITES= ${HOMEPAGE}
+
+MAINTAINER= geert.hendrickx@ua.ac.be
+HOMEPAGE= http://www.tf.hut.fi/~flu/cplay/
+COMMENT= Curses front-end for various audio players
+
+PYTHON_PATCH_SCRIPTS= cplay
+
+USE_PKGINSTALL= yes
+BUILD_USE_MSGFMT= yes
+USE_PKGLOCALEDIR= yes
+
+PKGLOCALES= da de hu pl
+EGDIR= ${PREFIX}/share/examples/cplay
+CONF_FILES= ${EGDIR}/cplayrc ${PKG_SYSCONFDIR}/cplayrc
+
+SUBST_CLASSES+= paths
+SUBST_STAGE.paths= pre-build
+SUBST_FILES.paths= cplay cplay.1
+SUBST_SED.paths= -e 's,/etc/cplayrc,${PKG_SYSCONFDIR}/cplayrc,g'
+SUBST_SED.paths+= -e 's,/usr/local/share/locale,${PREFIX}/${PKGLOCALEDIR}/locale,g'
+
+do-build:
+ cd ${WRKSRC} && ${MAKE_PROGRAM} cplayrc
+.for M in ${PKGLOCALES}
+ msgfmt -o ${WRKSRC}/po/${M}.mo ${WRKSRC}/po/${M}.po
+.endfor
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/cplay ${PREFIX}/bin/
+ ${INSTALL_MAN} ${WRKSRC}/cplay.1 ${PREFIX}/man/man1/
+ ${INSTALL_DATA_DIR} ${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/cplayrc ${EGDIR}
+.for L in ${PKGLOCALES}
+ ${INSTALL_DATA_DIR} ${PREFIX}/${PKGLOCALEDIR}/locale/${L}/LC_MESSAGES
+ ${INSTALL_DATA} ${WRKSRC}/po/${L}.mo ${PREFIX}/${PKGLOCALEDIR}/locale/${L}/LC_MESSAGES/cplay.mo
+.endfor
+
+.include "../../lang/python/application.mk"
+.include "../../devel/py-curses/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/cplay/PLIST b/audio/cplay/PLIST
new file mode 100644
index 00000000000..107956c182c
--- /dev/null
+++ b/audio/cplay/PLIST
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/11/08 15:56:40 tonio Exp $
+bin/cplay
+man/man1/cplay.1
+share/examples/cplay/cplayrc
+${PKGLOCALEDIR}/locale/da/LC_MESSAGES/cplay.mo
+${PKGLOCALEDIR}/locale/de/LC_MESSAGES/cplay.mo
+${PKGLOCALEDIR}/locale/hu/LC_MESSAGES/cplay.mo
+${PKGLOCALEDIR}/locale/pl/LC_MESSAGES/cplay.mo
+@dirrm share/examples/cplay
diff --git a/audio/cplay/distinfo b/audio/cplay/distinfo
new file mode 100644
index 00000000000..70f59222d8c
--- /dev/null
+++ b/audio/cplay/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/11/08 15:56:40 tonio Exp $
+
+SHA1 (cplay-1.49.tar.gz) = 5dc77ad0046419f6657249fa95829b3714beb1d6
+RMD160 (cplay-1.49.tar.gz) = e370ca609f8a17f428cf67ef85d55ee55cd5738b
+Size (cplay-1.49.tar.gz) = 36400 bytes
+SHA1 (patch-aa) = 80e00196730c5ef811dbd4dbde88947f868c7a70
diff --git a/audio/cplay/patches/patch-aa b/audio/cplay/patches/patch-aa
new file mode 100644
index 00000000000..883ea4f2468
--- /dev/null
+++ b/audio/cplay/patches/patch-aa
@@ -0,0 +1,23 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/11/08 15:56:40 tonio Exp $
+
+--- cplay.orig 2003-12-05 09:20:56.000000000 +0100
++++ cplay
+@@ -46,6 +46,7 @@ except: pass
+ # ------------------------------------------
+ _locale_domain = "cplay"
+ _locale_dir = "/usr/local/share/locale"
++pipes = os.pipe(), os.pipe(), os.pipe()
+
+ try:
+ import gettext # python 2.0
+@@ -1169,9 +1170,7 @@ class Player:
+ self.commandline = commandline
+ self.re_files = re.compile(files, re.I)
+ self.fps = fps
+- self.stdin_r, self.stdin_w = os.pipe()
+- self.stdout_r, self.stdout_w = os.pipe()
+- self.stderr_r, self.stderr_w = os.pipe()
++ (self.stdin_r, self.stdin_w), (self.stdout_r, self.stdout_w), (self.stderr_r, self.stderr_w) = pipes
+ self.entry = None
+ self.stopped = 0
+ self.paused = 0