diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2009-05-12 16:00:46 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2009-05-12 16:00:46 +0000 |
commit | 078703aed2fe679607ba482cfc617c5630e1703f (patch) | |
tree | 86cfc94899976aa6603a153fa0120b2706900e01 /media-sound/timidity++ | |
parent | keyworded ~arch for x86, bug 264694 (diff) | |
download | historical-078703aed2fe679607ba482cfc617c5630e1703f.tar.gz historical-078703aed2fe679607ba482cfc617c5630e1703f.tar.bz2 historical-078703aed2fe679607ba482cfc617c5630e1703f.zip |
Add polling patch by Stas Sergeev wrt #200466, thanks to Miguel Marte for reporting.
Package-Manager: portage-2.1.6.13/cvs/Linux x86_64
Diffstat (limited to 'media-sound/timidity++')
-rw-r--r-- | media-sound/timidity++/ChangeLog | 9 | ||||
-rw-r--r-- | media-sound/timidity++/Manifest | 4 | ||||
-rw-r--r-- | media-sound/timidity++/files/timidity++-2.13.2-polling.patch | 34 | ||||
-rw-r--r-- | media-sound/timidity++/timidity++-2.13.2-r9.ebuild | 174 |
4 files changed, 219 insertions, 2 deletions
diff --git a/media-sound/timidity++/ChangeLog b/media-sound/timidity++/ChangeLog index 5bd3d714b0cd..cab054d13565 100644 --- a/media-sound/timidity++/ChangeLog +++ b/media-sound/timidity++/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-sound/timidity++ # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/timidity++/ChangeLog,v 1.110 2009/05/12 15:16:48 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/timidity++/ChangeLog,v 1.111 2009/05/12 16:00:46 ssuominen Exp $ + +*timidity++-2.13.2-r9 (12 May 2009) + + 12 May 2009; Samuli Suominen <ssuominen@gentoo.org> + +timidity++-2.13.2-r9.ebuild, +files/timidity++-2.13.2-polling.patch: + Add polling patch by Stas Sergeev wrt #200466, thanks to Miguel Marte + for reporting *timidity++-2.13.2-r8 (12 May 2009) diff --git a/media-sound/timidity++/Manifest b/media-sound/timidity++/Manifest index 0eb5ce949c15..50ecd2e057d1 100644 --- a/media-sound/timidity++/Manifest +++ b/media-sound/timidity++/Manifest @@ -7,6 +7,7 @@ AUX timidity++-2.13.2-flac.patch 735 RMD160 65abbbc330b0ae486af3686cea8329a4f9a1 AUX timidity++-2.13.2-flac113.patch 11509 RMD160 709a31cc664a9686f1ac22974459e0c932511418 SHA1 173cc8f2ec5ecfc834d5a0027aa3cdecd3f9f14d SHA256 2ed4abfb75d225f6bd295ba4ffbc63f47c6caab57cb09e670df508c5d7447424 AUX timidity++-2.13.2-gcc4.patch 1325 RMD160 31383eb4a1d0a839d60af8d635aeba02febc9bb5 SHA1 8d50618a2379c078b07e8d0fc59457855c16106c SHA256 20ca5deb95ccbb527c0212f4ad002a5a8df1a9c005e210494abe7bc240cef3ee AUX timidity++-2.13.2-gtk26.patch 588 RMD160 588eefcb0727af0162b24b17970df300ea5fdd64 SHA1 ce115e84d99708f0bdb5b57bd98b0c3514fa2bf4 SHA256 fdb95708e353425fbc8f141d45f5b876fa85636f953200cdbc147834b4a31f56 +AUX timidity++-2.13.2-polling.patch 960 RMD160 404beaffd1d1618ad6579ef952567f514e82da5d SHA1 6c4f62c045380a6d27c44002c72352943af0fa2b SHA256 933afdd0a6f4dfc98b25818c8c07ea7e2ba8a10a422f23953143d0ae09e39845 AUX timidity++-2.13.2-protos.patch 231 RMD160 4ae219704a9da1dfc792bde1a9ebc991eac168a1 SHA1 26ce16fa02127896fe3d919a758a067c63b6b8bd SHA256 14ae61bc72897cbbe817227f5dbda68c388c80531bd1659b0a595884747de78e AUX timidity.cfg-r1 669 RMD160 856294ef64ab459a03375cb86e5f0fbcdef88ab3 SHA1 a1aec57e46d953082d1e59cf80eb1cb15627bb4c SHA256 50fb27ea57cc225fcb8e8368e8afc130f2bba22d0787ebb6beacd2112550f9ce DIST TiMidity++-2.13.2.tar.bz2 1581230 RMD160 0156221846a88abef9312700a050972d85084fd8 SHA1 8e603146e1164335303a5ac5dff291f369241b4e SHA256 0a8524b789b57eaf944c3d9bce32c21a4e893016b22a02a24cd0a4c6afee7260 @@ -14,5 +15,6 @@ DIST timidity++-2.13.2-exiterror.patch 21406 RMD160 6b73552e18580422ca4471f12142 EBUILD timidity++-2.13.2-r5.ebuild 4795 RMD160 b3d8964051bbc173b1fa6eebb98b353dac8fa2db SHA1 4d33c5a6991bfb0c9c2b36b0f02d715e3242d587 SHA256 d22621ec331dfbc7a35efd44f5b1121fd8c66e74fadd4501c569643444a46f09 EBUILD timidity++-2.13.2-r7.ebuild 5035 RMD160 b236a92f7041815119cc8df8daa991bda924a4f2 SHA1 ebe72a94926ccfbd9164f776d752eef1b597380f SHA256 2b8eaffa23874fb4f1e6330c92eb74208fc1401e38482432fc7c3888edb558ab EBUILD timidity++-2.13.2-r8.ebuild 5005 RMD160 e5223e9eec0be28ccd0d5f75752ffdc3014313a5 SHA1 238a039309e36e6408f439359e0ee561cd9bee4b SHA256 4f89022480dc909a6199114bc80f16b7fd39a7538cf1d9c5a4d1cda0c5069a15 -MISC ChangeLog 17306 RMD160 7f3040597c05d6edb99f76fb510932366f9b74ad SHA1 240603369db975658c0f8117fd2ddca67d48498e SHA256 70c6765a4b8ec9ca1ab3ef4edcd2f19b0ff2d9f40c35c5c3c9643ab46ca45d06 +EBUILD timidity++-2.13.2-r9.ebuild 5046 RMD160 0205c2bb22d562cedb8d7336c9f69d83e9187698 SHA1 2ac52538bd3255969b12c80019307ba523720664 SHA256 0f2e53e6733843f917d5b9ff5c464e863409579be57e43e21f708ac02bb78e05 +MISC ChangeLog 17558 RMD160 e797ba98b53769e074c295847e2a6be320e4f758 SHA1 ca1b443c56ca60a68d7c1406864acecfede903e2 SHA256 2b8dda3b5dd1243c4ce2b81a59169b23d8c6e3e968fa1aae4e3c6d7525c11a7d MISC metadata.xml 158 RMD160 6842e2189a50bd8a98e84802c38180ac1421c00e SHA1 703cea5a2109d41f7c87993c1f01d418a4c85174 SHA256 dfb5b47e6836db39fb187301dfcff1c2605e91d13d21db160806a563d8c75f9b diff --git a/media-sound/timidity++/files/timidity++-2.13.2-polling.patch b/media-sound/timidity++/files/timidity++-2.13.2-polling.patch new file mode 100644 index 000000000000..5e24339ad02c --- /dev/null +++ b/media-sound/timidity++/files/timidity++-2.13.2-polling.patch @@ -0,0 +1,34 @@ +--- /var/tmp/portage/media-sound/timidity++-2.13.2-r6/work/TiMidity++-2.13.2/interface/alsaseq_c.c 2007-11-27 14:08:14.000000000 -0500 ++++ TiMidity++-2.13.2/interface/alsaseq_c.c 2007-11-27 14:13:49.000000000 -0500 +@@ -501,6 +501,8 @@ + + static void doit(struct seq_context *ctxp) + { ++ fd_set rfds; ++ struct timeval timeout; + for (;;) { + while (snd_seq_event_input_pending(ctxp->handle, 1)) { + if (do_sequencer(ctxp)) +@@ -528,15 +530,17 @@ + play_event(&ev); + aq_fill_nonblocking(); + } +- if (! ctxp->active || ! IS_STREAM_TRACE) { +- fd_set rfds; +- struct timeval timeout; +- FD_ZERO(&rfds); +- FD_SET(ctxp->fd, &rfds); ++ ++ FD_ZERO(&rfds); ++ FD_SET(ctxp->fd, &rfds); ++ if (ctxp->active) { + timeout.tv_sec = 0; + timeout.tv_usec = 10000; /* 10ms */ + if (select(ctxp->fd + 1, &rfds, NULL, NULL, &timeout) < 0) + goto __done; ++ } else { ++ if (select(ctxp->fd + 1, &rfds, NULL, NULL, NULL) < 0) ++ goto __done; + } + } + diff --git a/media-sound/timidity++/timidity++-2.13.2-r9.ebuild b/media-sound/timidity++/timidity++-2.13.2-r9.ebuild new file mode 100644 index 000000000000..9aed017235c3 --- /dev/null +++ b/media-sound/timidity++/timidity++-2.13.2-r9.ebuild @@ -0,0 +1,174 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/timidity++/timidity++-2.13.2-r9.ebuild,v 1.1 2009/05/12 16:00:46 ssuominen Exp $ + +inherit eutils elisp-common + +MY_PV=${PV/_/-} +MY_P=TiMidity++-${MY_PV} +S=${WORKDIR}/${MY_P} + +DESCRIPTION="A handy MIDI to WAV converter with OSS and ALSA output support" +HOMEPAGE="http://timidity.sourceforge.net/" +SRC_URI="mirror://sourceforge/timidity/${MY_P}.tar.bz2 mirror://gentoo/${P}-exiterror.patch" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="oss nas esd motif X gtk vorbis tk slang alsa arts jack emacs ao speex flac ncurses" + +DEPEND="ncurses? ( >=sys-libs/ncurses-5 ) + emacs? ( virtual/emacs ) + gtk? ( >=x11-libs/gtk+-2 ) + tk? ( >=dev-lang/tk-8.1 ) + motif? ( x11-libs/openmotif ) + esd? ( >=media-sound/esound-0.2.22 ) + nas? ( >=media-libs/nas-1.4 ) + alsa? ( media-libs/alsa-lib ) + slang? ( sys-libs/slang ) + arts? ( kde-base/arts ) + jack? ( media-sound/jack-audio-connection-kit ) + vorbis? ( media-libs/libvorbis ) + flac? ( media-libs/flac ) + speex? ( media-libs/speex ) + ao? ( >=media-libs/libao-0.8.5 )" +RDEPEND="${DEPEND} + alsa? ( media-sound/alsa-utils ) + app-admin/eselect-timidity" + +PDEPEND="|| ( media-sound/timidity-eawpatches media-sound/timidity-shompatches media-sound/timidity-freepats )" + +SITEFILE=50${PN}-gentoo.el + +pkg_setup() { + if use alsa && ! built_with_use --missing true media-libs/alsa-lib midi; then + eerror "" + eerror "To be able to build TiMidity++ with ALSA support you need" + eerror "to have built media-libs/alsa-lib with midi USE flag." + die "Missing midi USE flag on media-libs/alsa-lib" + fi + + enewgroup audio 18 # Just make sure it exists + enewuser timidity -1 -1 /var/lib/timidity audio +} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${DISTDIR}"/${P}-exiterror.patch + epatch "${FILESDIR}"/${P}-gtk26.patch + epatch "${FILESDIR}"/${P}-gcc4.patch + epatch "${FILESDIR}"/${P}-flac.patch + epatch "${FILESDIR}"/${P}-flac113.patch + epatch "${FILESDIR}"/${P}-protos.patch + epatch "${FILESDIR}"/${P}-polling.patch + + # fix header location of speex + sed -i -e "s:#include <speex:#include <speex/speex:g" configure* timidity/speex_a.c +} + +src_compile() { + local myconf + local audios + + use flac && audios="${audios},flac" + use speex && audios="${audios},speex" + use vorbis && audios="${audios},vorbis" + + use oss && audios="${audios},oss" + use esd && audios="${audios},esd" + use arts && audios="${audios},arts" + use jack && audios="${audios},jack" + use ao && audios="${audios},ao" + + if use nas; then + audios="${audios},nas" + myconf="${myconf} --with-nas-library=/usr/$(get_libdir)/libaudio.so --with-x" + use X || ewarn "Basic X11 support will be enabled because required by nas." + fi + + if use alsa; then + audios="${audios},alsa" + myconf="${myconf} --with-default-output=alsa --enable-alsaseq" + fi + + # We disable motif by default and then only enable it if it's requested. + if use motif; then + myconf="${myconf} --enable-motif --with-x" + use X || ewarn "Basic X11 support will be enabled because required by motif." + fi + + econf \ + --localstatedir=/var/state/timidity++ \ + --with-lispdir="${SITELISP}/${PN}" \ + --with-elf \ + --enable-audio=${audios} \ + --enable-server \ + --enable-network \ + --enable-dynamic \ + --enable-vt100 \ + --enable-spline=cubic \ + $(use_enable emacs) \ + $(use_enable slang) \ + $(use_enable ncurses) \ + $(use_with X x) \ + $(use_enable X spectrogram) \ + $(use_enable X wrd) \ + $(use_enable X xskin) \ + $(use_enable X xaw) \ + $(use_enable gtk) \ + $(use_enable tk tcltk) \ + --disable-motif \ + ${myconf} || die + + emake || die +} + +src_install() { + make DESTDIR="${D}" install || die + + dodoc AUTHORS ChangeLog* + dodoc NEWS README* "${FILESDIR}/timidity.cfg-r1" + + # these are only for the ALSA sequencer mode + if use alsa; then + newconfd "${FILESDIR}/conf.d.timidity" timidity + newinitd "${FILESDIR}/init.d.timidity.3" timidity + fi + + insinto /etc + newins "${FILESDIR}/timidity.cfg-r1" timidity.cfg + + dodir /usr/share/timidity + dosym /etc/timidity.cfg /usr/share/timidity/timidity.cfg + + if use emacs ; then + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi + + diropts -o timidity -g nobody -m 0700 + keepdir /var/lib/timidity +} + +pkg_postinst() { + use emacs && elisp-site-regen + + elog "A timidity config file has been installed in /etc/timidity.cfg." + elog "Do not edit this file as it will interfere with the eselect timidity tool." + elog "The tool 'eselect timidity' can be used to switch between installed patchsets." + + if use alsa; then + elog "An init script for the alsa timidity sequencer has been installed." + elog "If you wish to use the timidity virtual sequencer, edit /etc/conf.d/timidity" + elog "and run 'rc-update add timidity <runlevel> && /etc/init.d/timidity start'" + fi + + if use sparc; then + ewarn "sparc support is experimental. oss, alsa, and esd do not work." + ewarn "-Ow (save to wave file) does..." + fi +} + +pkg_postrm() { + use emacs && elisp-site-regen +} |