gdb-dashboard: new ebuild

This commit is contained in:
Yury Martynov 2019-10-29 10:59:28 +03:00
parent 0398353f8c
commit cc3e312e07
No known key found for this signature in database
GPG key ID: EBE62DD0CCEAE19E
4 changed files with 64 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST gdb-dashboard-0.11.1.tar.gz 20788 BLAKE2B e81f5ee54d0e01c043287c681c1d6bc7ca57ba94e6a89683a4c04ee52b7ce0f2ffc6089f9ef09934bb6597c248131632ca079c6d2ad788ce8bf8f860211db495 SHA512 aa36bfc0a500f81d284ac8834c7ba7a4dec52a2bac8067067ad371f03a043b402d7f40bb7b2b0a8f9557454aa0ae4558041aeecc97d64cb90eb0ee07bd59bb59

View file

@ -0,0 +1 @@
./gdb-dashboard-9999.ebuild

View file

@ -0,0 +1,54 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{5,6,7} )
inherit eutils python-single-r1
DESCRIPTION="Modular visual interface for GDB in Python"
HOMEPAGE="https://github.com/cyrus-and/gdb-dashboard"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/cyrus-and/gdb-dashboard"
else
SRC_URI="https://github.com/cyrus-and/gdb-dashboard/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="MIT"
SLOT="0"
RDEPEND="
dev-python/pygments[${PYTHON_USEDEP}]
sys-devel/gdb[python]"
pkg_setup() {
python-single-r1_pkg_setup
}
src_install() {
insinto "/usr/share/${PN}"
newins .gdbinit gdbinit
cat > "${D}/usr/share/${PN}/${PN}" <<-_EOF_ || die
# Use this commad for installing:
# gdb -x /usr/share/${PN}/${PN} <program>
source /usr/share/${PN}/gdbinit
_EOF_
make_wrapper $PN \
"gdb -x /usr/share/${PN}/${PN}"
dodoc README.md
}
pkg_postinst() {
einfo "\nFor using put the command:"
einfo " gdb -x /usr/share/${PN}/${PN} <program>"
einfo "or"
einfo " ${PN} <program>\n"
}

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>email@linxon.ru</email>
<name>Yury Martynov</name>
</maintainer>
</pkgmetadata>