Trinity Desktop Environment Packaging - Gentoo ebuilds
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.3KB

  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Id$
  4. EAPI="5"
  5. TRINITY_MODULE_NAME="tde-i18n"
  6. inherit trinity-base cmake-utils l10n
  7. set-trinityver
  8. DESCRIPTION="Trinity internationalization package"
  9. HOMEPAGE="http://www.trinitydesktop.org/"
  10. LICENSE="GPL-2"
  11. SLOT="${TRINITY_VER}"
  12. KEYWORDS=""
  13. IUSE=""
  14. DEPEND=">=trinity-base/tdelibs-${PV}:${SLOT}"
  15. RDEPEND="${DEPEND}"
  16. PLOCALES="af ar az be bg bn br bs ca cs csb cy da de el en_GB eo es et
  17. eu fa fi fr fy ga gl he hi hr hu is it ja kk km ko lt lv mk mn ms
  18. nb nds nl nn pa pl pt pt_BR ro ru rw se sk sl sr sr@Latn ss sv ta te
  19. tg th tr uk uz uz@cyrillic vi wa zh_CN zh_TW"
  20. for X in ${LANGS} ; do
  21. IUSE="${IUSE} linguas_${X}"
  22. done
  23. run_phase() {
  24. local lang dir phase;
  25. phase=$1
  26. lang=$2
  27. dir="tde-i18n-$lang"
  28. pushd "$S/$dir" || die "No such dir: $dir"
  29. CMAKE_USE_DIR="${S}/${dir}"
  30. BUILD_DIR="${WORKDIR}/${dir}-build"
  31. trinity-base_${phase}
  32. popd
  33. }
  34. src_prepare() {
  35. l10n_find_plocales_changes "${S}" "${PN}-" ""
  36. l10n_for_each_locale_do run_phase src_prepare
  37. }
  38. src_configure() {
  39. mycmakeargs=( -DBUILD_ALL=ON )
  40. l10n_for_each_locale_do run_phase src_configure
  41. }
  42. src_compile() {
  43. l10n_for_each_locale_do run_phase src_compile
  44. }
  45. src_install() {
  46. l10n_for_each_locale_do run_phase src_install
  47. }