1 |
commit: 6223b412ceaccd8e7d9a0ed550215ae13f813da8 |
2 |
Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 24 22:22:21 2022 +0000 |
4 |
Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 24 22:24:47 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6223b412 |
7 |
|
8 |
dev-util/cgdb: add 0.8.0 |
9 |
|
10 |
With tests restricted as they are broken now. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/831899 |
13 |
Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org> |
14 |
|
15 |
dev-util/cgdb/Manifest | 1 + |
16 |
dev-util/cgdb/cgdb-0.8.0.ebuild | 69 +++++++++++++++++++++++++++++++++ |
17 |
dev-util/cgdb/files/cgdb-0.8.0-ar.patch | 18 +++++++++ |
18 |
3 files changed, 88 insertions(+) |
19 |
|
20 |
diff --git a/dev-util/cgdb/Manifest b/dev-util/cgdb/Manifest |
21 |
index 2c1a19f7bea8..38abca18f809 100644 |
22 |
--- a/dev-util/cgdb/Manifest |
23 |
+++ b/dev-util/cgdb/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST cgdb-0.7.1.tar.gz 314768 BLAKE2B 767a57d071fa4e3c75d231a1ec879d871669fcda9c733d157d380fa525dd321f1deb68d7ef7f424b3f36a115043a0a0faae271f24746f934e288ba7d9a4e7fa1 SHA512 050c7bad963d51c1a2cb309530319ca77e9d236f419fb0abac4ab5030ff1068d799fa626959a8b3036321711de98bddf40d264bf9367ff5697075e30ca8168c6 |
26 |
+DIST cgdb-0.8.0.tar.gz 328281 BLAKE2B 60e577dd5f8363b91da33136a9ffd911581e9cea4cdc1d0fcd338e0a761a26921e6edf6298c619b8d0eb1486449843457b2c5370a395a8c49fed5382a60e63a2 SHA512 e2b653db472de2014402dae6d13953ab811526a47ad5d7a05e34cfba09f44d6fea6b19304b9205ff0e2ac9549ffa5818f4282d7c03293b6c0ca9d563f9ae89e1 |
27 |
|
28 |
diff --git a/dev-util/cgdb/cgdb-0.8.0.ebuild b/dev-util/cgdb/cgdb-0.8.0.ebuild |
29 |
new file mode 100644 |
30 |
index 000000000000..416db639d484 |
31 |
--- /dev/null |
32 |
+++ b/dev-util/cgdb/cgdb-0.8.0.ebuild |
33 |
@@ -0,0 +1,69 @@ |
34 |
+# Copyright 1999-2022 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=8 |
38 |
+ |
39 |
+if [[ ${PV} = *9999* ]]; then |
40 |
+ inherit git-r3 |
41 |
+ EGIT_REPO_URI="https://github.com/cgdb/cgdb.git" |
42 |
+else |
43 |
+ SRC_URI="https://github.com/cgdb/cgdb/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
44 |
+ KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
45 |
+fi |
46 |
+ |
47 |
+inherit autotools multilib-minimal |
48 |
+ |
49 |
+DESCRIPTION="A curses front-end for GDB, the GNU debugger" |
50 |
+HOMEPAGE="https://cgdb.github.io/" |
51 |
+ |
52 |
+LICENSE="GPL-2" |
53 |
+SLOT="0" |
54 |
+IUSE="test" |
55 |
+# Tests are broken, need additional research to figure out the cause |
56 |
+# Bug: https://bugs.gentoo.org/831899 |
57 |
+RESTRICT="test" |
58 |
+ |
59 |
+DEPEND=" |
60 |
+ sys-libs/ncurses:0= |
61 |
+ sys-libs/readline:0=" |
62 |
+ |
63 |
+BDEPEND=" |
64 |
+ test? ( |
65 |
+ dev-util/dejagnu |
66 |
+ app-misc/dtach |
67 |
+ )" |
68 |
+ |
69 |
+RDEPEND=" |
70 |
+ ${DEPEND} |
71 |
+ sys-devel/gdb" |
72 |
+ |
73 |
+DOCS=( AUTHORS ChangeLog FAQ INSTALL NEWS README.md ) |
74 |
+ |
75 |
+PATCHES=( |
76 |
+ "${FILESDIR}"/${P}-ar.patch |
77 |
+) |
78 |
+ |
79 |
+src_prepare() { |
80 |
+ default |
81 |
+ AT_M4DIR="config" eautoreconf |
82 |
+} |
83 |
+ |
84 |
+multilib_src_test() { |
85 |
+ # Tests need an interactive shell, #654986 |
86 |
+ |
87 |
+ # real-time output of the log ;-) |
88 |
+ touch "${T}/dtach-test.log" || die |
89 |
+ tail -f "${T}/dtach-test.log" & |
90 |
+ local tail_pid=${!} |
91 |
+ |
92 |
+ nonfatal dtach -N "${T}/dtach.sock" \ |
93 |
+ bash -c 'emake check &> "${T}"/dtach-test.log; echo ${?} > "${T}"/dtach-test.out' |
94 |
+ |
95 |
+ kill "${tail_pid}" |
96 |
+ [[ -f ${T}/dtach-test.out ]] || die "Unable to run tests" |
97 |
+ [[ $(<"${T}"/dtach-test.out) == 0 ]] || die "Tests failed" |
98 |
+} |
99 |
+ |
100 |
+multilib_src_configure() { |
101 |
+ ECONF_SOURCE="${S}" econf |
102 |
+} |
103 |
|
104 |
diff --git a/dev-util/cgdb/files/cgdb-0.8.0-ar.patch b/dev-util/cgdb/files/cgdb-0.8.0-ar.patch |
105 |
new file mode 100644 |
106 |
index 000000000000..128c32ec238c |
107 |
--- /dev/null |
108 |
+++ b/dev-util/cgdb/files/cgdb-0.8.0-ar.patch |
109 |
@@ -0,0 +1,18 @@ |
110 |
+Bug: https://bugs.gentoo.org/724256 |
111 |
+Patch taken from https://github.com/cgdb/cgdb/pull/142 |
112 |
+--- a/configure.ac |
113 |
++++ b/configure.ac |
114 |
+@@ -13,6 +13,13 @@ AC_PROG_INSTALL |
115 |
+ AC_PROG_RANLIB |
116 |
+ AM_PROG_LEX |
117 |
+ AC_PROG_YACC |
118 |
++m4_ifndef([AC_PROG_AR],[dnl |
119 |
++ AN_MAKEVAR([AR], [AC_PROG_AR]) |
120 |
++ AN_PROGRAM([ar], [AC_PROG_AR]) |
121 |
++ AC_DEFUN([AC_PROG_AR], |
122 |
++ [AC_CHECK_TOOL(AR, ar, :)]) |
123 |
++]) |
124 |
++AC_PROG_AR |
125 |
+ |
126 |
+ dnl determine if we are running in linux, cygwin, solaris, or freebsd |
127 |
+ AC_CANONICAL_HOST |