diff options
author | Thomas Beierlein <tomjbe@gentoo.org> | 2022-08-29 14:02:58 +0200 |
---|---|---|
committer | Thomas Beierlein <tomjbe@gentoo.org> | 2022-08-29 14:03:29 +0200 |
commit | 3bf04c51cb976faec35dbecdbb99a544b9d2282c (patch) | |
tree | bbaf92f5cedcfb305d2041d74eca7812758ae7c5 /net-wireless | |
parent | dev-python/pypy-exe-bin: Add musl binpkgs (diff) | |
download | gentoo-3bf04c51cb976faec35dbecdbb99a544b9d2282c.tar.gz gentoo-3bf04c51cb976faec35dbecdbb99a544b9d2282c.tar.bz2 gentoo-3bf04c51cb976faec35dbecdbb99a544b9d2282c.zip |
net-wireless/gr-osmosdr: Fix build without python bindings
Closes: https://bugs.gentoo.org/865807
Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>
Diffstat (limited to 'net-wireless')
-rw-r--r-- | net-wireless/gr-osmosdr/files/gr-osmosdr-0.2.3_p20210128-fix-enable-python.patch | 15 | ||||
-rw-r--r-- | net-wireless/gr-osmosdr/gr-osmosdr-0.2.3_p20210128.ebuild | 6 |
2 files changed, 20 insertions, 1 deletions
diff --git a/net-wireless/gr-osmosdr/files/gr-osmosdr-0.2.3_p20210128-fix-enable-python.patch b/net-wireless/gr-osmosdr/files/gr-osmosdr-0.2.3_p20210128-fix-enable-python.patch new file mode 100644 index 000000000000..2bf79b1fe20e --- /dev/null +++ b/net-wireless/gr-osmosdr/files/gr-osmosdr-0.2.3_p20210128-fix-enable-python.patch @@ -0,0 +1,15 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 96a2c90..a3836f8 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -187,9 +187,7 @@ find_package(Doxygen) + + # Python + ########## +- +-find_package(PythonLibs 3) +-find_package(pybind11) ++include(GrPybind) + + GR_REGISTER_COMPONENT("Python support" ENABLE_PYTHON + PYTHONLIBS_FOUND diff --git a/net-wireless/gr-osmosdr/gr-osmosdr-0.2.3_p20210128.ebuild b/net-wireless/gr-osmosdr/gr-osmosdr-0.2.3_p20210128.ebuild index 518b27caa2a1..a481ca03c6f3 100644 --- a/net-wireless/gr-osmosdr/gr-osmosdr-0.2.3_p20210128.ebuild +++ b/net-wireless/gr-osmosdr/gr-osmosdr-0.2.3_p20210128.ebuild @@ -44,6 +44,10 @@ DEPEND="${RDEPEND} REQUIRED_USE="${PYTHON_REQUIRED_USE}" +PATCHES=( + "${FILESDIR}"/${P}-fix-enable-python.patch +) + src_configure() { local mycmakeargs=( -DENABLE_DEFAULT=OFF @@ -69,7 +73,7 @@ src_configure() { src_install() { cmake_src_install if use python; then - find "${D}" -name '*.py[oc]' -delete || die + find "${ED}" -name '*.py[oc]' -delete || die python_fix_shebang "${ED}"/usr/bin python_optimize fi |