# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-sound/cdparanoia/cdparanoia-3.10.2-r2.ebuild,v 1.4 2009/04/29 14:33:44 ranger Exp $ EAPI=2 inherit autotools eutils flag-o-matic libtool toolchain-funcs versionator MY_P=${PN}-III-$(get_version_component_range 2-3) DESCRIPTION="an advanced CDDA reader with error correction" HOMEPAGE="http://www.xiph.org/paranoia" SRC_URI="http://downloads.xiph.org/releases/${PN}/${MY_P}.src.tgz mirror://gentoo/${P}-gcc43.patch.bz2" LICENSE="GPL-2 LGPL-2.1" SLOT="0" KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ppc64 ~sparc ~x86" IUSE="" S=${WORKDIR}/${MY_P} src_prepare() { epatch "${FILESDIR}/${P}-use-destdir.patch" \ "${FILESDIR}/${P}-Makefile.in.patch" \ "${WORKDIR}/${P}-gcc43.patch" \ "${FILESDIR}/${P}-ppc64.patch" mv configure.guess config.guess mv configure.sub config.sub sed -i -e '/configure.\(guess\|sub\)/d' configure.in || die "sed failed" eautoconf elibtoolize } src_configure() { tc-export CC AR RANLIB append-flags -I"${S}/interface" econf } src_compile() { emake OPT="${CFLAGS}" || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" dodoc README }