diff -ru a/rdate-1.4-r3.ebuild b/rdate-1.4-r3.ebuild --- a/rdate-1.4-r3.ebuild 2009-09-23 20:06:50.000000000 +0000 +++ b/rdate-1.4-r3.ebuild 2010-08-29 22:52:55.455002396 +0000 @@ -2,7 +2,9 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-misc/rdate/rdate-1.4-r3.ebuild,v 1.13 2009/09/23 19:43:36 patrick Exp $ -inherit flag-o-matic +EAPI="2" + +inherit flag-o-matic toolchain-funcs DESCRIPTION="use TCP or UDP to retrieve the current time of another machine" HOMEPAGE="http://www.apps.ietf.org/rfc/rfc868.html" @@ -15,13 +17,22 @@ DEPEND="" +src_prepare() { + sed -i \ + -e '/^CFLAGS=/d' \ + -e '/^rdate: /,+1d' \ + -e '/\tinstall/s:\([^ ]\+\)$:$(DESTDIR)&:' \ + Makefile +} + src_compile() { use ipv6 && append-flags "-DINET6" - emake RCFLAGS="${CFLAGS}" || die "emake failed" + tc-export CC + emake || die "emake failed" } src_install(){ - emake -j1 prefix="${D}/usr" install || die "make install failed" + emake DESTDIR="${D}" install || die "make install failed" newinitd "${FILESDIR}"/rdate-initd-1.4-r3 rdate newconfd "${FILESDIR}"/rdate-confd rdate }