/[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.6 - (hide annotations) (download)
Sat Aug 1 06:24:06 2009 UTC (10 years, 6 months ago) by ssuominen
Branch: MAIN
Changes since 1.5: +2 -2 lines
Remove USE depend for media-libs/alsa-lib[midi].
(Portage version: 2.2_rc33/cvs/Linux x86_64)

1 patrick 1.1 # Copyright 1999-2009 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ssuominen 1.6 # $Header: /var/cvsroot/gentoo-x86/media-sound/ecasound/ecasound-2.6.0.ebuild,v 1.5 2009/06/09 18:52:02 armin76 Exp $
4 patrick 1.1
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 armin76 1.5 KEYWORDS="amd64 ~ppc sparc x86"
16 ssuominen 1.2 IUSE="alsa audiofile debug doc jack libsamplerate mikmod ncurses vorbis oss python ruby sndfile"
17 patrick 1.1
18 ssuominen 1.4 RDEPEND="python? ( dev-lang/python )
19 patrick 1.1 jack? ( media-sound/jack-audio-connection-kit )
20     media-libs/ladspa-sdk
21     audiofile? ( media-libs/audiofile )
22 ssuominen 1.6 alsa? ( media-libs/alsa-lib )
23 patrick 1.1 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 ssuominen 1.4 DEPEND="${RDEPEND}"
32 patrick 1.1
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 ssuominen 1.2 econf \
46     $(use_enable alsa) \
47     --disable-arts \
48 patrick 1.1 $(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