diff options
author | ormorph <roma251078@mail.ru> | 2022-10-18 06:49:47 +0200 |
---|---|---|
committer | ormorph <roma251078@mail.ru> | 2022-10-18 06:49:47 +0200 |
commit | f6f1346c2bc2531895b27077add6f0f3adea8d04 (patch) | |
tree | e12af19440c302a993452efb40c9e30c85883cfd /trinity-base/tde-i18n/tde-i18n-14.0.12.ebuild | |
parent | 2dd5194acb3ed913442d970adb429b7fe98ece85 (diff) | |
download | tde-packaging-gentoo-f6f1346c2bc2531895b27077add6f0f3adea8d04.tar.gz tde-packaging-gentoo-f6f1346c2bc2531895b27077add6f0f3adea8d04.zip |
Changing how tde-i18n is built
Signed-off-by: ormorph <roma251078@mail.ru>
Diffstat (limited to 'trinity-base/tde-i18n/tde-i18n-14.0.12.ebuild')
-rw-r--r-- | trinity-base/tde-i18n/tde-i18n-14.0.12.ebuild | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/trinity-base/tde-i18n/tde-i18n-14.0.12.ebuild b/trinity-base/tde-i18n/tde-i18n-14.0.12.ebuild index 23f50ba3..4b543ea4 100644 --- a/trinity-base/tde-i18n/tde-i18n-14.0.12.ebuild +++ b/trinity-base/tde-i18n/tde-i18n-14.0.12.ebuild @@ -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 } |