diff --git a/dev-lang/squirrel/squirrel-2.2.4.ebuild b/dev-lang/squirrel/squirrel-2.2.4.ebuild --- a/dev-lang/squirrel/squirrel-2.2.4.ebuild +++ b/dev-lang/squirrel/squirrel-2.2.4.ebuild @@ -1,9 +1,12 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ +EAPI="2" + +inherit autotools eutils + MY_P="${PN}_${PV}_stable" - DESCRIPTION="A interpreted language mainly used for games" HOMEPAGE="http://squirrel-lang.org/" SRC_URI="mirror://sourceforge/${PN}/${PN}${PV:0:1}/${MY_P}/${MY_P}.tar.gz" @@ -18,27 +21,15 @@ RDEPEND="!app-text/ispell" S="${WORKDIR}/SQUIRREL${PV:0:1}" -src_compile() { - if use amd64 ; then - emake sq64 || die - else - emake || die - fi +src_prepare() { + epatch "${FILESDIR}"/${P}-autotools.patch + epatch "${FILESDIR}"/${P}-supertux-const.patch + epatch "${FILESDIR}"/${P}-stdint.h.patch + + eautoreconf } src_install() { - dobin bin/sq || die - dolib.a lib/*.a || die - insinto /usr - doins -r include || die + emake DESTDIR="${D}" install || die dodoc HISTORY README || die - - if use doc ; then - dodoc doc/*.pdf || die - fi - - if use examples ; then - insinto /usr/share/doc/${PF}/samples - doins -r etc samples/* || die - fi }