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

Collapse All | Expand All

(-)/var/repositories/gentoo/media-gfx/gwenview/gwenview-1.3.1-r1.ebuild (-1 / +32 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2006 Gentoo Foundation
1
# Copyright 1999-2006 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/media-gfx/gwenview/gwenview-1.3.1-r1.ebuild,v 1.4 2006/05/31 13:19:41 flameeyes Exp $
3
# $Header: $
4
4
5
inherit kde
5
inherit kde
6
6
Lines 23-34 Link Here
23
23
24
need-kde 3
24
need-kde 3
25
25
26
I18N="${PN}-i18n-${PV}"
27
28
LANGS="ar az br ca cs cy da de el et fo fr ga gl he hi hu is it ja ko lt
29
nb nl nso pa pl pt_BR ro ru sr@Latn ta tr uk ven xh zh_CN zh_TW zu"
30
31
LANGS_DOC="da de et fr it nl pt_BR ru"
32
33
for X in ${LANGS}; do
34
	IUSE="${IUSE} linguas_${X}"
35
done
36
26
pkg_setup(){
37
pkg_setup(){
27
	if use kipi ; then
38
	if use kipi ; then
28
		slot_rebuild "media-plugins/kipi-plugins" && die
39
		slot_rebuild "media-plugins/kipi-plugins" && die
29
	fi
40
	fi
30
}
41
}
31
42
43
src_unpack() {
44
	kde_src_unpack
45
46
	if [ -d "${WORKDIR}/${I18N}" ]; then
47
		cd "${WORKDIR}/${I18N}"
48
		for X in ${LANGS}; do
49
			use linguas_${X} || rm -rf "${X}"
50
		done
51
52
		MAKE_DOC=$(echo $(echo "${LINGUAS} ${LANGS_DOC}" | tr ' ' '\n' | \
53
			sort | uniq -d))
54
		[[ -n ${MAKE_DOC} ]] && [[ -n ${DOC_DIR_SUFFIX} ]] && \
55
			MAKE_DOC=$(echo "${MAKE_DOC}" | tr '\n' ' ') && \
56
			MAKE_DOC="${MAKE_DOC// /${DOC_DIR_SUFFIX} }"
57
		sed -i -e "s:^SUBDIRS =.*:SUBDIRS = ${MAKE_DOC}:" \
58
			"${KDE_S}/doc/Makefile.am" || die "sed for locale failed"
59
		rm -f configure
60
	fi
61
}
62
32
src_compile() {
63
src_compile() {
33
	local myconf="$(use_enable kipi)"
64
	local myconf="$(use_enable kipi)"
34
	kde_src_compile myconf configure
65
	kde_src_compile myconf configure

Return to bug 189113