Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 63038
Collapse All | Expand All

(-)poedit-1.2.5.ebuild (-12 / +12 lines)
Lines 4-36 Link Here
4
4
5
inherit eutils kde wxwidgets
5
inherit eutils kde wxwidgets
6
6
7
IUSE="gtk2 unicode"
7
IUSE="spell gtk2 unicode"
8
DESCRIPTION="Cross-platform gettext catalogs (.po files) editor."
8
DESCRIPTION="Cross-platform gettext catalogs (.po files) editor."
9
SRC_URI="mirror://sourceforge/poedit/${P}.tar.gz
9
SRC_URI="mirror://sourceforge/poedit/${P}.tar.gz"
10
	mirror://gentoo/${P}-db4-compilation.patch"
11
HOMEPAGE="http://poedit.sourceforge.net/"
10
HOMEPAGE="http://poedit.sourceforge.net/"
12
11
13
SLOT="0"
12
SLOT="0"
14
LICENSE="as-is"
13
LICENSE="MIT"
15
KEYWORDS="~x86 ~sparc"
14
KEYWORDS="~x86 ~sparc"
16
15
17
DEPEND=">=x11-libs/wxGTK-2.4.2-r2
16
DEPEND=">=x11-libs/wxGTK-2.4.2-r2
18
	app-arch/zip
17
	app-arch/zip
19
	>=sys-libs/db-3"
18
	>=sys-libs/db-3
20
19
	spell? ( >=app-text/gtkspell-2.0.0 )"
21
src_unpack() {
22
	unpack ${A} || die "Failed to unpack ${A}"
23
	cd ${S} || die "Failed to cd ${S}"
24
	epatch ${DISTDIR}/${P}-db4-compilation.patch
25
}
26
20
27
pkg_setup() {
21
pkg_setup() {
28
	if use unicode && ! use gtk2; then
22
	if use unicode && ! use gtk2; then
29
		die "You must put gtk2 in your USE if you want unicode."
23
		die "You must put gtk2 in your USE if you want unicode."
30
	fi
24
	fi
25
	if use spell && ! use gtk2; then
26
		die "You must put gtk2 in your USE if you want spellchecking."
27
	fi
31
}
28
}
32
29
33
src_compile() {
30
src_compile() {
31
	local myconf
32
	use spell || myconf="${myconf} --disable-spellchecking"
33
34
	if use unicode ; then
34
	if use unicode ; then
35
		need-wxwidgets unicode || die "You need to emerge wxGTK with unicode in your USE"
35
		need-wxwidgets unicode || die "You need to emerge wxGTK with unicode in your USE"
36
	elif ! use gtk2 ; then
36
	elif ! use gtk2 ; then
Lines 40-46 Link Here
40
	fi
40
	fi
41
	#Maybe WX_CONFIG_NAME should be added to wxwidgets.eclass
41
	#Maybe WX_CONFIG_NAME should be added to wxwidgets.eclass
42
	export WX_CONFIG_NAME=${WX_CONFIG}
42
	export WX_CONFIG_NAME=${WX_CONFIG}
43
	econf || die
43
	econf ${myconf} || die
44
	emake || die
44
	emake || die
45
}
45
}
46
46

Return to bug 63038