linguist-tools-5.6.2.ebuild 675 B

123456789101112131415161718192021222324252627282930313233343536
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. QT5_MODULE="qttools"
  5. inherit qt5-build
  6. DESCRIPTION="Tools for working with Qt translation data files"
  7. if [[ ${QT5_BUILD_TYPE} == release ]]; then
  8. KEYWORDS="amd64 arm ~arm64 hppa ppc ppc64 x86"
  9. fi
  10. IUSE="qml"
  11. DEPEND="
  12. ~dev-qt/qtcore-${PV}
  13. ~dev-qt/qtxml-${PV}
  14. qml? ( ~dev-qt/qtdeclarative-${PV} )
  15. "
  16. RDEPEND="${DEPEND}"
  17. QT5_TARGET_SUBDIRS=(
  18. src/linguist
  19. )
  20. src_prepare() {
  21. sed -i -e '/SUBDIRS += linguist/d' \
  22. src/linguist/linguist.pro || die
  23. qt_use_disable_mod qml qmldevtools-private \
  24. src/linguist/lupdate/lupdate.pro
  25. qt5-build_src_prepare
  26. }