# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-sound/ecasound/ecasound-2.4.0.ebuild,v 1.11 2005/03/23 21:55:16 Kamil Wencel $ DESCRIPTION="Ecasound is a software package designed for multitrack audio processing" HOMEPAGE="http://www.eca.cx/ecasound/" SRC_URI="http://ecasound.seul.org/download/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="ncurses python oss mikmod oggvorbis jack audiofile libsamplerate" DEPEND="jack? ( >=media-sound/jack-audio-connection-kit-0.99.0-r1 ) audiofile? ( >=media-libs/audiofile-0.2.6-r1 ) oggvorbis? ( >=media-libs/libvorbis-1.1.0 ) mikmod? ( >=media-libs/libmikmod-3.1.11-r1 ) python? ( >=dev-lang/python-2.3.4 ) ncurses? ( >=sys-libs/ncurses-5.4-r5 ) libsamplerate? ( >=media-libs/libsamplerate0.1.1-r1 )" #RDEPEND="" src_compile () { local myconf use jack || myconf="$myconf --disable-jack" use alsa || myconf="$myconf --disable-alsa" use ncurses || myconf="$myconf --disable-ncurses" use audiofile || myconf="$myconf --disable-audiofile" use oss || myconf="$myconf --disable-oss" use amd64 && myconf="${myconf} --with-pic" einfo "configuring with ${myconf}" econf ${myconf} --disable-arts || die "econf failed" emake || die "make failed" } src_install () { make DESTDIR=${D} install || die if use python; then cd pyecasound || die python -c "import compileall; compileall.compile_dir('.')" || die python -O -c "import compileall; compileall.compile_dir('.')" || die python_sitepkgsdir="`python -c "import sys; print (sys.prefix + '/lib/python' + sys.version[:3] + '/site-packages/')"`" install *.pyc *.pyo "${D}/${python_sitepkgsdir}" cd .. fi dodoc INSTALL FAQ BUGS COPYING NEWS README TODO dohtml `find Documentation -name "*.html"` dodoc Documentation/edi-list.txt }