1 |
ssuominen 12/07/07 07:48:46 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: timidity++-2.14.0.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
|
8 |
(Portage version: 2.2.0_alpha116/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.147 media-sound/timidity++/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/timidity++/ChangeLog?rev=1.147&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/timidity++/ChangeLog?rev=1.147&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/timidity++/ChangeLog?r1=1.146&r2=1.147 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-sound/timidity++/ChangeLog,v |
20 |
retrieving revision 1.146 |
21 |
retrieving revision 1.147 |
22 |
diff -u -r1.146 -r1.147 |
23 |
--- ChangeLog 9 Jun 2012 23:24:27 -0000 1.146 |
24 |
+++ ChangeLog 7 Jul 2012 07:48:46 -0000 1.147 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for media-sound/timidity++ |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/media-sound/timidity++/ChangeLog,v 1.146 2012/06/09 23:24:27 zmedico Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/media-sound/timidity++/ChangeLog,v 1.147 2012/07/07 07:48:46 ssuominen Exp $ |
30 |
+ |
31 |
+*timidity++-2.14.0 (07 Jul 2012) |
32 |
+ |
33 |
+ 07 Jul 2012; Samuli Suominen <ssuominen@g.o> |
34 |
+ +timidity++-2.14.0.ebuild, +files/timidity++-2.14.0-params.patch, |
35 |
+ +files/timidity++-2.14.0-revert-for-required-ctl_speana_data-function.patch: |
36 |
+ Version bump. |
37 |
|
38 |
09 Jun 2012; Zac Medico <zmedico@g.o> timidity++-2.13.2-r13.ebuild, |
39 |
timidity++-2.13.2-r14.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.1 media-sound/timidity++/timidity++-2.14.0.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/timidity++/timidity++-2.14.0.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/timidity++/timidity++-2.14.0.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: timidity++-2.14.0.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2012 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/timidity++/timidity++-2.14.0.ebuild,v 1.1 2012/07/07 07:48:46 ssuominen Exp $ |
53 |
|
54 |
EAPI=4 |
55 |
inherit autotools eutils elisp-common user |
56 |
|
57 |
MY_PV=${PV/_/-} |
58 |
MY_P=TiMidity++-${MY_PV} |
59 |
S=${WORKDIR}/${MY_P} |
60 |
|
61 |
DESCRIPTION="A handy MIDI to WAV converter with OSS and ALSA output support" |
62 |
HOMEPAGE="http://timidity.sourceforge.net/" |
63 |
SRC_URI="mirror://sourceforge/timidity/${MY_P}.tar.xz" |
64 |
|
65 |
LICENSE="GPL-2" |
66 |
SLOT="0" |
67 |
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
68 |
IUSE="motif oss nas X gtk vorbis tk slang alsa jack emacs ao speex flac ncurses" |
69 |
|
70 |
DEPEND="ncurses? ( >=sys-libs/ncurses-5 ) |
71 |
emacs? ( virtual/emacs ) |
72 |
gtk? ( x11-libs/gtk+:2 ) |
73 |
tk? ( dev-lang/tk ) |
74 |
nas? ( >=media-libs/nas-1.4 ) |
75 |
alsa? ( media-libs/alsa-lib ) |
76 |
slang? ( sys-libs/slang ) |
77 |
jack? ( media-sound/jack-audio-connection-kit ) |
78 |
vorbis? ( media-libs/libvorbis ) |
79 |
flac? ( media-libs/flac ) |
80 |
speex? ( media-libs/speex ) |
81 |
ao? ( >=media-libs/libao-0.8.5 ) |
82 |
motif? ( >=x11-libs/openmotif-2.3:0 ) |
83 |
X? ( x11-libs/libXaw x11-libs/libXext >=media-libs/libpng-1.4.2 )" |
84 |
RDEPEND="${DEPEND} |
85 |
alsa? ( media-sound/alsa-utils ) |
86 |
app-admin/eselect-timidity" |
87 |
|
88 |
PDEPEND="|| ( media-sound/timidity-eawpatches media-sound/timidity-shompatches media-sound/timidity-freepats )" |
89 |
|
90 |
SITEFILE=50${PN}-gentoo.el |
91 |
|
92 |
pkg_setup() { |
93 |
enewgroup audio 18 # Just make sure it exists |
94 |
enewuser timidity -1 -1 /var/lib/timidity audio |
95 |
} |
96 |
|
97 |
src_prepare() { |
98 |
epatch \ |
99 |
"${FILESDIR}"/${P}-params.patch \ |
100 |
"${FILESDIR}"/${P}-revert-for-required-ctl_speana_data-function.patch |
101 |
|
102 |
eautoreconf |
103 |
} |
104 |
|
105 |
src_configure() { |
106 |
export EXTRACFLAGS="${CFLAGS}" #385817 |
107 |
|
108 |
local myconf |
109 |
local audios |
110 |
|
111 |
use flac && audios="${audios},flac" |
112 |
use speex && audios="${audios},speex" |
113 |
use vorbis && audios="${audios},vorbis" |
114 |
|
115 |
use oss && audios="${audios},oss" |
116 |
use jack && audios="${audios},jack" |
117 |
use ao && audios="${audios},ao" |
118 |
|
119 |
if use nas; then |
120 |
audios="${audios},nas" |
121 |
myconf="${myconf} --with-nas-library=/usr/$(get_libdir)/libaudio.so --with-x" |
122 |
use X || ewarn "Basic X11 support will be enabled because required by nas." |
123 |
fi |
124 |
|
125 |
if use alsa; then |
126 |
audios="${audios},alsa" |
127 |
myconf="${myconf} --with-default-output=alsa --enable-alsaseq" |
128 |
fi |
129 |
|
130 |
# We disable motif by default and then only enable it if it's requested. |
131 |
if use motif; then |
132 |
myconf="${myconf} --enable-motif --with-x" |
133 |
use X || ewarn "Basic X11 support will be enabled because required by motif." |
134 |
fi |
135 |
|
136 |
econf \ |
137 |
--localstatedir=/var/state/timidity++ \ |
138 |
--with-lispdir="${SITELISP}/${PN}" \ |
139 |
--with-elf \ |
140 |
--enable-audio=${audios} \ |
141 |
--enable-server \ |
142 |
--enable-network \ |
143 |
--enable-dynamic \ |
144 |
--enable-vt100 \ |
145 |
--enable-spline=cubic \ |
146 |
$(use_enable emacs) \ |
147 |
$(use_enable slang) \ |
148 |
$(use_enable ncurses) \ |
149 |
$(use_with X x) \ |
150 |
$(use_enable X spectrogram) \ |
151 |
$(use_enable X wrd) \ |
152 |
$(use_enable X xskin) \ |
153 |
$(use_enable X xaw) \ |
154 |
$(use_enable gtk) \ |
155 |
$(use_enable tk tcltk) \ |
156 |
--disable-motif \ |
157 |
${myconf} |
158 |
} |
159 |
|
160 |
src_install() { |
161 |
emake DESTDIR="${D}" install |
162 |
|
163 |
dodoc AUTHORS ChangeLog* |
164 |
dodoc NEWS README* "${FILESDIR}/timidity.cfg-r1" |
165 |
|
166 |
# these are only for the ALSA sequencer mode |
167 |
if use alsa; then |
168 |
newconfd "${FILESDIR}"/conf.d.timidity.2 timidity |
169 |
newinitd "${FILESDIR}"/init.d.timidity.4 timidity |
170 |
fi |
171 |
|
172 |
insinto /etc |
173 |
newins "${FILESDIR}/timidity.cfg-r1" timidity.cfg |
174 |
|
175 |
dodir /usr/share/timidity |
176 |
dosym /etc/timidity.cfg /usr/share/timidity/timidity.cfg |
177 |
|
178 |
if use emacs; then |
179 |
elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
180 |
fi |
181 |
|
182 |
diropts -o timidity -g nobody -m 0700 |
183 |
keepdir /var/lib/timidity |
184 |
|
185 |
doicon "${FILESDIR}"/timidity.xpm |
186 |
newmenu "${FILESDIR}"/timidity.desktop.2 timidity.desktop |
187 |
|
188 |
# Order of preference: gtk, X (Xaw), ncurses, slang |
189 |
# Do not create menu item for terminal ones |
190 |
local interface="-id" |
191 |
local terminal="true" |
192 |
local nodisplay="true" |
193 |
if use gtk || use X; then |
194 |
interface="-ia" |
195 |
terminal="false" |
196 |
nodisplay="false" |
197 |
use gtk && interface="-ig" |
198 |
elif use ncurses || use slang; then |
199 |
local interface="-is" |
200 |
use ncurses && interface="-in" |
201 |
fi |
202 |
sed -e "s/Exec=timidity/Exec=timidity ${interface}/" \ |
203 |
-e "s/Terminal=.*/Terminal=${terminal}/" \ |
204 |
-e "s/NoDisplay=.*/NoDisplay=${nodisplay}/" \ |
205 |
-i "${D}"/usr/share/applications/timidity.desktop || die "sed failed" |
206 |
} |
207 |
|
208 |
pkg_postinst() { |
209 |
use emacs && elisp-site-regen |
210 |
|
211 |
elog "A timidity config file has been installed in /etc/timidity.cfg." |
212 |
elog "Do not edit this file as it will interfere with the eselect timidity tool." |
213 |
elog "The tool 'eselect timidity' can be used to switch between installed patchsets." |
214 |
|
215 |
if use alsa; then |
216 |
elog "An init script for the alsa timidity sequencer has been installed." |
217 |
elog "If you wish to use the timidity virtual sequencer, edit /etc/conf.d/timidity" |
218 |
elog "and run 'rc-update add timidity <runlevel> && /etc/init.d/timidity start'" |
219 |
fi |
220 |
|
221 |
if use sparc; then |
222 |
elog "Only saving to wave file and ALSA soundback has been tested working." |
223 |
fi |
224 |
} |
225 |
|
226 |
pkg_postrm() { |
227 |
use emacs && elisp-site-regen |
228 |
} |