mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-19 21:31:10 +02:00
op25: fix https://github.com/pentoo/pentoo-overlay/issues/559 paritally. We can't test it becasue gunardio 3.8 is not in the tree
This commit is contained in:
parent
e53e1f4a60
commit
732394ff8e
3 changed files with 68 additions and 3 deletions
1
net-wireless/op25/Manifest
Normal file
1
net-wireless/op25/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST op25-20200418.tar.gz 765812 BLAKE2B 9f63fcc4dd71430bd4c21083474eedecde3b1a314594ab0fb4d86eaa407aab14b92b8557a4be99ef993855d70be87f9f46372d6ecc57f26a1f216b655d3ec7bd SHA512 b05750e0ee5a20f00aaba8fd47dcf0e0cb43953bca2bb17e4f2e55782f5e6fdcc210f295b6012cee625b4b5aae30cb1a9965d726b723fccd6cd4577a82381644
|
||||
64
net-wireless/op25/op25-20200418.ebuild
Normal file
64
net-wireless/op25/op25-20200418.ebuild
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit cmake python-single-r1 flag-o-matic
|
||||
|
||||
DESCRIPTION="software-defined analyzer for APCO P25 signals"
|
||||
HOMEPAGE="http://osmocom.org/projects/op25/wiki"
|
||||
#inherit git-r3
|
||||
#EGIT_REPO_URI="https://github.com/balint256/op25.git"
|
||||
#EGIT_REPO_URI="https://git.osmocom.org/op25"
|
||||
#EGIT_BRANCH="max"
|
||||
#EGIT_REPO_URI="https://github.com/boatbod/op25.git"
|
||||
|
||||
COMMIT="6f106847d78f8bedca805e39b2704195a03d7f9c"
|
||||
SRC_URI="https://github.com/boatbod/op25/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${COMMIT}"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND="${PYTHON_DEPS}
|
||||
>=net-wireless/gnuradio-3.7:=
|
||||
sci-libs/itpp
|
||||
dev-libs/boost
|
||||
dev-util/cppunit
|
||||
net-libs/libpcap
|
||||
${PYTHON_DEPS}"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
#workaround: compile with gcc 6
|
||||
# append-cxxflags -Wno-narrowing
|
||||
append-flags -funsigned-char
|
||||
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
python_export PYTHON_SITEDIR
|
||||
local mycmakeargs=(
|
||||
-Wno-dev
|
||||
-DPYTHON_EXECUTABLE="${PYTHON}"
|
||||
-DGR_PYTHON_DIR="${PYTHON_SITEDIR}"
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
#this isn't right, but cmake is broken somehow
|
||||
dodir /usr/share/${PN}
|
||||
cp -r "${S}/op25/gr-op25_repeater/apps" "${ED}/usr/share/${PN}"
|
||||
rm "${ED}/usr/share/${PN}/CMakeLists.txt"
|
||||
}
|
||||
|
|
@ -3,8 +3,7 @@
|
|||
|
||||
EAPI=7
|
||||
|
||||
# TODO: add py3.* support
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
|
||||
inherit cmake python-single-r1 flag-o-matic
|
||||
|
||||
|
|
@ -13,13 +12,14 @@ HOMEPAGE="http://osmocom.org/projects/op25/wiki"
|
|||
inherit git-r3
|
||||
#EGIT_REPO_URI="https://github.com/balint256/op25.git"
|
||||
#EGIT_REPO_URI="https://git.osmocom.org/op25"
|
||||
#EGIT_BRANCH="max"
|
||||
EGIT_BRANCH="python3"
|
||||
EGIT_REPO_URI="https://github.com/boatbod/op25.git"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
#KEYWORDS=""
|
||||
|
||||
#https://github.com/osmocom/op25/blob/master/gr3.8.patch
|
||||
DEPEND="${PYTHON_DEPS}
|
||||
>=net-wireless/gnuradio-3.7:=
|
||||
sci-libs/itpp
|
||||
|
|
|
|||
Loading…
Reference in a new issue