mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-17 04:10:58 +02:00
soapyrtlsdr: hmm, this looks like it almost works
This commit is contained in:
parent
18e549271a
commit
d414ddcd64
2 changed files with 67 additions and 2 deletions
64
net-wireless/soapyrtlsdr/soapyrtlsdr-9999.ebuild
Normal file
64
net-wireless/soapyrtlsdr/soapyrtlsdr-9999.ebuild
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
|
||||
|
||||
inherit cmake-utils git-r3 python-r1
|
||||
|
||||
DESCRIPTION="vendor and platform neutral SDR support library"
|
||||
HOMEPAGE="https://github.com/pothosware/SoapyRTLSDR"
|
||||
EGIT_REPO_URI="https://github.com/pothosware/SoapyRTLSDR.git"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
|
||||
IUSE="python"
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
RDEPEND="python? ( ${PYTHON_DEPS} )
|
||||
net-wireless/soapysdr
|
||||
net-wireless/rtl-sdr"
|
||||
DEPEND="${RDEPEND}
|
||||
python? ( dev-lang/swig:0 )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
use python && python_copy_sources
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
configuration() {
|
||||
local mycmakeargs=(
|
||||
-DPYTHON_BASENAME="-${EPYTHON}"
|
||||
-DPYTHON_SUFFIX="-${EPYTHON}"
|
||||
$(cmake-utils_use_enable python PYTHON)
|
||||
)
|
||||
#if python_is_python3; then
|
||||
#mycmakeargs+=( -DBUILD_PYTHON3=ON )
|
||||
#else
|
||||
#mycmakeargs+=( -DBUILD_PYTHON3=OFF )
|
||||
#fi
|
||||
|
||||
CMAKE_USE_DIR="${BUILD_DIR}" cmake-utils_src_configure
|
||||
}
|
||||
use python && python_foreach_impl configuration || configuration
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
compilation() {
|
||||
CMAKE_USE_DIR="${BUILD_DIR}" cmake-utils_src_make
|
||||
}
|
||||
use python && python_foreach_impl compilation || compilation
|
||||
}
|
||||
|
||||
src_install() {
|
||||
installation() {
|
||||
CMAKE_USE_DIR="${BUILD_DIR}" cmake-utils_src_install DESTDIR="${D}"
|
||||
use python && python_optimize
|
||||
}
|
||||
use python && python_foreach_impl installation || installation
|
||||
}
|
||||
|
|
@ -18,14 +18,15 @@ LICENSE="Boost-1.0"
|
|||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
|
||||
IUSE="hackrf python"
|
||||
IUSE="hackrf python rtlsdr"
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
RDEPEND="python? ( ${PYTHON_DEPS} )"
|
||||
DEPEND="${RDEPEND}
|
||||
python? ( dev-lang/swig:0 )
|
||||
"
|
||||
PDEPEND="hackrf? ( net-wireless/soapyhackrf )"
|
||||
PDEPEND="hackrf? ( net-wireless/soapyhackrf )
|
||||
rtlsdr? ( net-wireless/soapyrtlsdr)"
|
||||
|
||||
src_prepare() {
|
||||
use python && python_copy_sources
|
||||
|
|
|
|||
Loading…
Reference in a new issue