1 |
commit: 5d83216d808dfbcd9bee45f61e520d84376461e4 |
2 |
Author: Maciej Mrozowski <reavertm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 19 01:30:11 2017 +0000 |
4 |
Commit: Maciej Mrozowski <reavertm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 19 01:30:43 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d83216d |
7 |
|
8 |
dev-util/ddd: switch to EAPI 6, add elog to fix bug 459324 |
9 |
|
10 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
11 |
|
12 |
dev-util/ddd/ddd-3.3.12-r4.ebuild | 36 ++++++++++++++++++++---------------- |
13 |
1 file changed, 20 insertions(+), 16 deletions(-) |
14 |
|
15 |
diff --git a/dev-util/ddd/ddd-3.3.12-r4.ebuild b/dev-util/ddd/ddd-3.3.12-r4.ebuild |
16 |
index 4ff17ef3f78..76de541bcb3 100644 |
17 |
--- a/dev-util/ddd/ddd-3.3.12-r4.ebuild |
18 |
+++ b/dev-util/ddd/ddd-3.3.12-r4.ebuild |
19 |
@@ -1,9 +1,9 @@ |
20 |
-# Copyright 1999-2015 Gentoo Foundation |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
-EAPI="4" |
25 |
+EAPI="6" |
26 |
|
27 |
-inherit autotools-utils eutils |
28 |
+inherit autotools eutils |
29 |
|
30 |
DESCRIPTION="Graphical front-end for command-line debuggers" |
31 |
HOMEPAGE="https://www.gnu.org/software/ddd" |
32 |
@@ -12,11 +12,11 @@ SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" |
33 |
LICENSE="GPL-3 LGPL-3 FDL-1.1" |
34 |
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux" |
35 |
SLOT="0" |
36 |
-IUSE="+gnuplot readline" |
37 |
+IUSE="readline" |
38 |
|
39 |
COMMON_DEPEND=" |
40 |
sys-devel/gdb |
41 |
- sys-libs/ncurses |
42 |
+ sys-libs/ncurses:* |
43 |
x11-libs/libX11 |
44 |
x11-libs/libXaw |
45 |
x11-libs/libXmu |
46 |
@@ -25,14 +25,13 @@ COMMON_DEPEND=" |
47 |
>=x11-libs/motif-2.3:0 |
48 |
ppc? ( dev-libs/elfutils ) |
49 |
ppc64? ( dev-libs/elfutils ) |
50 |
- readline? ( sys-libs/readline ) |
51 |
+ readline? ( sys-libs/readline:* ) |
52 |
" |
53 |
DEPEND="${COMMON_DEPEND} |
54 |
x11-proto/xproto |
55 |
" |
56 |
RDEPEND="${COMMON_DEPEND} |
57 |
x11-apps/xfontsel |
58 |
- gnuplot? ( sci-visualization/gnuplot ) |
59 |
" |
60 |
|
61 |
RESTRICT="test" |
62 |
@@ -49,14 +48,15 @@ DOCS=( |
63 |
doc/ddd{-paper.ps,.pdf,-themes.pdf} |
64 |
) |
65 |
|
66 |
-AUTOTOOLS_AUTORECONF=1 |
67 |
+src_prepare() { |
68 |
+ default |
69 |
+ eautoreconf |
70 |
+} |
71 |
|
72 |
src_configure() { |
73 |
- local myeconfargs=( |
74 |
- --disable-static |
75 |
+ econf \ |
76 |
+ --disable-static \ |
77 |
$(use_with readline) |
78 |
- ) |
79 |
- autotools-utils_src_configure |
80 |
} |
81 |
|
82 |
src_install() { |
83 |
@@ -64,23 +64,27 @@ src_install() { |
84 |
rm -f "${S}"/ddd/Ddd |
85 |
|
86 |
# Install ddd distribution |
87 |
- autotools-utils_src_install |
88 |
+ default |
89 |
|
90 |
# Install application icon |
91 |
doicon "${S}"/icons/ddd.xpm |
92 |
} |
93 |
|
94 |
pkg_postinst() { |
95 |
- if ! use gnuplot; then |
96 |
+ if ! has_version sci-visualization/gnuplot; then |
97 |
echo |
98 |
- elog "To enable data visualization in DDD, install sci-visualization/gnuplot," |
99 |
- elog "or re-emerge DDD with gnuplot USE flag (recommended)." |
100 |
+ elog "To enable data visualization in DDD, install sci-visualization/gnuplot." |
101 |
elog "For flat file package.use layout:" |
102 |
elog " echo '${CATEGORY}/${PN} gnuplot' >> /etc/portage/package.use && emerge -va gnuplot" |
103 |
elog "For directory package.use layout:" |
104 |
elog " echo '${CATEGORY}/${PN} gnuplot' > /etc/portage/package.use/ddd && emerge -va gnuplot" |
105 |
+ elog |
106 |
fi |
107 |
echo |
108 |
+ elog "Important notice: if you encounter DDD crashes during visualization, you might" |
109 |
+ elog "have hit bug #459324. Try switching to plotting in external window:" |
110 |
+ elog "Select Edit|Preferences|Helpers and switch 'plot window' to 'external'" |
111 |
+ elog |
112 |
elog "To be able to debug java, bash, perl or python scripts within DDD, install respectively:" |
113 |
elog " virtual/jdk" |
114 |
elog " app-shells/bashdb" |