/[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.1 - (hide annotations) (download)
Thu Apr 30 22:14:12 2009 UTC (10 years, 9 months ago) by patrick
Branch: MAIN
Bump to 2.6.0, fixes #265940
(Portage version: 2.2_rc31/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     # $Header: /var/cvsroot/gentoo-x86/media-sound/ecasound/ecasound-2.5.2-r1.ebuild,v 1.2 2008/09/29 09:05:39 flameeyes 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 arts 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     arts? ( kde-base/arts )
25     libsamplerate? ( media-libs/libsamplerate )
26     mikmod? ( media-libs/libmikmod )
27     ruby? ( dev-lang/ruby )
28     python? ( dev-lang/python )
29     ncurses? ( sys-libs/ncurses )
30     sndfile? ( media-libs/libsndfile )
31     sys-libs/readline"
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 $(use_enable alsa) \
46     $(use_enable 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     if use arts; then
78     ewarn "WARNING: You have requested ecasound ARTS support,"
79     ewarn "this is no longer supported and will go away in"
80     ewarn "future releases."
81     fi
82     }
83    
84     pkg_postrm() {
85     python_mod_cleanup
86     }

  ViewVC Help
Powered by ViewVC 1.1.20