sqlitebrowser-3.8.0-r1.ebuild 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. CMAKE_MAKEFILE_GENERATOR=ninja
  5. inherit eutils cmake-utils
  6. DESCRIPTION="SQLite Database Browser"
  7. HOMEPAGE="http://sqlitebrowser.org"
  8. SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
  9. LICENSE="GPL-3 MPL-2.0"
  10. SLOT="0"
  11. KEYWORDS="amd64 x86"
  12. IUSE="qt5 test"
  13. RDEPEND="
  14. dev-cpp/antlr-cpp:2
  15. dev-db/sqlite:3
  16. dev-libs/qcustomplot[qt5=]
  17. x11-libs/qscintilla:=
  18. !qt5? (
  19. dev-qt/qtcore:4
  20. dev-qt/qtgui:4
  21. )
  22. qt5? (
  23. dev-qt/qtnetwork:5
  24. dev-qt/qttest:5
  25. dev-qt/qtwidgets:5
  26. )"
  27. DEPEND="${RDEPEND}
  28. qt5? ( dev-qt/linguist-tools:5 )
  29. "
  30. PATCHES=( "${FILESDIR}"/${PN}-3.7.0-unbundle.patch )
  31. src_prepare() {
  32. # https://github.com/qingfengxia/qhexedit still bundled
  33. # x11-libs/qscintilla[qt4?,qt5?] still bundled
  34. find libs/{antlr-2.7.7,qcustomplot-source} -delete || die
  35. cmake-utils_src_prepare
  36. }
  37. src_configure() {
  38. local mycmakeargs=(
  39. $(cmake-utils_use_use qt5)
  40. $(cmake-utils_use_enable test TESTING)
  41. )
  42. cmake-utils_src_configure
  43. }
  44. src_install() {
  45. cmake-utils_src_install
  46. doicon images/sqlitebrowser.svg
  47. }