diff options
author | Ryan Hill <dirtyepic@gentoo.org> | 2007-04-23 02:03:49 +0000 |
---|---|---|
committer | Ryan Hill <dirtyepic@gentoo.org> | 2007-04-23 02:03:49 +0000 |
commit | da91299e5559ed70479ddb45d206135e23230b8f (patch) | |
tree | 8061371c737f753301c8e230b02d0a18e169715a /media-gfx | |
parent | removing old ebuilds (diff) | |
download | gentoo-2-da91299e5559ed70479ddb45d206135e23230b8f.tar.gz gentoo-2-da91299e5559ed70479ddb45d206135e23230b8f.tar.bz2 gentoo-2-da91299e5559ed70479ddb45d206135e23230b8f.zip |
Fix wxGTK handling for bug #164152.
(Portage version: 2.1.2.4)
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/zphoto/ChangeLog | 8 | ||||
-rw-r--r-- | media-gfx/zphoto/zphoto-1.2-r1.ebuild | 22 | ||||
-rw-r--r-- | media-gfx/zphoto/zphoto-1.2-r2.ebuild | 23 |
3 files changed, 25 insertions, 28 deletions
diff --git a/media-gfx/zphoto/ChangeLog b/media-gfx/zphoto/ChangeLog index 7208a8570777..7f870a6030e9 100644 --- a/media-gfx/zphoto/ChangeLog +++ b/media-gfx/zphoto/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for media-gfx/zphoto -# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/zphoto/ChangeLog,v 1.17 2006/11/16 17:23:58 ticho Exp $ +# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/zphoto/ChangeLog,v 1.18 2007/04/23 02:03:49 dirtyepic Exp $ + + 23 Apr 2007; Ryan Hill <dirtyepic@gentoo.org> zphoto-1.2-r1.ebuild, + zphoto-1.2-r2.ebuild: + Fix wxGTK handling for bug #164152. 16 Nov 2006; Andrej Kacian <ticho@gentoo.org> zphoto-1.2-r2.ebuild: Stable on x86, bug #145894. diff --git a/media-gfx/zphoto/zphoto-1.2-r1.ebuild b/media-gfx/zphoto/zphoto-1.2-r1.ebuild index f067e011420e..57b1e7092b59 100644 --- a/media-gfx/zphoto/zphoto-1.2-r1.ebuild +++ b/media-gfx/zphoto/zphoto-1.2-r1.ebuild @@ -1,6 +1,8 @@ -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/zphoto/zphoto-1.2-r1.ebuild,v 1.5 2006/11/06 18:32:14 usata Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/zphoto/zphoto-1.2-r1.ebuild,v 1.6 2007/04/23 02:03:49 dirtyepic Exp $ + +inherit wxwidgets IUSE="wxwindows" @@ -16,23 +18,17 @@ DEPEND=">=media-libs/ming-0.2a || ( >=media-libs/imlib2-1.1.0 >=media-gfx/imagemagick-5.5.7 ) app-arch/zip >=dev-libs/popt-1.6.3 - wxwindows? ( >=x11-libs/wxGTK-2.4.2-r2 )" + wxwindows? ( =x11-libs/wxGTK-2.6* )" src_compile() { local myconf="--disable-avifile" if use wxwindows ; then - if has_version '>=x11-libs/wxGTK-2.6' ; then - wx_config="/usr/bin/wx-config-2.6" - sed -i -e 's@\($WXCONFIG --cflags\)@\1 --unicode=no@' \ - -e 's@\($WXCONFIG --libs\)@\1 --unicode=no@' \ - configure || die - sed -i -e 's@FALSE@false@g' wxzphoto.cpp || die - else - wx_config="/usr/bin/wxgtk2-2.4-config" - fi - myconf="--with-wx-config=$wx_config" + WX_GTK_VER="2.6" + need-wxwidgets gtk2 + myconf="--with-wx-config=${WX_CONFIG}" + sed -i -e 's@FALSE@false@g' wxzphoto.cpp || die else myconf="--disable-wx" fi diff --git a/media-gfx/zphoto/zphoto-1.2-r2.ebuild b/media-gfx/zphoto/zphoto-1.2-r2.ebuild index 09b9135f3c2f..0f1dfdfaecb8 100644 --- a/media-gfx/zphoto/zphoto-1.2-r2.ebuild +++ b/media-gfx/zphoto/zphoto-1.2-r2.ebuild @@ -1,6 +1,8 @@ -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/zphoto/zphoto-1.2-r2.ebuild,v 1.3 2006/11/16 17:23:58 ticho Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/zphoto/zphoto-1.2-r2.ebuild,v 1.4 2007/04/23 02:03:49 dirtyepic Exp $ + +inherit wxwidgets IUSE="wxwindows" @@ -16,26 +18,21 @@ DEPEND=">=media-libs/ming-0.2a || ( >=media-libs/imlib2-1.1.0 >=media-gfx/imagemagick-5.5.7 ) app-arch/zip >=dev-libs/popt-1.6.3 - wxwindows? ( >=x11-libs/wxGTK-2.4.2-r2 )" + wxwindows? ( =x11-libs/wxGTK-2.6* )" src_compile() { local myconf="--disable-avifile" if use wxwindows ; then - if has_version '>=x11-libs/wxGTK-2.6' ; then - wx_config="/usr/bin/wx-config-2.6" - sed -i -e 's@\($WXCONFIG --cflags\)@\1 --unicode=no@' \ - -e 's@\($WXCONFIG --libs\)@\1 --unicode=no@' \ - configure || die - sed -i -e 's@FALSE@false@g' wxzphoto.cpp || die - else - wx_config="/usr/bin/wxgtk2-2.4-config" - fi - myconf="--with-wx-config=$wx_config" + WX_GTK_VER="2.6" + need-wxwidgets gtk2 + myconf="--with-wx-config=${WX_CONFIG}" + sed -i -e 's@FALSE@false@g' wxzphoto.cpp || die else myconf="--disable-wx" fi + econf ${myconf} || die emake || die } |