--- /usr/portage/net-misc/spread/spread-4.0.0.ebuild 2009-04-05 04:08:24.000000000 -0400 +++ spread-4.0.0.ebuild 2009-07-09 15:19:06.000000000 -0400 @@ -2,7 +2,9 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-misc/spread/spread-4.0.0.ebuild,v 1.3 2008/01/11 08:38:56 armin76 Exp $ -inherit eutils +EAPI="2" + +inherit eutils autotools MY_PN="spread-src" @@ -10,9 +12,10 @@ HOMEPAGE="http://www.spread.org" SRC_URI="mirror://gentoo/${MY_PN}-${PV}.tar.gz" + LICENSE="Spread-1.0" SLOT="0" -KEYWORDS="~x86 ~amd64" +KEYWORDS="~arm ~x86 ~amd64" IUSE="" DEPEND="" @@ -31,6 +34,20 @@ # don't strip binaries sed -i -e 's/0755 -s/0755/g' daemon/Makefile.in examples/Makefile.in + + # cross-compilation breaks during configure at snprintf test + epatch "${FILESDIR}"/fix-cross-compile-snprintf-test.patch || die "" + eautoconf -I buildtools || die "" +} + +src_configure() { + export CFLAGS="${CFLAGS}" + export LDFLAGS="${LDFLAGS}" + econf || die "" +} + +src_compile() { + emake || die "" } src_install() {