Gentoo Archives: gentoo-commits

From: Akinori Hattori <hattya@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/jd/files/, www-client/jd/
Date: Mon, 06 Aug 2018 12:54:11
Message-Id: 1533559628.d93be79561a120db88087a6ebe1733ad98041c5a.hattya@gentoo
1 commit: d93be79561a120db88087a6ebe1733ad98041c5a
2 Author: Akinori Hattori <hattya <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 6 12:47:08 2018 +0000
4 Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 6 12:47:08 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d93be795
7
8 www-client/jd: fix build with >=sys-devel/gcc-5
9
10 Closes: https://bugs.gentoo.org/600802
11 Package-Manager: Portage-2.3.40, Repoman-2.3.9
12
13 www-client/jd/files/jd-gcc-5.patch | 15 +++++++++++++++
14 www-client/jd/jd-2.8.5_p120826.ebuild | 2 ++
15 2 files changed, 17 insertions(+)
16
17 diff --git a/www-client/jd/files/jd-gcc-5.patch b/www-client/jd/files/jd-gcc-5.patch
18 new file mode 100644
19 index 00000000000..4e6a74f4d79
20 --- /dev/null
21 +++ b/www-client/jd/files/jd-gcc-5.patch
22 @@ -0,0 +1,15 @@
23 +https://bugs.gentoo.org/600802
24 +
25 +Author: nanikata@×××××.com
26 +
27 +--- a/src/article/drawareabase.h
28 ++++ b/src/article/drawareabase.h
29 +@@ -330,7 +330,7 @@
30 +
31 + // リアライズしたか
32 + // Gtk::Widget::is_realized() はうまく動作しない
33 +- const bool is_drawarea_realized(){ return m_window; }
34 ++ const bool is_drawarea_realized(){ return static_cast<bool>(m_window); }
35 +
36 + // 文字色のID( colorid.h にある ID を指定)
37 + const int get_colorid_text() const{ return m_colorid_text; }
38
39 diff --git a/www-client/jd/jd-2.8.5_p120826.ebuild b/www-client/jd/jd-2.8.5_p120826.ebuild
40 index 05dd4ad5f84..c05782e16ca 100644
41 --- a/www-client/jd/jd-2.8.5_p120826.ebuild
42 +++ b/www-client/jd/jd-2.8.5_p120826.ebuild
43 @@ -33,6 +33,8 @@ DEPEND="${RDEPEND}
44 virtual/pkgconfig"
45 S="${WORKDIR}/${MY_P}"
46
47 +PATCHES=( "${FILESDIR}"/${PN}-gcc-5.patch )
48 +
49 src_prepare() {
50 default
51 append-cxxflags -std=c++11