diff options
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 } |