op25: doesn't work, but looks better at least

This commit is contained in:
Rick Farina (Zero_Chaos) 2016-12-23 16:23:40 -05:00
parent 3ff106ef19
commit 83e870f190
No known key found for this signature in database
GPG key ID: A5DD1427DD11F94A

View file

@ -1,76 +1,28 @@
# Copyright 1999-2012 Gentoo Foundation
# Copyright 1999-20126 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
PYTHON_DEPEND="2"
PYTHON_COMPAT=( python2_7 )
inherit subversion autotools python
inherit cmake-utils python-r1
DESCRIPTION="software-defined analyzer for APCO P25 signals"
HOMEPAGE="http://op25.osmocom.org/wiki"
ESVN_REPO_URI="http://op25.osmocom.org/svn/trunk"
#osmocom is dead or close enough
#inherit subversion
#ESVN_REPO_URI="http://op25.osmocom.org/svn/trunk"
inherit git-r3
EGIT_REPO_URI="https://github.com/balint256/op25.git"
LICENSE="GPL"
SLOT="0"
KEYWORDS="-*"
KEYWORDS=""
IUSE=""
DEPEND="<net-wireless/gnuradio-3.7:=
DEPEND=">=net-wireless/gnuradio-3.7:=
sci-libs/itpp
dev-libs/boost
net-libs/libpcap"
RDEPEND="${DEPEND}"
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_prepare() {
cd "${S}"/blocks
#eautoreconf
./bootstrap
cd "${S}"/imbe_vocoder
#eautoreconf
./bootstrap
cd "${S}"/repeater
#eautoreconf
./bootstrap
}
src_configure() {
cd "${S}"/blocks
econf
cd "${S}"/imbe_vocoder
econf
cd "${S}"/repeater
econf
}
src_compile() {
cd "${S}"/blocks
sed -i 's#-I$(GNURADIO_CORE_INCLUDEDIR)/swig#-I$(GNURADIO_CORE_INCLUDEDIR)/swig -I$(includedir)/gruel/swig#' Makefile.common
emake
cd "${S}"/imbe_vocoder
emake
cd "${S}"/repeater
sed -i 's#-I$(GNURADIO_CORE_INCLUDEDIR)/swig#-I$(GNURADIO_CORE_INCLUDEDIR)/swig -I$(includedir)/gruel/swig#' Makefile.common
emake
}
src_install() {
cd "${S}"/blocks
emake DESTDIR="${ED}" install
cd "${S}"/imbe_vocoder
emake DESTDIR="${ED}" install
cd "${S}"/repeater
emake DESTDIR="${ED}" install
}