multimode-1.4_p20140831-r1.ebuild 995 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. SRC_URI="https://dev.gentoo.org/~zerochaos/distfiles/${P}.tar.xz"
  18. KEYWORDS="~amd64 ~arm ~x86"
  19. fi
  20. DEPEND=">=net-wireless/gnuradio-3.7:=[grc,utils,${PYTHON_USEDEP}]
  21. >=net-wireless/gr-osmosdr-0.1.0:="
  22. RDEPEND="${DEPEND}"
  23. src_compile() {
  24. PYTHONPATH="${S}":"${PYTHONPATH}" emake
  25. }
  26. src_install() {
  27. newbin ${PN}.py ${PN}
  28. insinto $(python_get_sitedir)
  29. doins ${PN}_helper.py
  30. insinto /usr/share/${PN}
  31. doins ${PN}.grc
  32. python_fix_shebang "${ED}"/usr/bin
  33. }