# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-portage/ufed/ufed-0.40-r6.ebuild,v 1.11 2007/05/11 01:49:50 kumba Exp $ inherit eutils DESCRIPTION="Gentoo Linux USE flags editor" HOMEPAGE="http://www.gentoo.org/" SRC_URI="mirror://gentoo/${P}.tar.bz2 http://dev.gentoo.org/~truedfx/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd" IUSE="" DEPEND="sys-libs/ncurses" RDEPEND="${DEPEND} dev-lang/perl" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/${P}-useorder.patch epatch "${FILESDIR}"/${P}-source.patch epatch "${FILESDIR}"/${P}-comments.patch epatch "${FILESDIR}"/${P}-masked.patch epatch "${FILESDIR}"/${P}-packageusemask.patch } src_compile() { ./configure || die "configure failed" emake || die "make failed" } src_install() { newsbin ufed.pl ufed || die doman ufed.8 insinto /usr/lib/ufed doins *.pm || die exeinto /usr/lib/ufed doexe ufed-curses || die }