summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Farina <zerochaos@gentoo.org>2020-09-04 12:20:24 -0400
committerRick Farina <zerochaos@gentoo.org>2020-09-04 12:22:25 -0400
commit6257bd2dc42efa54fb359281a84314917f6527a1 (patch)
treea4a8958e7ac766fa2a45826fc049a6519aba0765 /net-wireless/gr-osmosdr
parentnet-wireless/gr-osmosdr: cmake-utils -> cmake (diff)
downloadgentoo-6257bd2dc42efa54fb359281a84314917f6527a1.tar.gz
gentoo-6257bd2dc42efa54fb359281a84314917f6527a1.tar.bz2
gentoo-6257bd2dc42efa54fb359281a84314917f6527a1.zip
net-wireless/gr-osmosdr: bug #727330
accepting fixes from Chris Mayo, thanks! Package-Manager: Portage-3.0.5, Repoman-3.0.1 Signed-off-by: Rick Farina <zerochaos@gentoo.org>
Diffstat (limited to 'net-wireless/gr-osmosdr')
-rw-r--r--net-wireless/gr-osmosdr/gr-osmosdr-0.2.2.ebuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/net-wireless/gr-osmosdr/gr-osmosdr-0.2.2.ebuild b/net-wireless/gr-osmosdr/gr-osmosdr-0.2.2.ebuild
index 9c632a04463c..af9ebaa516aa 100644
--- a/net-wireless/gr-osmosdr/gr-osmosdr-0.2.2.ebuild
+++ b/net-wireless/gr-osmosdr/gr-osmosdr-0.2.2.ebuild
@@ -38,6 +38,11 @@ DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+src_prepare() {
+ cmake_src_prepare
+ sed -i "s:\${GR_DOC_DIR}/\${CMAKE_PROJECT_NAME}:\${GR_DOC_DIR}/${PF}:" CMakeLists.txt || die
+}
+
src_configure() {
local mycmakeargs=(
-DENABLE_DEFAULT=OFF
@@ -63,8 +68,10 @@ src_configure() {
src_install() {
cmake_src_install
if use python; then
+ # Remove incorrectly byte-compiled Python files and replace
+ # https://github.com/gnuradio/gnuradio/issues/2944
+ find "${ED}"/usr/lib* -name "*.py[co]" -exec rm {} \; || die
python_fix_shebang "${ED}"/usr/bin
python_optimize
fi
- mv "${ED}/usr/share/doc/${PN}" "${ED}/usr/share/doc/${P}"
}