copyq-2.8.1.ebuild 925 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit cmake-utils multilib
  5. DESCRIPTION="Clipboard manager with advanced features"
  6. HOMEPAGE="https://github.com/hluk/CopyQ"
  7. SRC_URI="https://github.com/hluk/CopyQ/archive/v${PV}.tar.gz -> ${P}.tar.gz"
  8. LICENSE="GPL-3"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
  11. IUSE="test webkit"
  12. RDEPEND="
  13. dev-qt/qtcore:5
  14. dev-qt/qtgui:5
  15. dev-qt/qtnetwork:5
  16. dev-qt/qtscript:5
  17. dev-qt/qtsvg:5
  18. dev-qt/qtwidgets:5
  19. x11-libs/libX11
  20. x11-libs/libXfixes
  21. x11-libs/libXtst
  22. test? ( dev-qt/qttest:5 )
  23. webkit? ( dev-qt/qtwebkit:5 )
  24. "
  25. DEPEND="${RDEPEND}
  26. dev-qt/linguist-tools:5
  27. "
  28. S=${WORKDIR}/CopyQ-${PV}
  29. src_configure() {
  30. local mycmakeargs=(
  31. -DPLUGIN_INSTALL_PREFIX="/usr/$(get_libdir)/${PN}/plugins"
  32. -DWITH_QT5=ON
  33. -DWITH_TESTS=$(usex test)
  34. -DWITH_WEBKIT=$(usex webkit)
  35. )
  36. cmake-utils_src_configure
  37. }