--- /usr/portage/dev-perl/Alien-wxWidgets/Alien-wxWidgets-0.30.ebuild 2007-03-19 10:52:29.000000000 -0400 +++ /usr/local/portage/dev-perl/Alien-wxWidgets/Alien-wxWidgets-0.30-r1.ebuild 2007-03-20 14:04:25.000000000 -0400 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-perl/Alien-wxWidgets/Alien-wxWidgets-0.30.ebuild,v 1.1 2007/03/19 14:52:29 yuval Exp $ -inherit perl-module +inherit perl-module eutils wxwidgets MY_P=Alien-wxWidgets-${PV} S=${WORKDIR}/${MY_P} @@ -13,7 +13,7 @@ SLOT="0" LICENSE="|| ( Artistic GPL-2 )" KEYWORDS="~amd64 ~ia64 ~x86" -IUSE="" +IUSE="unicode" SRC_TEST="do" @@ -24,6 +24,17 @@ perl-module_src_prep() { perlinfo + + #always prefer wxGTK-2.6 + if has_version =x11-libs/wxGTK-2.6*; then + WX_GTK_VER="2.6" + fi + + if use unicode; then + need-wxwidgets unicode + else + need-wxwidgets gtk2 + fi echo no | perl Build.PL --installdirs=vendor \ --destdir=${D} \ --libdoc= || die "perl Build.PL has failed!"