summaryrefslogtreecommitdiff
path: root/eclass/kde-l10n.eclass
blob: 2974c89087d29126c7b6b1c1936744a21292b97a (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
# Copyright 2004-2013 Sabayon
# Distributed under the terms of the GNU General Public License v2
# $

inherit kde4-base

MY_LANG="${PN/kde-l10n-/}"

# export all the available functions here
EXPORT_FUNCTIONS src_prepare src_configure

L10N_NAME="${L10N_NAME:-${MY_LANG}}"
DESCRIPTION="KDE4 ${L10N_NAME} localization package"
HOMEPAGE="http://www.kde.org/"
LICENSE="GPL-2"

KEYWORDS="~amd64 ~arm ~x86"
DEPEND=">=sys-devel/gettext-0.15"
RDEPEND=""
IUSE="+handbook"

URI_BASE="${SRC_URI/-${MY_LANG}-${PV}.tar.xz/}"
SRC_URI="${SRC_URI} ${URI_BASE}/${PN}-${PV}.tar.xz"

kde-l10n_src_prepare() {
    # override kde4-base_src_prepare which
    # fails at enable_selected_doc_linguas
    base_src_prepare
}

kde-l10n_src_configure() {
    mycmakeargs="${mycmakeargs}
        $(cmake-utils_use_build handbook docs)"
    kde4-base_src_configure
}