summaryrefslogtreecommitdiffstats
path: root/trinity-base/tde-i18n/tde-i18n-9999.ebuild
blob: 7821eb08c243d62465997cffd58330f359229ce1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Copyright 1999-2017 Gentoo Foundation
# Copyright 2020 The Trinity Desktop Project
# Distributed under the terms of the GNU General Public License v2

EAPI="7"
TRINITY_MODULE_NAME="tde-i18n"

inherit trinity-base-2 cmake-utils l10n

set-trinityver

DESCRIPTION="Trinity internationalization package"
HOMEPAGE="http://www.trinitydesktop.org/"
LICENSE="|| ( GPL-2 GPL-3 )"

SLOT="${TRINITY_VER}"

DEPEND="=trinity-base/tdelibs-${PV}"
RDEPEND="${DEPEND}"

PLOCALES="af ar az be bg bn br bs ca cs csb cy da de el en_GB eo es et
eu fa fi fr fy ga gl he hi hr hu is it ja kk km ko lt lv mk mn ms
nb nds nl nn pa pl pt pt_BR ro ru rw se sk sl sr sr@Latn ss sv ta te
tg th tr uk uz uz@cyrillic vi wa zh_CN zh_TW"

for X in ${LANGS} ; do
	IUSE="${IUSE} linguas_${X}"
done

run_phase() {
	local lang dir phase;
	phase=$1
	lang=$2

	dir="tde-i18n-$lang"
	pushd "$S/$dir" || die "No such dir: $dir"
	CMAKE_USE_DIR="${S}/${dir}"
	BUILD_DIR="${WORKDIR}/${dir}-build"
	trinity-base-2_${phase}
	popd
}

src_prepare() {
	l10n_find_plocales_changes "${S}" "${PN}-" ""
	l10n_for_each_locale_do run_phase src_prepare
}

src_configure() {
	mycmakeargs=( -DBUILD_ALL=ON )
	l10n_for_each_locale_do run_phase src_configure
}

src_compile() {
	l10n_for_each_locale_do run_phase src_compile
}

src_install() {
	l10n_for_each_locale_do run_phase src_install
}