diff options
Diffstat (limited to 'trinity-apps')
-rw-r--r-- | trinity-apps/koffice-i18n/koffice-i18n-9999.ebuild | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/trinity-apps/koffice-i18n/koffice-i18n-9999.ebuild b/trinity-apps/koffice-i18n/koffice-i18n-9999.ebuild index 783a5f38..f3b7f5f8 100644 --- a/trinity-apps/koffice-i18n/koffice-i18n-9999.ebuild +++ b/trinity-apps/koffice-i18n/koffice-i18n-9999.ebuild @@ -1,11 +1,10 @@ -# Copyright 1999-2021 Gentoo Authors -# Copyright 2021 The Trinity Desktop Project +# Copyright 1999-2022 Gentoo Authors +# Copyright 2021-2022 The Trinity Desktop Project # Distributed under the terms of the GNU General Public License v2 EAPI="8" TRINITY_MODULE_TYPE="applications/office" -TRINITY_BUILD_ADMIN="yes" inherit trinity-base-2 @@ -32,30 +31,25 @@ DEPEND=" " RDEPEND="${DEPEND}" -run_phase() { - local lang dir phase; - phase=${1} - lang=${2} +LINGUAS="en" - dir="koffice-i18n-${lang}" - pushd "${S}/${dir}" || die "No such dir: ${dir}" - trinity-base-2_${phase} - popd +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() { - trinity_l10n_for_each_locale_do run_phase src_configure -} - -src_compile() { - trinity_l10n_for_each_locale_do run_phase src_compile + local mycmakeargs=( -DBUILD_ALL=ON ) + 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 } |