# $Header: /usr/local/portage/app-misc/qmenu/qmenu-10.ebuild,v 1.03 2009/10/28 nocrash $ inherit eutils DESCRIPTION="A command line menu" HOMEPAGE="http://sourceforge.net/projects/qmenu/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="GPL" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="<=sys-devel/gcc-4.1.2" RDEPEND="${DEPEND}" pkg_setup() { if [ "$(gcc-major-version)" -eq "4" -a "$(gcc-minor-version)" -gt "1" ]; then eerror "qmenu requires gcc-4.1 in order to build and work correctly" eerror "it was tested to build with <=sys-devel/gcc-4.1.2 ." eerror "please compile it switching to native compiler." die "please compile it switching to gcc-4.1 or gcc-3" fi } src_compile() { econf || die "econf failed" emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" }