--- sel-0.08.4.ebuild 2012-11-07 02:15:40.907918298 +0100 +++ sel-0.08.4-r1.ebuild 2012-11-07 03:30:18.057752072 +0100 @@ -2,6 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-util/sel/sel-0.08.4.ebuild,v 1.11 2012/10/29 07:16:32 pinkbyte Exp $ +EAPI=4 inherit toolchain-funcs DESCRIPTION="A filemanager for shell scripts" @@ -16,30 +17,14 @@ RDEPEND=">=sys-libs/ncurses-5.1" DEPEND="${RDEPEND}" -src_unpack () { - unpack ${A} - cd "${S}" - - sed -i -e "s:/usr/local/share/sel/help\.txt:/usr/share/sel/help\.txt:" \ - sel.c || die 'sed failed' -} - -doecho() { - echo "$@" - "$@" -} - src_compile() { - doecho $(tc-getCC) -o ${PN} \ - ${CFLAGS} ${LDFLAGS} \ - ${PN}.c -lncurses \ - || die "build failed" + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDLIBS="-lncurses" } src_install () { - dobin sel || die - doman sel.1 || die + dobin sel + doman sel.1 insinto /usr/share/sel - doins help.txt || die - dodoc README.GER || die + doins help.txt + dodoc README.GER }