You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-sound/lash/lash-0.5.4-r1.ebuild

53 lines
1.3 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/lash/lash-0.5.4-r1.ebuild,v 1.14 2012/05/05 08:35:21 mgorny Exp $
EAPI=2
inherit autotools eutils
DESCRIPTION="LASH Audio Session Handler"
HOMEPAGE="http://www.nongnu.org/lash/"
SRC_URI="http://download.savannah.gnu.org/releases/lash/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86"
IUSE="alsa debug gtk python"
RDEPEND="alsa? ( media-libs/alsa-lib )
media-sound/jack-audio-connection-kit
dev-libs/libxml2
gtk? ( x11-libs/gtk+:2 )
python? ( dev-lang/python )
|| ( sys-libs/readline dev-libs/libedit )"
DEPEND="${RDEPEND}
virtual/pkgconfig
python? ( >=dev-lang/swig-1.3.31 )"
src_prepare() {
epatch "${FILESDIR}/${P}-glibc2.8.patch"
epatch "${FILESDIR}/${P}-swig_version_comparison.patch"
AT_M4DIR="m4" eautoreconf
}
src_configure() {
local myconf
# Yet-another-broken-configure: --enable-pylash would disable it.
use python || myconf="${myconf} --disable-pylash"
econf \
$(use_enable alsa alsa-midi) \
$(use_enable gtk gtk2) \
$(use_enable debug) \
${myconf} \
--disable-dependency-tracking
}
src_install() {
emake DESTDIR="${D}" install || die
dodoc AUTHORS ChangeLog NEWS README TODO
}