Index: wxperl-0.56.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-perl/wxperl/wxperl-0.56.ebuild,v retrieving revision 1.2 diff -u -r1.2 wxperl-0.56.ebuild --- wxperl-0.56.ebuild 20 Aug 2006 13:35:44 -0000 1.2 +++ wxperl-0.56.ebuild 15 Oct 2006 03:58:45 -0000 @@ -12,21 +12,22 @@ LICENSE="|| ( Artistic GPL-2 )" SLOT="0" -KEYWORDS="~x86 ~amd64" -IUSE="unicode" +KEYWORDS="~amd64 ~ia64 ~x86" +IUSE="" -DEPEND=">=x11-libs/wxGTK-2.6.2-r1 +DEPEND="=x11-libs/wxGTK-2.4* dev-perl/Alien-wxWidgets >=dev-lang/perl-5.8.4 >=virtual/perl-File-Spec-0.82" -RDEPEND="${DEPEND}" -src_compile() { - WX_GTK_VER="2.6" - if use unicode; then - need-wxwidgets unicode - else - need-wxwidgets gtk2 +pkg_setup() { + if ! built_with_use '=x11-libs/wxGTK-2.4*' unicode; then + die "$P depends on wxGTK-2.4* built with USE=unicode" fi +} + +src_compile() { + WX_GTK_VER="2.4" + need-wxwidgets unicode perl-module_src_compile } Index: wxperl-0.57.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-perl/wxperl/wxperl-0.57.ebuild,v retrieving revision 1.1 diff -u -r1.1 wxperl-0.57.ebuild --- wxperl-0.57.ebuild 4 Sep 2006 13:28:40 -0000 1.1 +++ wxperl-0.57.ebuild 15 Oct 2006 03:58:45 -0000 @@ -12,21 +12,22 @@ LICENSE="|| ( Artistic GPL-2 )" SLOT="0" -KEYWORDS="~x86 ~amd64" -IUSE="unicode" +KEYWORDS="~amd64 ~ia64 ~x86" +IUSE="" -DEPEND=">=x11-libs/wxGTK-2.6.2-r1 +DEPEND="=x11-libs/wxGTK-2.4* dev-perl/Alien-wxWidgets >=dev-lang/perl-5.8.4 >=virtual/perl-File-Spec-0.82" -RDEPEND="${DEPEND}" -src_compile() { - WX_GTK_VER="2.6" - if use unicode; then - need-wxwidgets unicode - else - need-wxwidgets gtk2 +pkg_setup() { + if ! built_with_use '=x11-libs/wxGTK-2.4*' unicode; then + die "$P depends on wxGTK-2.4* built with USE=unicode" fi +} + +src_compile() { + WX_GTK_VER="2.4" + need-wxwidgets unicode perl-module_src_compile }