diff -ru a/ipsorcery-2.0.9.ebuild b/ipsorcery-2.0.9.ebuild --- a/ipsorcery-2.0.9.ebuild 2007-07-12 03:05:58.000000000 +0000 +++ b/ipsorcery-2.0.9.ebuild 2010-08-21 20:36:34.813096876 +0000 @@ -2,6 +2,10 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-misc/ipsorcery/ipsorcery-2.0.9.ebuild,v 1.3 2007/07/12 02:52:16 mr_bones_ Exp $ +EAPI="2" + +inherit toolchain-funcs + DESCRIPTION="Ipsorcery allows you to generate IP, TCP, UDP, ICMP, and IGMP packets." SRC_URI="http://www.legions.org/~phric/ipsorc-${PV}.tar.gz" HOMEPAGE="http://www.legions.org/~phric/ipsorcery.html" @@ -13,23 +17,26 @@ RDEPEND="${DEPEND}" S=${WORKDIR}/ipsorc-${PV} -src_unpack() { - unpack ${A} - sed -i -e "s:-O2:$CFLAGS:g" ${S}/Makefile +src_prepare() { + sed -i \ + -e '/^CC =/d' \ + -e "s:-O2:$CPPFLAGS $CFLAGS $LDFLAGS:g" \ + ${S}/Makefile || die } src_compile () { + tc-export CC if use gtk; then emake all || die else - make con || die + emake con || die fi } src_install () { if use gtk; then - dosbin magic + dosbin magic || die fi - dosbin ipmagic + dosbin ipmagic || die dodoc README HOWTO }