--- libatasmart-0.19-r1.ebuild.orig 2014-01-18 20:01:09.000000000 +0000 +++ libatasmart-0.19-r1.ebuild 2014-09-10 10:08:08.000000000 +0100 @@ -3,7 +3,7 @@ # $Header: /var/cvsroot/gentoo-x86/dev-libs/libatasmart/libatasmart-0.19-r1.ebuild,v 1.10 2014/01/18 19:59:29 ago Exp $ EAPI=5 -inherit eutils +inherit autotools eutils toolchain-funcs PATCH_LEVEL=2 @@ -28,9 +28,16 @@ local d="${WORKDIR}"/debian/patches sed -i -e '/#/d' "${d}"/series || die EPATCH_SOURCE="${d}" epatch $(<"${d}"/series) + + # Fix cross-compiling + # https://bugs.freedesktop.org/show_bug.cgi?id=60364 + sed -i "s/AM_//" strpool/Makefile.am || die + eautomake } src_configure() { + tc-export_build_env + econf \ --docdir=/usr/share/doc/${PF} \ $(use_enable static-libs static)