View | Details | Raw Unified
Collapse All | Expand All

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