blob: 578de90803ea2a1da985d88bd689228cd56b5430 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/ecasound/ecasound-2.6.0.ebuild,v 1.4 2009/06/01 14:58:39 ssuominen Exp $
EAPI=2
inherit eutils multilib python
DESCRIPTION="a package for multitrack audio processing"
HOMEPAGE="http://ecasound.seul.org/ecasound"
SRC_URI="http://${PN}.seul.org/download/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="1"
KEYWORDS="amd64 ~ppc ~sparc x86"
IUSE="alsa audiofile debug doc jack libsamplerate mikmod ncurses vorbis oss python ruby sndfile"
RDEPEND="python? ( dev-lang/python )
jack? ( media-sound/jack-audio-connection-kit )
media-libs/ladspa-sdk
audiofile? ( media-libs/audiofile )
alsa? ( media-libs/alsa-lib[midi] )
vorbis? ( media-libs/libvorbis )
libsamplerate? ( media-libs/libsamplerate )
mikmod? ( media-libs/libmikmod )
ruby? ( dev-lang/ruby )
python? ( dev-lang/python )
ncurses? ( sys-libs/ncurses )
sndfile? ( media-libs/libsndfile )
sys-libs/readline"
DEPEND="${RDEPEND}"
src_configure() {
local PYConf
if use python; then
python_version
PYConf="--enable-pyecasound=c
--with-python-includes=/usr/include/python${PYVER}
--with-python-modules=/usr/$(get_libdir)/python${PYVER}"
else
PYConf="$myconf --disable-pyecasound"
fi
econf \
$(use_enable alsa) \
--disable-arts \
$(use_enable audiofile) \
$(use_enable debug) \
$(use_enable jack) \
$(use_enable libsamplerate) \
$(use_enable ncurses) \
$(use_enable oss) \
$(use_enable ruby rubyecasound) \
$(use_enable sndfile) \
--enable-shared \
--with-largefile \
--enable-sys-readline \
${PYConf} || die "econf failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed."
dodoc BUGS NEWS README TODO Documentation/*.txt
use doc && dohtml Documentation/*.html
}
pkg_postinst() {
if use python; then
ebegin "Byte-compiling ${CATEGORY}/${PF} python modules"
python_version
local PYMODULE
for PYMODULE in ecacontrol.py pyeca.py eci.py; do
python_mod_compile /usr/$(get_libdir)/python${PYVER}/site-packages/${PYMODULE}
done
eend $?
fi
}
pkg_postrm() {
python_mod_cleanup
}
|