diff options
author | Jakov Smolić <jsmolic@gentoo.org> | 2022-01-24 23:22:21 +0100 |
---|---|---|
committer | Jakov Smolić <jsmolic@gentoo.org> | 2022-01-24 23:24:47 +0100 |
commit | 6223b412ceaccd8e7d9a0ed550215ae13f813da8 (patch) | |
tree | fff62c4a274557eb730e4442e1586176fe4f7b9c /dev-util/cgdb | |
parent | dev-python/pytest-param-files: Bump to 0.3.4 (diff) | |
download | gentoo-6223b412ceaccd8e7d9a0ed550215ae13f813da8.tar.gz gentoo-6223b412ceaccd8e7d9a0ed550215ae13f813da8.tar.bz2 gentoo-6223b412ceaccd8e7d9a0ed550215ae13f813da8.zip |
dev-util/cgdb: add 0.8.0
With tests restricted as they are broken now.
Closes: https://bugs.gentoo.org/831899
Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
Diffstat (limited to 'dev-util/cgdb')
-rw-r--r-- | dev-util/cgdb/Manifest | 1 | ||||
-rw-r--r-- | dev-util/cgdb/cgdb-0.8.0.ebuild | 69 | ||||
-rw-r--r-- | dev-util/cgdb/files/cgdb-0.8.0-ar.patch | 18 |
3 files changed, 88 insertions, 0 deletions
diff --git a/dev-util/cgdb/Manifest b/dev-util/cgdb/Manifest index 2c1a19f7bea8..38abca18f809 100644 --- a/dev-util/cgdb/Manifest +++ b/dev-util/cgdb/Manifest @@ -1 +1,2 @@ DIST cgdb-0.7.1.tar.gz 314768 BLAKE2B 767a57d071fa4e3c75d231a1ec879d871669fcda9c733d157d380fa525dd321f1deb68d7ef7f424b3f36a115043a0a0faae271f24746f934e288ba7d9a4e7fa1 SHA512 050c7bad963d51c1a2cb309530319ca77e9d236f419fb0abac4ab5030ff1068d799fa626959a8b3036321711de98bddf40d264bf9367ff5697075e30ca8168c6 +DIST cgdb-0.8.0.tar.gz 328281 BLAKE2B 60e577dd5f8363b91da33136a9ffd911581e9cea4cdc1d0fcd338e0a761a26921e6edf6298c619b8d0eb1486449843457b2c5370a395a8c49fed5382a60e63a2 SHA512 e2b653db472de2014402dae6d13953ab811526a47ad5d7a05e34cfba09f44d6fea6b19304b9205ff0e2ac9549ffa5818f4282d7c03293b6c0ca9d563f9ae89e1 diff --git a/dev-util/cgdb/cgdb-0.8.0.ebuild b/dev-util/cgdb/cgdb-0.8.0.ebuild new file mode 100644 index 000000000000..416db639d484 --- /dev/null +++ b/dev-util/cgdb/cgdb-0.8.0.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +if [[ ${PV} = *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/cgdb/cgdb.git" +else + SRC_URI="https://github.com/cgdb/cgdb/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +fi + +inherit autotools multilib-minimal + +DESCRIPTION="A curses front-end for GDB, the GNU debugger" +HOMEPAGE="https://cgdb.github.io/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="test" +# Tests are broken, need additional research to figure out the cause +# Bug: https://bugs.gentoo.org/831899 +RESTRICT="test" + +DEPEND=" + sys-libs/ncurses:0= + sys-libs/readline:0=" + +BDEPEND=" + test? ( + dev-util/dejagnu + app-misc/dtach + )" + +RDEPEND=" + ${DEPEND} + sys-devel/gdb" + +DOCS=( AUTHORS ChangeLog FAQ INSTALL NEWS README.md ) + +PATCHES=( + "${FILESDIR}"/${P}-ar.patch +) + +src_prepare() { + default + AT_M4DIR="config" eautoreconf +} + +multilib_src_test() { + # Tests need an interactive shell, #654986 + + # real-time output of the log ;-) + touch "${T}/dtach-test.log" || die + tail -f "${T}/dtach-test.log" & + local tail_pid=${!} + + nonfatal dtach -N "${T}/dtach.sock" \ + bash -c 'emake check &> "${T}"/dtach-test.log; echo ${?} > "${T}"/dtach-test.out' + + kill "${tail_pid}" + [[ -f ${T}/dtach-test.out ]] || die "Unable to run tests" + [[ $(<"${T}"/dtach-test.out) == 0 ]] || die "Tests failed" +} + +multilib_src_configure() { + ECONF_SOURCE="${S}" econf +} diff --git a/dev-util/cgdb/files/cgdb-0.8.0-ar.patch b/dev-util/cgdb/files/cgdb-0.8.0-ar.patch new file mode 100644 index 000000000000..128c32ec238c --- /dev/null +++ b/dev-util/cgdb/files/cgdb-0.8.0-ar.patch @@ -0,0 +1,18 @@ +Bug: https://bugs.gentoo.org/724256 +Patch taken from https://github.com/cgdb/cgdb/pull/142 +--- a/configure.ac ++++ b/configure.ac +@@ -13,6 +13,13 @@ AC_PROG_INSTALL + AC_PROG_RANLIB + AM_PROG_LEX + AC_PROG_YACC ++m4_ifndef([AC_PROG_AR],[dnl ++ AN_MAKEVAR([AR], [AC_PROG_AR]) ++ AN_PROGRAM([ar], [AC_PROG_AR]) ++ AC_DEFUN([AC_PROG_AR], ++ [AC_CHECK_TOOL(AR, ar, :)]) ++]) ++AC_PROG_AR + + dnl determine if we are running in linux, cygwin, solaris, or freebsd + AC_CANONICAL_HOST |