op25: new snapshot

This commit is contained in:
Rick Farina (Zero_Chaos) 2021-08-25 21:26:46 -04:00
parent e0feb41a40
commit d487978470
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
2 changed files with 63 additions and 0 deletions

View file

@ -1 +1,2 @@
DIST op25-20200418.tar.gz 765812 BLAKE2B 9f63fcc4dd71430bd4c21083474eedecde3b1a314594ab0fb4d86eaa407aab14b92b8557a4be99ef993855d70be87f9f46372d6ecc57f26a1f216b655d3ec7bd SHA512 b05750e0ee5a20f00aaba8fd47dcf0e0cb43953bca2bb17e4f2e55782f5e6fdcc210f295b6012cee625b4b5aae30cb1a9965d726b723fccd6cd4577a82381644
DIST op25-20210818.tar.gz 831222 BLAKE2B 0ce50444faa5750fc1cedcf2ceb08a844e76862371ff8cab82c693054cf3513b26a766043972a1f0454d9925fd843fa80c1b1f8651999e51621dee4683d2ecb4 SHA512 485db603302d9a7cf742f9ae1ee299370d122991e6184fe654e26524e397f96a41be4f990f903813aba6325660159862da88effa5f7f95dd23ac56307c810183

View file

@ -0,0 +1,62 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{8..10} )
inherit cmake python-single-r1
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="18d7f2e4c94d65c991acba6d917e501507270040"
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:=[vocoder]
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() {
#https://github.com/boatbod/op25/issues/48
sed '/set(CMAKE_CXX_FLAGS/d' -i CMakeLists.txt
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-Wno-dev
#https://github.com/boatbod/op25/issues/47
-DBUILD_SHARED_LIBS=NO
)
cmake_src_configure
}
src_install() {
cmake_src_install
python_optimize "${ED}/$(python_get_sitedir)"
#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"
}