/[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.2 - (hide annotations) (download)
Thu May 21 14:35:41 2009 UTC (10 years, 9 months ago) by ssuominen
Branch: MAIN
Changes since 1.1: +5 -10 lines
Remove arts support which was deprecated by ecasound upstream in next release too.
(Portage version: 2.1.6.13/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.2 # $Header: /var/cvsroot/gentoo-x86/media-sound/ecasound/ecasound-2.6.0.ebuild,v 1.1 2009/04/30 22:14:12 patrick 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     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     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 ssuominen 1.2 econf \
45     $(use_enable alsa) \
46     --disable-arts \
47 patrick 1.1 $(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