pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio/cplay Add audio/cplay (by Geert Hendrickx, in PR...
details: https://anonhg.NetBSD.org/pkgsrc/rev/24cc12c5f262
branches: trunk
changeset: 502713:24cc12c5f262
user: tonio <tonio%pkgsrc.org@localhost>
date: Tue Nov 08 15:56:40 2005 +0000
description:
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:
audio/cplay/DESCR | 14 +++++++++++++
audio/cplay/MESSAGE | 14 +++++++++++++
audio/cplay/Makefile | 45 ++++++++++++++++++++++++++++++++++++++++++++
audio/cplay/PLIST | 9 ++++++++
audio/cplay/distinfo | 6 +++++
audio/cplay/patches/patch-aa | 23 ++++++++++++++++++++++
6 files changed, 111 insertions(+), 0 deletions(-)
diffs (135 lines):
diff -r 40fc1a4e0171 -r 24cc12c5f262 audio/cplay/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/cplay/DESCR Tue Nov 08 15:56:40 2005 +0000
@@ -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 -r 40fc1a4e0171 -r 24cc12c5f262 audio/cplay/MESSAGE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/cplay/MESSAGE Tue Nov 08 15:56:40 2005 +0000
@@ -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 -r 40fc1a4e0171 -r 24cc12c5f262 audio/cplay/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/cplay/Makefile Tue Nov 08 15:56:40 2005 +0000
@@ -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@localhost
+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 -r 40fc1a4e0171 -r 24cc12c5f262 audio/cplay/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/cplay/PLIST Tue Nov 08 15:56:40 2005 +0000
@@ -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 -r 40fc1a4e0171 -r 24cc12c5f262 audio/cplay/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/cplay/distinfo Tue Nov 08 15:56:40 2005 +0000
@@ -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 -r 40fc1a4e0171 -r 24cc12c5f262 audio/cplay/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/cplay/patches/patch-aa Tue Nov 08 15:56:40 2005 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index