# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils wxwidgets DESCRIPTION="Cross-platform gettext catalogs (.po files) editor." SRC_URI="mirror://sourceforge/poedit/${P}.tar.gz" HOMEPAGE="http://poedit.sourceforge.net/" SLOT="0" LICENSE="MIT" KEYWORDS="~amd64 ~x86" IUSE="spell gtk2 unicode" DEPEND=">x11-libs/wxGTK-2.6 app-arch/zip >=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() { WX_GTK_VER="2.6" 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 need-wxwidgets gtk || die "You need to emerge wxGTK with gtk in your USE" else need-wxwidgets gtk2 || die "You need to emerge wxGTK with gtk2 in your USE" fi econf ${myconf} \ --with-wx-config=${WX_CONFIG} \ --with-wxbase-config=${WX_CONFIG}|| die emake || die einfo ${myconf} } src_install () { make DESTDIR=${D} install || die insinto /usr/share/applications ; doins ${FILESDIR}/poedit.desktop mv ${S}/logo.xcf ${S}/poedit.xcf insinto /usr/share/pixmaps ; doins ${S}/poedit.xcf dodoc AUTHORS COPYING NEWS README TODO }