1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python2_7 )
7 inherit eutils python-single-r1
9 DESCRIPTION="a package for multitrack audio processing"
10 HOMEPAGE="https://ecasound.seul.org/ecasound/"
11 SRC_URI="https://${PN}.seul.org/download/${P}.tar.gz"
15 KEYWORDS="amd64 ~ppc x86"
16 IUSE="alsa audiofile debug doc jack libsamplerate mikmod ncurses vorbis oss python ruby sndfile"
18 RDEPEND="python? ( ${PYTHON_DEPS} )
19 jack? ( media-sound/jack-audio-connection-kit )
21 audiofile? ( media-libs/audiofile )
22 alsa? ( media-libs/alsa-lib )
23 vorbis? ( media-libs/libvorbis )
24 libsamplerate? ( media-libs/libsamplerate )
25 mikmod? ( media-libs/libmikmod:0 )
26 ruby? ( dev-lang/ruby )
27 python? ( dev-lang/python )
28 ncurses? ( sys-libs/ncurses )
29 sndfile? ( media-libs/libsndfile )
33 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
36 use python && python-single-r1_pkg_setup
43 pyconf=( "--with-python-modules=${EPREFIX}/usr/$(get_libdir)/${EPYTHON}" )
49 $(use_enable audiofile) \
52 $(use_enable libsamplerate) \
53 $(use_enable ncurses) \
55 $(use_enable python pyecasound c) \
56 $(use_enable ruby rubyecasound) \
57 $(use_enable sndfile) \
60 --enable-sys-readline \
65 emake DESTDIR="${D}" install
66 use python && python_optimize
67 dodoc BUGS NEWS README TODO
68 use doc && dodoc Documentation/*.html