--- poedit-1.2.5.ebuild 2004-09-05 04:36:56.000000000 +0200 +++ poedit-1.3.0.ebuild 2004-09-06 20:54:52.000000000 +0200 @@ -4,33 +4,33 @@ inherit eutils kde wxwidgets -IUSE="gtk2 unicode" +IUSE="spell gtk2 unicode" DESCRIPTION="Cross-platform gettext catalogs (.po files) editor." -SRC_URI="mirror://sourceforge/poedit/${P}.tar.gz - mirror://gentoo/${P}-db4-compilation.patch" +SRC_URI="mirror://sourceforge/poedit/${P}.tar.gz" HOMEPAGE="http://poedit.sourceforge.net/" SLOT="0" -LICENSE="as-is" +LICENSE="MIT" KEYWORDS="~x86 ~sparc" DEPEND=">=x11-libs/wxGTK-2.4.2-r2 app-arch/zip - >=sys-libs/db-3" - -src_unpack() { - unpack ${A} || die "Failed to unpack ${A}" - cd ${S} || die "Failed to cd ${S}" - epatch ${DISTDIR}/${P}-db4-compilation.patch -} + >=sys-libs/db-3 + spell? ( >=app-text/gtkspell-2.0.0 )" pkg_setup() { if use unicode && ! use gtk2; then die "You must put gtk2 in your USE if you want unicode." fi + if use spell && ! use gtk2; then + die "You must put gtk2 in your USE if you want spellchecking." + fi } src_compile() { + local myconf + use spell || myconf="${myconf} --disable-spellchecking" + if use unicode ; then need-wxwidgets unicode || die "You need to emerge wxGTK with unicode in your USE" elif ! use gtk2 ; then @@ -40,7 +40,7 @@ fi #Maybe WX_CONFIG_NAME should be added to wxwidgets.eclass export WX_CONFIG_NAME=${WX_CONFIG} - econf || die + econf ${myconf} || die emake || die }