/[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.4 - (show annotations) (download)
Mon Jun 1 14:58:39 2009 UTC (10 years, 8 months ago) by ssuominen
Branch: MAIN
Changes since 1.3: +3 -2 lines
Fix repoman warnings
(Portage version: 2.1.6.13/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.3 2009/05/31 12:13:23 maekke 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 RDEPEND="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 DEPEND="${RDEPEND}"
32
33 src_configure() {
34 local PYConf
35
36 if use python; then
37 python_version
38 PYConf="--enable-pyecasound=c
39 --with-python-includes=/usr/include/python${PYVER}
40 --with-python-modules=/usr/$(get_libdir)/python${PYVER}"
41 else
42 PYConf="$myconf --disable-pyecasound"
43 fi
44
45 econf \
46 $(use_enable alsa) \
47 --disable-arts \
48 $(use_enable audiofile) \
49 $(use_enable debug) \
50 $(use_enable jack) \
51 $(use_enable libsamplerate) \
52 $(use_enable ncurses) \
53 $(use_enable oss) \
54 $(use_enable ruby rubyecasound) \
55 $(use_enable sndfile) \
56 --enable-shared \
57 --with-largefile \
58 --enable-sys-readline \
59 ${PYConf} || die "econf failed"
60 }
61
62 src_install() {
63 emake DESTDIR="${D}" install || die "emake install failed."
64 dodoc BUGS NEWS README TODO Documentation/*.txt
65 use doc && dohtml Documentation/*.html
66 }
67
68 pkg_postinst() {
69 if use python; then
70 ebegin "Byte-compiling ${CATEGORY}/${PF} python modules"
71 python_version
72 local PYMODULE
73 for PYMODULE in ecacontrol.py pyeca.py eci.py; do
74 python_mod_compile /usr/$(get_libdir)/python${PYVER}/site-packages/${PYMODULE}
75 done
76 eend $?
77 fi
78 }
79
80 pkg_postrm() {
81 python_mod_cleanup
82 }

  ViewVC Help
Powered by ViewVC 1.1.20