/[gentoo-x86]/media-sound/timidity++/timidity++-2.13.2-r10.ebuild
Gentoo

Diff of /media-sound/timidity++/timidity++-2.13.2-r10.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.6 Revision 1.7
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/media-sound/timidity++/Attic/timidity++-2.13.2-r10.ebuild,v 1.6 2009/05/31 15:52:48 ranger Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-sound/timidity++/Attic/timidity++-2.13.2-r10.ebuild,v 1.7 2009/06/01 14:25:09 ssuominen Exp $
4 4
5EAPI=2 5EAPI=2
6inherit eutils elisp-common 6inherit eutils elisp-common
7 7
8MY_PV=${PV/_/-} 8MY_PV=${PV/_/-}
14SRC_URI="mirror://sourceforge/timidity/${MY_P}.tar.bz2 mirror://gentoo/${P}-exiterror.patch" 14SRC_URI="mirror://sourceforge/timidity/${MY_P}.tar.bz2 mirror://gentoo/${P}-exiterror.patch"
15 15
16LICENSE="GPL-2" 16LICENSE="GPL-2"
17SLOT="0" 17SLOT="0"
18KEYWORDS="amd64 ~arm ~hppa ppc ppc64 sparc x86 ~x86-fbsd" 18KEYWORDS="amd64 ~arm ~hppa ppc ppc64 sparc x86 ~x86-fbsd"
19IUSE="oss nas esd motif X gtk vorbis tk slang alsa jack emacs ao speex flac ncurses" 19IUSE="oss nas X gtk vorbis tk slang alsa jack emacs ao speex flac ncurses"
20 20
21DEPEND="ncurses? ( >=sys-libs/ncurses-5 ) 21DEPEND="ncurses? ( >=sys-libs/ncurses-5 )
22 emacs? ( virtual/emacs ) 22 emacs? ( virtual/emacs )
23 gtk? ( >=x11-libs/gtk+-2 ) 23 gtk? ( >=x11-libs/gtk+-2 )
24 tk? ( >=dev-lang/tk-8.1 ) 24 tk? ( >=dev-lang/tk-8.1 )
25 motif? ( x11-libs/openmotif )
26 esd? ( >=media-sound/esound-0.2.22 )
27 nas? ( >=media-libs/nas-1.4 ) 25 nas? ( >=media-libs/nas-1.4 )
28 alsa? ( media-libs/alsa-lib[midi] ) 26 alsa? ( media-libs/alsa-lib[midi] )
29 slang? ( sys-libs/slang ) 27 slang? ( sys-libs/slang )
30 jack? ( media-sound/jack-audio-connection-kit ) 28 jack? ( media-sound/jack-audio-connection-kit )
31 vorbis? ( media-libs/libvorbis ) 29 vorbis? ( media-libs/libvorbis )
53 "${FILESDIR}"/${P}-flac113.patch \ 51 "${FILESDIR}"/${P}-flac113.patch \
54 "${FILESDIR}"/${P}-protos.patch \ 52 "${FILESDIR}"/${P}-protos.patch \
55 "${FILESDIR}"/${P}-polling.patch \ 53 "${FILESDIR}"/${P}-polling.patch \
56 54
57 # fix header location of speex 55 # fix header location of speex
58 sed -i -e "s:#include <speex:#include <speex/speex:g" configure* timidity/speex_a.c 56 sed -i -e "s:#include <speex:#include <speex/speex:g" \
57 configure* timidity/speex_a.c || die "sed failed"
59} 58}
60 59
61src_configure() { 60src_configure() {
62 local myconf 61 local myconf
63 local audios 62 local audios
65 use flac && audios="${audios},flac" 64 use flac && audios="${audios},flac"
66 use speex && audios="${audios},speex" 65 use speex && audios="${audios},speex"
67 use vorbis && audios="${audios},vorbis" 66 use vorbis && audios="${audios},vorbis"
68 67
69 use oss && audios="${audios},oss" 68 use oss && audios="${audios},oss"
70 use esd && audios="${audios},esd"
71 use jack && audios="${audios},jack" 69 use jack && audios="${audios},jack"
72 use ao && audios="${audios},ao" 70 use ao && audios="${audios},ao"
73 71
74 if use nas; then 72 if use nas; then
75 audios="${audios},nas" 73 audios="${audios},nas"
128 newins "${FILESDIR}/timidity.cfg-r1" timidity.cfg 126 newins "${FILESDIR}/timidity.cfg-r1" timidity.cfg
129 127
130 dodir /usr/share/timidity 128 dodir /usr/share/timidity
131 dosym /etc/timidity.cfg /usr/share/timidity/timidity.cfg 129 dosym /etc/timidity.cfg /usr/share/timidity/timidity.cfg
132 130
133 if use emacs ; then 131 if use emacs; then
134 elisp-site-file-install "${FILESDIR}/${SITEFILE}" 132 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
135 fi 133 fi
136 134
137 diropts -o timidity -g nobody -m 0700 135 diropts -o timidity -g nobody -m 0700
138 keepdir /var/lib/timidity 136 keepdir /var/lib/timidity
153 elog "If you wish to use the timidity virtual sequencer, edit /etc/conf.d/timidity" 151 elog "If you wish to use the timidity virtual sequencer, edit /etc/conf.d/timidity"
154 elog "and run 'rc-update add timidity <runlevel> && /etc/init.d/timidity start'" 152 elog "and run 'rc-update add timidity <runlevel> && /etc/init.d/timidity start'"
155 fi 153 fi
156 154
157 if use sparc; then 155 if use sparc; then
158 ewarn "sparc support is experimental. oss, alsa, and esd do not work." 156 elog "Only saving to wave file and ALSA soundback has been tested working."
159 ewarn "-Ow (save to wave file) does..."
160 fi 157 fi
161} 158}
162 159
163pkg_postrm() { 160pkg_postrm() {
164 use emacs && elisp-site-regen 161 use emacs && elisp-site-regen

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20