openhantek-20190904.ebuild 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Copyright 2020 Gentoo Authors
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=8
  4. inherit git-r3 cmake desktop
  5. DESCRIPTION="Digital Storage Osziloscope"
  6. HOMEPAGE="http://www.openhantek.org/"
  7. EGIT_REPO_URI="https://github.com/OpenHantek/openhantek"
  8. EGIT_BRANCH="master"
  9. EGIT_COMMIT="e7e0c7b8b12884b85d7e14f997fdf4013558e6a4"
  10. LICENSE="GPL-3"
  11. SLOT="0"
  12. IUSE="udev"
  13. DEPEND="
  14. sci-libs/fftw
  15. dev-libs/libusb
  16. dev-qt/qtopengl
  17. dev-qt/qtgui
  18. dev-qt/qtcore
  19. dev-qt/qtprintsupport
  20. "
  21. RDEPEND="${DEPEND} sci-electronics/electronics-menu"
  22. KEYWORDS="~amd64"
  23. S="${WORKDIR}"/${PN}-${PV}
  24. src_configure() {
  25. export PREFIX=/usr
  26. export CXX="/usr/bin/$(tc-getCXX)"
  27. export CC="/usr/bin/$(tc-getCC)"
  28. #ewarn "${CXX}"
  29. cmake_src_configure
  30. }
  31. src_install() {
  32. newicon ${PN}/res/images/openhantek.png openhantek.png
  33. #make_desktop_entry openhantek OpenHantek openhantek Electronics
  34. dodoc ${PN}/readme.md
  35. cmake_src_install
  36. }
  37. pkg_postinst() {
  38. echo
  39. elog "You will need the firmware for your DSO installed."
  40. elog "Visit http://www.openhantek.org/ for futher configuration instructions."
  41. echo
  42. }