qtchooser-0_p20151008.ebuild 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit qmake-utils toolchain-funcs
  5. DESCRIPTION="Qt4/Qt5 version chooser"
  6. HOMEPAGE="https://code.qt.io/cgit/qt/qtchooser.git/"
  7. SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${P}.tar.xz"
  8. LICENSE="|| ( LGPL-2.1 GPL-3 )"
  9. SLOT="0"
  10. KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
  11. IUSE="test"
  12. DEPEND="test? (
  13. dev-qt/qtcore:5
  14. dev-qt/qttest:5
  15. )"
  16. RDEPEND="
  17. !<dev-qt/assistant-4.8.6:4
  18. !<dev-qt/designer-4.8.6:4
  19. !<dev-qt/linguist-4.8.6:4
  20. !<dev-qt/pixeltool-4.8.6:4
  21. !<dev-qt/qdbusviewer-4.8.6:4
  22. !<dev-qt/qt3support-4.8.6:4
  23. !<dev-qt/qtbearer-4.8.6:4
  24. !<dev-qt/qtcore-4.8.6:4
  25. !<dev-qt/qtdbus-4.8.6:4
  26. !<dev-qt/qtdeclarative-4.8.6:4
  27. !<dev-qt/qtdemo-4.8.6:4
  28. !<dev-qt/qtgui-4.8.6:4
  29. !<dev-qt/qthelp-4.8.6:4
  30. !<dev-qt/qtmultimedia-4.8.6:4
  31. !<dev-qt/qtopengl-4.8.6:4
  32. !<dev-qt/qtopenvg-4.8.6:4
  33. !<dev-qt/qtphonon-4.8.6:4
  34. !<dev-qt/qtscript-4.8.6:4
  35. !<dev-qt/qtsql-4.8.6:4
  36. !<dev-qt/qtsvg-4.8.6:4
  37. !<dev-qt/qttest-4.8.6:4
  38. !<dev-qt/qtwebkit-4.8.6:4
  39. !<dev-qt/qtxmlpatterns-4.8.6:4
  40. "
  41. qtchooser_make() {
  42. emake \
  43. CXX="$(tc-getCXX)" \
  44. LFLAGS="${LDFLAGS}" \
  45. prefix="${EPREFIX}/usr" \
  46. "$@"
  47. }
  48. src_compile() {
  49. qtchooser_make
  50. }
  51. src_test() {
  52. pushd tests/auto >/dev/null || die
  53. eqmake5
  54. popd >/dev/null || die
  55. qtchooser_make check
  56. }
  57. src_install() {
  58. qtchooser_make INSTALL_ROOT="${D}" install
  59. keepdir /etc/xdg/qtchooser
  60. # TODO: bash and zsh completion
  61. # newbashcomp scripts/${PN}.bash ${PN}
  62. }