Changing how tde-i18n is built

Signed-off-by: ormorph <roma251078@mail.ru>
pull/270/head
ormorph 2 years ago
parent 2dd5194acb
commit f6f1346c2b

@ -26,33 +26,25 @@ for X in ${TRINITY_LANGS} ; do
IUSE="${IUSE} l10n_${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 || die
LINGUAS="en"
find_lang() {
local lang
lang=${1}
LINGUAS+=" ${lang}"
}
src_prepare() {
trinity_l10n_for_each_locale_do run_phase src_prepare
eapply_user
trinity_l10n_for_each_locale_do find_lang
trinity-base-2_src_prepare
}
src_configure() {
local mycmakeargs=( -DBUILD_ALL=ON )
trinity_l10n_for_each_locale_do run_phase src_configure
}
src_compile() {
trinity_l10n_for_each_locale_do run_phase src_compile
trinity-base-2_src_configure
}
src_install() {
trinity_l10n_for_each_locale_do run_phase src_install
[[ "${LINGUAS}" == "en" ]] && return 0
trinity-base-2_src_install
}

@ -1,5 +1,5 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 2020 The Trinity Desktop Project
# Copyright 1999-2022 Gentoo Authors
# Copyright 2020-2022 The Trinity Desktop Project
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
@ -26,33 +26,25 @@ for X in ${TRINITY_LANGS} ; do
IUSE="${IUSE} l10n_${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 || die
LINGUAS="en"
find_lang() {
local lang
lang=${1}
LINGUAS+=" ${lang}"
}
src_prepare() {
trinity_l10n_for_each_locale_do run_phase src_prepare
eapply_user
trinity_l10n_for_each_locale_do find_lang
trinity-base-2_src_prepare
}
src_configure() {
local mycmakeargs=( -DBUILD_ALL=ON )
trinity_l10n_for_each_locale_do run_phase src_configure
}
src_compile() {
trinity_l10n_for_each_locale_do run_phase src_compile
trinity-base-2_src_configure
}
src_install() {
trinity_l10n_for_each_locale_do run_phase src_install
[[ "${LINGUAS}" == "en" ]] && return 0
trinity-base-2_src_install
}

Loading…
Cancel
Save