Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 417173 | Differences between
and this patch

Collapse All | Expand All

(-)m17n-lib-1.6.3.ebuild (-16 / +24 lines)
Lines 13-37 Link Here
13
LICENSE="LGPL-2.1"
13
LICENSE="LGPL-2.1"
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86"
15
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86"
16
#IUSE="anthy gd ispell"
16
IUSE="anthy athena anthy bidi fontconfig freetype gd ispell libotf libxml2 X xft"
17
IUSE="gd X"
18
17
19
RDEPEND="
18
RDEPEND="
19
	anthy? ( app-i18n/anthy )
20
	ispell? ( app-text/ispell )
21
	libxml2? ( dev-libs/libxml2 )
20
	X? (
22
	X? (
21
		x11-libs/libXaw
23
		athena? ( x11-libs/libXaw )
22
		x11-libs/libXft
24
		bidi? ( dev-libs/fribidi )
23
		x11-libs/libX11
25
		fontconfig? ( media-libs/fontconfig )
26
		freetype? ( >=media-libs/freetype-2.1 )
24
		gd? ( media-libs/gd[png] )
27
		gd? ( media-libs/gd[png] )
25
		dev-libs/fribidi
28
		libotf? ( >=dev-libs/libotf-0.9.4 )
26
		>=media-libs/freetype-2.1
29
		xft? ( x11-libs/libXft )
27
		media-libs/fontconfig
30
		x11-libs/libX11
28
		>=dev-libs/libotf-0.9.4
29
	)
31
	)
30
	dev-libs/libxml2
31
	~dev-db/m17n-db-${PV}"
32
	~dev-db/m17n-db-${PV}"
33
# athena? ( x11-libs/libXaw )
34
# athena shoud be enabled to build m17n-edit properly when X is enabled.
35
32
# linguas_th? ( || ( app-i18n/libthai app-i18n/wordcut ) )
36
# linguas_th? ( || ( app-i18n/libthai app-i18n/wordcut ) )
33
# anthy? ( app-i18n/anthy )
37
#
34
# ispell? ( app-text/ispell )
35
38
36
DEPEND="${RDEPEND}
39
DEPEND="${RDEPEND}
37
	virtual/pkgconfig"
40
	virtual/pkgconfig"
Lines 39-56 Link Here
39
src_prepare() {
42
src_prepare() {
40
	epatch \
43
	epatch \
41
		"${FILESDIR}"/${PN}-1.6.2-gui.patch \
44
		"${FILESDIR}"/${PN}-1.6.2-gui.patch \
42
		"${FILESDIR}"/${PN}-1.6.3-parallel-make.patch
45
		"${FILESDIR}"/${PN}-1.6.3-parallel-make.patch \
46
		"${FILESDIR}"/${PN}-1.6.3-configure.patch
43
47
44
	eautoreconf
48
	eautoreconf
45
}
49
}
46
50
47
src_configure() {
51
src_configure() {
48
	local myconf=
52
	local myconf="$(use_with anthy) $(use_with ispell) $(use_with libxml2)"
49
53
50
	if use X; then
54
	if use X; then
51
		myconf+=" --enable-gui $(use_with gd)"
55
		myconf+=" --with-x --enable-gui $(use_with athena) $(use_with bidi fribidi)
56
$(use_with fontconfig) $(use_with freetype) $(use_with gd) $(use_with libotf)
57
$(use_with xft)"
52
	else
58
	else
53
		myconf+=" --disable-gui --without-gd"
59
		myconf+=" --without-x --disable-gui --without-athena --without-friidi
60
--without-fontconfig --without-freetype --without-gd --without-libotf
61
--without-xft"
54
	fi
62
	fi
55
63
56
	econf ${myconf} || die
64
	econf ${myconf} || die

Return to bug 417173