summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolic <jakov.smolic@sartura.hr>2020-12-28 15:47:58 +0100
committerDavid Seifert <soap@gentoo.org>2020-12-28 15:47:58 +0100
commita195c28af73dacc8967886a6ff648090b2ff0103 (patch)
tree514a575ed77c1b91c9aa4aabe1291c5ab8531cf4 /net-wireless
parentnet-misc/sipsak: Remove old (diff)
downloadgentoo-a195c28af73dacc8967886a6ff648090b2ff0103.tar.gz
gentoo-a195c28af73dacc8967886a6ff648090b2ff0103.tar.bz2
gentoo-a195c28af73dacc8967886a6ff648090b2ff0103.zip
net-wireless/dump1090: Bump to 4.0
Closes: https://bugs.gentoo.org/707038 Package-Manager: Portage-3.0.9, Repoman-3.0.1 Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/dump1090/Manifest1
-rw-r--r--net-wireless/dump1090/dump1090-4.0.ebuild55
2 files changed, 56 insertions, 0 deletions
diff --git a/net-wireless/dump1090/Manifest b/net-wireless/dump1090/Manifest
index 2f2258326e75..e7c7ffe25084 100644
--- a/net-wireless/dump1090/Manifest
+++ b/net-wireless/dump1090/Manifest
@@ -1 +1,2 @@
DIST dump1090-3.7.2.tar.gz 5657288 BLAKE2B 267374ec034ba5bb03989d04001f1ca82cfb5f2cb77af06d85c1d5f4446955ef84bdf60162c0c74e702266f8051a22fe15723dae9b26323c3f5cf03bf48342b7 SHA512 8958bc711b44c8c9f26242bdd4005a422498e023632bbb87f8e93de30b6fa20b6c6ab3208e7548a960c8c127e948d1bdf5e9d5ceaf84127ce9e686c6fad6cc1b
+DIST dump1090-4.0.tar.gz 6663754 BLAKE2B bf0a6c8dfd8b2da5ed0e7ae5f7b862c57a54e5d48bc24b29e42ebffec4e0606604fbe4b8502e85df60a3a618568bf9e2eba88e5ad2fdec7fb93043b823435362 SHA512 97dc872e4d0ac8df2f46e17b590e970a62a78baf81e18a9beeb23d37a4401a2e52591ca96cc01e1465b22aa234cf9e88f84a7b0f27d0144b3afeac62f6252c95
diff --git a/net-wireless/dump1090/dump1090-4.0.ebuild b/net-wireless/dump1090/dump1090-4.0.ebuild
new file mode 100644
index 000000000000..9e0920b465cf
--- /dev/null
+++ b/net-wireless/dump1090/dump1090-4.0.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="simple Mode S decoder for RTLSDR devices"
+HOMEPAGE="https://github.com/flightaware/dump1090"
+
+if [[ ${PV} == *9999 ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/flightaware/${PN}.git"
+else
+ KEYWORDS="~amd64 ~x86"
+ SRC_URI="https://github.com/flightaware/dump1090/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="bladerf +rtlsdr"
+
+DEPEND="
+ sys-libs/ncurses:=[tinfo]
+ virtual/libusb:1
+ bladerf? ( net-wireless/bladerf:= )
+ rtlsdr? ( net-wireless/rtl-sdr:= )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ default
+ sed -i -e 's#-O2 -g -Wall -Werror -W##' Makefile || die
+ sed -i -e "s#-lncurses#$($(tc-getPKG_CONFIG) --libs ncurses)#" Makefile || die
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" \
+ BLADERF=$(usex bladerf) \
+ RTLSDR=$(usex rtlsdr)
+}
+
+src_install() {
+ dobin ${PN}
+ dobin view1090
+ dodoc README.md
+
+ insinto /usr/share/${PN}/html
+ doins -r public_html/*
+
+ insinto /usr/share/${PN}
+ doins -r tools
+
+ insinto /usr/share/${PN}
+ newins debian/lighttpd/89-dump1090-fa.conf lighttpd.conf
+}