www-client/jd: fix build with >=sys-devel/gcc-5
authorAkinori Hattori <hattya@gentoo.org>
Mon, 6 Aug 2018 12:47:08 +0000 (21:47 +0900)
committerAkinori Hattori <hattya@gentoo.org>
Mon, 6 Aug 2018 12:47:08 +0000 (21:47 +0900)
Closes: https://bugs.gentoo.org/600802
Package-Manager: Portage-2.3.40, Repoman-2.3.9

www-client/jd/files/jd-gcc-5.patch [new file with mode: 0644]
www-client/jd/jd-2.8.5_p120826.ebuild

diff --git a/www-client/jd/files/jd-gcc-5.patch b/www-client/jd/files/jd-gcc-5.patch
new file mode 100644 (file)
index 0000000..4e6a74f
--- /dev/null
@@ -0,0 +1,15 @@
+https://bugs.gentoo.org/600802
+
+Author: nanikata@gmail.com
+
+--- a/src/article/drawareabase.h
++++ b/src/article/drawareabase.h
+@@ -330,7 +330,7 @@
+         // リアライズしたか
+         // Gtk::Widget::is_realized() はうまく動作しない
+-        const bool is_drawarea_realized(){ return m_window; }
++        const bool is_drawarea_realized(){ return static_cast<bool>(m_window); }
+         // 文字色のID( colorid.h にある ID を指定)
+         const int get_colorid_text() const{ return m_colorid_text; }
index 05dd4ad5f84bae31c6741c57f9f5f8060d14b6a0..c05782e16ca6a8ae71735a94da3b2a96623bbf40 100644 (file)
@@ -33,6 +33,8 @@ DEPEND="${RDEPEND}
        virtual/pkgconfig"
 S="${WORKDIR}/${MY_P}"
 
+PATCHES=( "${FILESDIR}"/${PN}-gcc-5.patch )
+
 src_prepare() {
        default
        append-cxxflags -std=c++11