1 |
commit: 29c378d889d06d2f1631a4e36750bec7fbd2269a |
2 |
Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr> |
3 |
AuthorDate: Sat Aug 15 13:44:15 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 5 07:53:46 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29c378d8 |
7 |
|
8 |
dev-util/cgdb: revbump for bugfixes |
9 |
|
10 |
Closes: https://bugs.gentoo.org/730138 |
11 |
Closes: https://bugs.gentoo.org/682386 |
12 |
Closes: https://bugs.gentoo.org/678006 |
13 |
Closes: https://bugs.gentoo.org/630512 |
14 |
Package-Manager: Portage-2.3.99, Repoman-2.3.23 |
15 |
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr> |
16 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
17 |
|
18 |
dev-util/cgdb/cgdb-0.7.0-r2.ebuild | 68 ++++++++++++++++++++++++++++++++++++++ |
19 |
1 file changed, 68 insertions(+) |
20 |
|
21 |
diff --git a/dev-util/cgdb/cgdb-0.7.0-r2.ebuild b/dev-util/cgdb/cgdb-0.7.0-r2.ebuild |
22 |
new file mode 100644 |
23 |
index 00000000000..41d85a3805a |
24 |
--- /dev/null |
25 |
+++ b/dev-util/cgdb/cgdb-0.7.0-r2.ebuild |
26 |
@@ -0,0 +1,68 @@ |
27 |
+# Copyright 1999-2020 Gentoo Authors |
28 |
+# Distributed under the terms of the GNU General Public License v2 |
29 |
+ |
30 |
+EAPI=7 |
31 |
+ |
32 |
+if [[ ${PV} = *9999* ]]; then |
33 |
+ inherit git-r3 |
34 |
+ EGIT_REPO_URI=" |
35 |
+ https://github.com/cgdb/cgdb.git |
36 |
+ git@××××××.com:cgdb/cgdb.git" |
37 |
+else |
38 |
+ SRC_URI="https://github.com/cgdb/cgdb/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
39 |
+ KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
40 |
+fi |
41 |
+inherit multilib-minimal |
42 |
+ |
43 |
+DESCRIPTION="A curses front-end for GDB, the GNU debugger" |
44 |
+HOMEPAGE="http://cgdb.github.io/" |
45 |
+LICENSE="GPL-2" |
46 |
+SLOT="0" |
47 |
+IUSE="test" |
48 |
+RESTRICT="!test? ( test )" |
49 |
+ |
50 |
+DEPEND=" |
51 |
+ sys-libs/ncurses:0= |
52 |
+ sys-libs/readline:0=" |
53 |
+ |
54 |
+BDEPEND=" |
55 |
+ test? ( |
56 |
+ dev-util/dejagnu |
57 |
+ app-misc/dtach |
58 |
+ )" |
59 |
+ |
60 |
+RDEPEND=" |
61 |
+ ${DEPEND} |
62 |
+ sys-devel/gdb" |
63 |
+ |
64 |
+DOCS=( AUTHORS ChangeLog FAQ INSTALL NEWS README.md ) |
65 |
+ |
66 |
+PATCHES=( |
67 |
+ # Bugs: #730138, #678006, #630512, #682386 |
68 |
+ "${FILESDIR}/${PN}-test.patch" |
69 |
+) |
70 |
+ |
71 |
+src_prepare() { |
72 |
+ default |
73 |
+ ./autogen.sh || die |
74 |
+} |
75 |
+ |
76 |
+multilib_src_test() { |
77 |
+ # Tests need an interactive shell, #654986 |
78 |
+ |
79 |
+ # real-time output of the log ;-) |
80 |
+ touch "${T}/dtach-test.log" || die |
81 |
+ tail -f "${T}/dtach-test.log" & |
82 |
+ local tail_pid=${!} |
83 |
+ |
84 |
+ nonfatal dtach -N "${T}/dtach.sock" \ |
85 |
+ bash -c 'emake check &> "${T}"/dtach-test.log; echo ${?} > "${T}"/dtach-test.out' |
86 |
+ |
87 |
+ kill "${tail_pid}" |
88 |
+ [[ -f ${T}/dtach-test.out ]] || die "Unable to run tests" |
89 |
+ [[ $(<"${T}"/dtach-test.out) == 0 ]] || die "Tests failed" |
90 |
+} |
91 |
+ |
92 |
+multilib_src_configure() { |
93 |
+ ECONF_SOURCE="${S}" econf |
94 |
+} |