From a654925cc0ce2d6c29f4a8b527ee659fd12b1ab9 Mon Sep 17 00:00:00 2001 From: Petteri Räty Date: Sun, 16 Aug 2009 08:47:55 +0000 Subject: Migrate to EAPI 2 in order to get rid of built_with_use for bug #261562. (Portage version: 2.2_rc38/cvs/Linux i686) --- x11-plugins/wmhdplop/wmhdplop-0.9.9.ebuild | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) (limited to 'x11-plugins/wmhdplop/wmhdplop-0.9.9.ebuild') diff --git a/x11-plugins/wmhdplop/wmhdplop-0.9.9.ebuild b/x11-plugins/wmhdplop/wmhdplop-0.9.9.ebuild index a5c7a87606ae..c491ba9e94e1 100644 --- a/x11-plugins/wmhdplop/wmhdplop-0.9.9.ebuild +++ b/x11-plugins/wmhdplop/wmhdplop-0.9.9.ebuild @@ -1,6 +1,8 @@ -# Copyright 1999-2008 Gentoo Foundation +# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmhdplop/wmhdplop-0.9.9.ebuild,v 1.2 2008/06/28 06:59:44 maekke Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmhdplop/wmhdplop-0.9.9.ebuild,v 1.3 2009/08/16 08:47:55 betelgeuse Exp $ + +EAPI="2" inherit eutils multilib @@ -13,7 +15,7 @@ SLOT="0" KEYWORDS="~amd64 ~ppc x86" IUSE="gkrellm" -RDEPEND="media-libs/imlib2 +RDEPEND="media-libs/imlib2[X] x11-libs/libX11 x11-libs/libXext media-fonts/corefonts @@ -23,28 +25,17 @@ DEPEND="${RDEPEND} gkrellm? ( dev-util/pkgconfig >=app-admin/gkrellm-2 )" -pkg_setup() { - local fail="Re-emerge media-libs/imlib2 with USE X." - - if ! built_with_use media-libs/imlib2 X; then - eerror "${fail}" - die "${fail}" - fi -} - -src_unpack() { - unpack ${A} +src_prepare() { sed -i -e "s:-O3 -fomit-frame-pointer -ffast-math:${CFLAGS}:" "${S}"/configure } -src_compile() { +src_configure() { econf $(use_enable gkrellm) - emake || die "emake failed." } src_install() { emake DESTDIR="${D}" install || die "emake install failed." - dodoc AUTHORS ChangeLog NEWS README + dodoc AUTHORS ChangeLog NEWS README || die insinto /usr/$(get_libdir)/gkrellm2/plugins use gkrellm && doins gkhdplop.so -- cgit v1.2.3-65-gdbad