multimode-1.00-r2.ebuild 972 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. PYTHON_COMPAT=( python2_7 )
  5. inherit python-single-r1
  6. DESCRIPTION="multimode radio decoder for rtl-sdr devices using gnuradio"
  7. HOMEPAGE="https://www.cgran.org/browser/projects/multimode/trunk"
  8. LICENSE="BSD"
  9. SLOT="0"
  10. IUSE=""
  11. if [[ ${PV} == "9999" ]] ; then
  12. ESVN_REPO_URI="https://www.cgran.org/svn/projects/multimode/trunk"
  13. inherit subversion
  14. KEYWORDS=""
  15. else
  16. SRC_URI="http://www.sbrac.org/files/${PN}-r${PV}.tar.gz"
  17. KEYWORDS="~amd64 ~arm ~x86"
  18. S="${WORKDIR}"
  19. fi
  20. DEPEND=""
  21. RDEPEND="${DEPEND}
  22. >=net-wireless/gr-osmosdr-0.0.1
  23. <net-wireless/gnuradio-3.7:=[grc,utils,${PYTHON_USEDEP}]
  24. >=net-wireless/rtl-sdr-0.5.0"
  25. src_compile() {
  26. PYTHONPATH="${S}":"${PYTHONPATH}" emake
  27. }
  28. src_install() {
  29. newbin ${PN}.py ${PN}
  30. insinto $(python_get_sitedir)
  31. doins ${PN}_helper.py
  32. insinto /usr/share/${PN}
  33. doins ${PN}.grc
  34. python_fix_shebang "${ED}"/usr/bin
  35. }