tkurbad-overlay/sci-electronics/bitscope-logic/bitscope-logic-1.3.ebuild
2020-10-12 09:19:38 +02:00

54 lines
1.1 KiB
Bash

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit eutils unpacker desktop xdg
VERSION_TAG="FC20FKZY"
MY_PV="${PV}.${VERSION_TAG}"
MY_P="${PN}_${MY_PV}"
SRC_URI="amd64? ( http://bitscope.com/download/files/${MY_P}_amd64.deb )"
DESCRIPTION="BitScope Logic is a logic analyzer designed for use with the BitScope PC oscilloscopes."
HOMEPAGE="http://www.bitscope.com/software/logic"
IUSE=""
SLOT="0"
KEYWORDS="-* ~amd64"
LICENSE=""
RESTRICT=""
RDEPEND=">=dev-libs/atk-1.12.4
>=dev-libs/glib-2.12.0
sys-libs/libcap
>=x11-libs/cairo-1.2.4
x11-libs/gtk+:2
>=x11-libs/pango-1.14.0
x11-libs/libX11"
S="${WORKDIR}"
src_unpack() {
unpack_deb ${A}
}
src_prepare() {
default
sed -i "s/Icon=bitscope-logic\.png/Icon=bitscope-logic/" \
"${S}"/usr/share/applications/${PN}.desktop
gunzip "${S}"/usr/share/doc/${PN}/changelog.gz
}
src_install() {
dobin usr/bin/${PN}
dobin usr/bin/start-${PN}
dodoc -r usr/share/doc/${PN}/*
doicon usr/share/pixmaps/${PN}.png
domenu usr/share/applications/${PN}.desktop
}