libmirisdr-9999.ebuild 633 B

123456789101112131415161718192021222324252627282930
  1. # Copyright 1999-2021 Gentoo Authors
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=8
  4. inherit cmake git-r3
  5. EGIT_REPO_URI="https://github.com/f4exb/libmirisdr-4/"
  6. DESCRIPTION="Software for the Mirics MSi2500 + MSi001 SDR platform"
  7. HOMEPAGE="https://github.com/f4exb/libmirisdr-4/"
  8. LICENSE="GPL-2"
  9. SLOT="0/${PV}"
  10. IUSE="doc static-libs"
  11. KEYWORDS="~x86 ~amd64"
  12. RDEPEND="virtual/libusb:1"
  13. DEPEND="${RDEPEND}"
  14. BDEPEND="virtual/pkgconfig"
  15. src_configure() {
  16. CMAKE_BUILD_TYPE=Release
  17. cmake_src_configure
  18. }
  19. src_install() {
  20. cmake_src_install
  21. use static-libs || rm -f "${ED}"/usr/$(get_libdir)/libmirisdr.a
  22. }