pentoo-overlay/net-analyzer/ham2mon/ham2mon-20170603.ebuild

48 lines
1 KiB
Bash

# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 )
EGO_PN=github.com/madengr/${PN}
inherit python-single-r1
if [[ ${PV} = *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/madengr/ham2mon.git"
KEYWORDS=""
else
KEYWORDS="~amd64 ~x86"
EGIT_COMMIT="d15fd94b253a1a854a7f106dd105a3d83dcbee00"
SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
fi
DESCRIPTION="A GNU Radio (GR) based SDR scanner with a Curses interface."
HOMEPAGE="https://github.com/madengr/ham2mon"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=""
DEPEND="${RDEPEND}"
S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
src_prepare() {
python_fix_shebang .
eapply_user
}
src_install(){
insinto /usr/$(get_libdir)/${PN}
doins -r apps/*.py
fperms +x /usr/$(get_libdir)/${PN}/${PN}.py
dosym /usr/$(get_libdir)/${PN}/${PN}.py /usr/sbin/${PN}
python_optimize "${D}"usr/$(get_libdir)/${PN}
}