Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 184478
Collapse All | Expand All

(-)timidity++-2.13.2-r4.ebuild.orig (-8 / +15 lines)
Lines 2-8 Link Here
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++/timidity++-2.13.2-r4.ebuild,v 1.1 2007/03/25 21:47:48 aballier Exp $
3
# $Header: /var/cvsroot/gentoo-x86/media-sound/timidity++/timidity++-2.13.2-r4.ebuild,v 1.1 2007/03/25 21:47:48 aballier Exp $
4
4
5
inherit eutils
5
inherit eutils elisp-common
6
6
7
MY_PV=${PV/_/-}
7
MY_PV=${PV/_/-}
8
MY_P=TiMidity++-${MY_PV}
8
MY_P=TiMidity++-${MY_PV}
Lines 15-23 Link Here
15
LICENSE="GPL-2"
15
LICENSE="GPL-2"
16
SLOT="0"
16
SLOT="0"
17
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
17
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
18
IUSE="oss nas esd motif X gtk gtk vorbis tk slang alsa arts jack portaudio emacs ao speex flac ncurses"
18
IUSE="oss nas esd motif X gtk vorbis tk slang alsa arts jack portaudio emacs ao speex flac ncurses"
19
19
20
DEPEND="ncurses? ( >=sys-libs/ncurses-5.0 )
20
DEPEND="ncurses? ( >=sys-libs/ncurses-5.0 )
21
	emacs? ( virtual/emacs )
21
	gtk? ( >=x11-libs/gtk+-2.0 )
22
	gtk? ( >=x11-libs/gtk+-2.0 )
22
	tk? ( >=dev-lang/tk-8.1 )
23
	tk? ( >=dev-lang/tk-8.1 )
23
	motif? ( virtual/motif )
24
	motif? ( virtual/motif )
Lines 33-44 Link Here
33
	speex? ( >=media-libs/speex-1.1.5 )
34
	speex? ( >=media-libs/speex-1.1.5 )
34
	ao? ( >=media-libs/libao-0.8.5 )"
35
	ao? ( >=media-libs/libao-0.8.5 )"
35
36
36
RDEPEND="${RDEPEND}
37
RDEPEND="${DEPEND}
37
	app-admin/eselect-timidity
38
	app-admin/eselect-timidity"
38
	emacs? ( virtual/emacs )"
39
39
40
PDEPEND="|| ( media-sound/timidity-eawpatches media-sound/timidity-shompatches media-sound/timidity-freepats )"
40
PDEPEND="|| ( media-sound/timidity-eawpatches media-sound/timidity-shompatches media-sound/timidity-freepats )"
41
41
42
SITEFILE=50${PN}-gentoo.el
43
42
pkg_setup() {
44
pkg_setup() {
43
	if use alsa && ! built_with_use --missing true media-libs/alsa-lib midi; then
45
	if use alsa && ! built_with_use --missing true media-libs/alsa-lib midi; then
44
		eerror ""
46
		eerror ""
Lines 95-100 Link Here
95
97
96
	econf \
98
	econf \
97
		--localstatedir=/var/state/timidity++ \
99
		--localstatedir=/var/state/timidity++ \
100
		--with-lispdir="${SITELISP}/${PN}" \
98
		--with-elf \
101
		--with-elf \
99
		--enable-audio=${audios} \
102
		--enable-audio=${audios} \
100
		--enable-server \
103
		--enable-server \
Lines 137-149 Link Here
137
	dosym /etc/timidity.cfg /usr/share/timidity/timidity.cfg
140
	dosym /etc/timidity.cfg /usr/share/timidity/timidity.cfg
138
141
139
	if use emacs ; then
142
	if use emacs ; then
140
		dosed 's:/usr/local/bin/timidity:/usr/bin/timidity:g' /usr/share/emacs/site-lisp/timidity.el
143
		elisp-site-file-install "${FILESDIR}/${SITEFILE}"
141
	else
142
		rm "${D}/timidity.el"
143
	fi
144
	fi
144
}
145
}
145
146
146
pkg_postinst() {
147
pkg_postinst() {
148
	use emacs && elisp-site-regen
149
147
	elog "A timidity config file has been installed in /etc/timidity.cfg."
150
	elog "A timidity config file has been installed in /etc/timidity.cfg."
148
	elog "Do not edit this file as it will interfere with the eselect timidity tool."
151
	elog "Do not edit this file as it will interfere with the eselect timidity tool."
149
	elog "The tool 'eselect timidity' can be used to switch between installed patchsets."
152
	elog "The tool 'eselect timidity' can be used to switch between installed patchsets."
Lines 159-161 Link Here
159
		ewarn "-Ow (save to wave file) does..."
162
		ewarn "-Ow (save to wave file) does..."
160
	fi
163
	fi
161
}
164
}
165
166
pkg_postrm() {
167
	use emacs && elisp-site-regen
168
}

Return to bug 184478