mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-20 05:41:12 +02:00
trunk-recorder: 3.x ebuild and 4.x live prep
This commit is contained in:
parent
6daf9b1dd6
commit
dedfff815b
3 changed files with 69 additions and 14 deletions
1
net-wireless/trunk-recorder/Manifest
Normal file
1
net-wireless/trunk-recorder/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST trunk-recorder-3.3.7.tar.gz 1405700 BLAKE2B 2ace29513a9be3425a7abd19ccd3b4f0f45c4aa5f8d7aede9ec54615f8a67cb3bb2e2f2cf8ba38a0bf1a66e494d16d07e7be757a2e130b9742c83edb5300d27c SHA512 4ebd125f539d3c9f9e34477259d153aad25a9e8cd43aa433c0db2a612174c47002db1e55a15f4ed54aedbe867fd0ce0ff33aa779ad39da3edb3cced870c6c803
|
||||
47
net-wireless/trunk-recorder/trunk-recorder-3.3.7.ebuild
Normal file
47
net-wireless/trunk-recorder/trunk-recorder-3.3.7.ebuild
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
# Copyright 2019-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
#THIS FAILS WITH EAPI7
|
||||
EAPI=6
|
||||
|
||||
CMAKE_MAKEFILE_GENERATOR=ninja
|
||||
inherit cmake-utils multilib
|
||||
|
||||
DESCRIPTION="Records calls from a Trunked Radio System (P25 & SmartNet)"
|
||||
HOMEPAGE="https://github.com/robotastic/trunk-recorder"
|
||||
if [ "${PV}" = "9999" ]; then
|
||||
EGIT_REPO_URI="https://github.com/robotastic/trunk-recorder.git"
|
||||
EGIT_BRANCH="4.0-beta"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://github.com/robotastic/trunk-recorder/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="net-wireless/gr-osmosdr:=
|
||||
net-wireless/gnuradio:=
|
||||
net-wireless/uhd:=
|
||||
!net-wireless/op25
|
||||
net-misc/curl:=
|
||||
dev-libs/log4cpp:=
|
||||
dev-libs/openssl:0=
|
||||
dev-libs/boost"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND=""
|
||||
|
||||
src_configure() {
|
||||
cmake-utils_src_configure
|
||||
sed -i "s#-Wl,-rpath,${BUILD_DIR}/lib/op25_repeater/lib ##" "${BUILD_DIR}"/build.ninja || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newbin "${BUILD_DIR}/recorder" "${PN}"
|
||||
exeinto /usr/$(get_libdir)/
|
||||
doexe "${BUILD_DIR}/lib/op25_repeater/lib/libgnuradio-op25_repeater.so"
|
||||
insinto /usr/share/"${PN}"
|
||||
doins -r examples
|
||||
}
|
||||
|
|
@ -1,39 +1,46 @@
|
|||
# Copyright 2019 Gentoo Authors
|
||||
# Copyright 2019-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
#THIS FAILS WITH EAPI7
|
||||
EAPI=6
|
||||
|
||||
CMAKE_MAKEFILE_GENERATOR=ninja
|
||||
inherit git-r3 cmake-utils
|
||||
inherit cmake-utils multilib
|
||||
|
||||
DESCRIPTION="Records calls from a Trunked Radio System (P25 & SmartNet)"
|
||||
HOMEPAGE="https://github.com/robotastic/trunk-recorder"
|
||||
EGIT_REPO_URI="https://github.com/robotastic/trunk-recorder.git"
|
||||
SRC_URI=""
|
||||
if [ "${PV}" = "9999" ]; then
|
||||
EGIT_REPO_URI="https://github.com/robotastic/trunk-recorder.git"
|
||||
EGIT_BRANCH="4.0-beta"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://github.com/robotastic/trunk-recorder/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE=""
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
IUSE=""
|
||||
|
||||
DEPEND="net-wireless/gr-osmosdr:=
|
||||
net-wireless/gnuradio:=
|
||||
net-wireless/uhd:=
|
||||
net-wireless/op25:=
|
||||
!net-wireless/op25
|
||||
net-misc/curl:=
|
||||
dev-libs/log4cpp:=
|
||||
dev-libs/openssl:0=
|
||||
dev-libs/boost"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND=""
|
||||
|
||||
src_prepare() {
|
||||
cmake-utils_src_prepare
|
||||
#so this compiles against the bundled op25 then runs with the system op25. I should probably fix that
|
||||
#rm -r lib/op25_repeater
|
||||
src_configure() {
|
||||
sed -i -e '/set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}\/lib\/trunk-recorder")/d' \
|
||||
-e '/set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)/d' \
|
||||
CMakeLists.txt
|
||||
cmake-utils_src_configure
|
||||
sed -i "s#-Wl,-rpath,${BUILD_DIR}: ##" "${BUILD_DIR}"/build.ninja || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newbin "${BUILD_DIR}/recorder" "${PN}"
|
||||
insinto /usr/share/"${PN}"
|
||||
doins -r examples
|
||||
CMAKE_SKIP_RPATH=true cmake-utils_src_install
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue