--- flex-2.5.37.ebuild.orig 2012-08-11 18:31:31.000000000 +0200 +++ flex-2.5.37.ebuild.orig 2012-12-21 19:43:15.451557119 +0100 @@ -2,9 +2,9 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-devel/flex/flex-2.5.37.ebuild,v 1.2 2012/08/11 16:06:53 vapier Exp $ -EAPI="3" +EAPI="5" -inherit eutils flag-o-matic +inherit eutils flag-o-matic toolchain-funcs if [[ ${PV} == *_p* ]] ; then DEB_DIFF=${PN}_${PV/_p/-} @@ -42,9 +42,12 @@ --docdir=/usr/share/doc/${PF} } +src_compile() { + emake AR="$(tc-getAR)" +} + src_install() { - emake install DESTDIR="${D}" || die + default rm "${D}"/usr/share/doc/${PF}/{COPYING,flex.pdf} || die - dodoc AUTHORS ChangeLog NEWS ONEWS README* THANKS TODO dosym flex /usr/bin/lex }