/[gentoo-x86]/media-sound/ecasound/ecasound-2.6.0.ebuild
Gentoo

Contents of /media-sound/ecasound/ecasound-2.6.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun May 31 12:13:23 2009 UTC (10 years, 8 months ago) by maekke
Branch: MAIN
Changes since 1.2: +2 -2 lines
amd64/x86 stable, bug #271779
(Portage version: 2.1.6.11/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20