commit:     3bf04c51cb976faec35dbecdbb99a544b9d2282c
Author:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 29 12:02:58 2022 +0000
Commit:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
CommitDate: Mon Aug 29 12:03:29 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3bf04c51

net-wireless/gr-osmosdr: Fix build without python bindings

Closes: https://bugs.gentoo.org/865807
Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org>

 .../gr-osmosdr-0.2.3_p20210128-fix-enable-python.patch    | 15 +++++++++++++++
 net-wireless/gr-osmosdr/gr-osmosdr-0.2.3_p20210128.ebuild |  6 +++++-
 2 files changed, 20 insertions(+), 1 deletion(-)

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

Reply via email to