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