From d93be79561a120db88087a6ebe1733ad98041c5a Mon Sep 17 00:00:00 2001 From: Akinori Hattori Date: Mon, 6 Aug 2018 21:47:08 +0900 Subject: [PATCH] www-client/jd: fix build with >=sys-devel/gcc-5 Closes: https://bugs.gentoo.org/600802 Package-Manager: Portage-2.3.40, Repoman-2.3.9 --- www-client/jd/files/jd-gcc-5.patch | 15 +++++++++++++++ www-client/jd/jd-2.8.5_p120826.ebuild | 2 ++ 2 files changed, 17 insertions(+) create mode 100644 www-client/jd/files/jd-gcc-5.patch diff --git a/www-client/jd/files/jd-gcc-5.patch b/www-client/jd/files/jd-gcc-5.patch new file mode 100644 index 000000000000..4e6a74f4d79d --- /dev/null +++ b/www-client/jd/files/jd-gcc-5.patch @@ -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(m_window); } + + // 文字色のID( colorid.h にある ID を指定) + const int get_colorid_text() const{ return m_colorid_text; } diff --git a/www-client/jd/jd-2.8.5_p120826.ebuild b/www-client/jd/jd-2.8.5_p120826.ebuild index 05dd4ad5f84b..c05782e16ca6 100644 --- a/www-client/jd/jd-2.8.5_p120826.ebuild +++ b/www-client/jd/jd-2.8.5_p120826.ebuild @@ -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 -- 2.26.2