summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2009-08-16 08:47:55 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2009-08-16 08:47:55 +0000
commita654925cc0ce2d6c29f4a8b527ee659fd12b1ab9 (patch)
tree2e8d67d762137653d7203f8b4c0603744510feaa /x11-plugins/wmhdplop/wmhdplop-0.9.9.ebuild
parentMigrate to EAPI 2 in order to get rid of built_with_use for bug #261562. (diff)
downloadgentoo-2-a654925cc0ce2d6c29f4a8b527ee659fd12b1ab9.tar.gz
gentoo-2-a654925cc0ce2d6c29f4a8b527ee659fd12b1ab9.tar.bz2
gentoo-2-a654925cc0ce2d6c29f4a8b527ee659fd12b1ab9.zip
Migrate to EAPI 2 in order to get rid of built_with_use for bug #261562.
(Portage version: 2.2_rc38/cvs/Linux i686)
Diffstat (limited to 'x11-plugins/wmhdplop/wmhdplop-0.9.9.ebuild')
-rw-r--r--x11-plugins/wmhdplop/wmhdplop-0.9.9.ebuild25
1 files changed, 8 insertions, 17 deletions
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