--- /usr/portage/app-i18n/libguess/libguess-1.1.ebuild 2014-01-26 15:01:04.000000000 +0100 +++ /usr/local/portage/app-i18n/libguess/libguess-1.2.ebuild 2014-04-25 16:48:58.857785656 +0200 @@ -2,11 +2,13 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-i18n/libguess/libguess-1.1.ebuild,v 1.11 2014/01/26 13:45:12 hattya Exp $ -EAPI=2 +EAPI=3 + +inherit autotools eutils DESCRIPTION="A high-speed character set detection library." HOMEPAGE="http://www.atheme.org/project/libguess" -SRC_URI="http://distfiles.atheme.org/${P}.tar.bz2" +SRC_URI="http://distfiles.atheme.org/${PN}-1.1.tar.bz2" LICENSE="BSD-2" SLOT="0" @@ -14,22 +16,28 @@ IUSE="examples" RDEPEND=" - >=dev-libs/libmowgli-0.7.0:0" + >=dev-libs/libmowgli-2.0.0:2" DEPEND="${RDEPEND} virtual/pkgconfig" +S="${WORKDIR}"/${PN}-1.1 + +src_prepare() { + epatch "${FILESDIR}/${PN}-1.2-upg.patch" + eautoreconf +} + src_configure() { - econf $(use_enable examples) \ - || die "econf failed" + econf $(use_enable examples) } src_test() { cd src/tests - make || die "test failed" + emake } src_install() { - emake DESTDIR="${D}" install || die "emake install failed" + emake DESTDIR="${D}" install dodoc README }