summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2020-01-09 22:42:25 +0900
committerAkinori Hattori <hattya@gentoo.org>2020-01-09 22:43:07 +0900
commit59195c0e272656e9e87dd1af35005d5aff85c16b (patch)
treea34999d9c558cca869c01a391aac572b2516727d /dev-scheme/gauche-gtk
parentdev-scheme/gauche-gtk: fix build with >=dev-scheme/gauche-0.9.7 (diff)
downloadgentoo-59195c0e272656e9e87dd1af35005d5aff85c16b.tar.gz
gentoo-59195c0e272656e9e87dd1af35005d5aff85c16b.tar.bz2
gentoo-59195c0e272656e9e87dd1af35005d5aff85c16b.zip
dev-scheme/gauche-gtk: fix build with >=sys-libs/glibc-2.27
Package-Manager: Portage-2.3.79, Repoman-2.3.16 Signed-off-by: Akinori Hattori <hattya@gentoo.org>
Diffstat (limited to 'dev-scheme/gauche-gtk')
-rw-r--r--dev-scheme/gauche-gtk/files/gauche-gtk-glgd.patch14
-rw-r--r--dev-scheme/gauche-gtk/gauche-gtk-0.6_pre1.ebuild2
2 files changed, 16 insertions, 0 deletions
diff --git a/dev-scheme/gauche-gtk/files/gauche-gtk-glgd.patch b/dev-scheme/gauche-gtk/files/gauche-gtk-glgd.patch
new file mode 100644
index 000000000000..36a723fee98d
--- /dev/null
+++ b/dev-scheme/gauche-gtk/files/gauche-gtk-glgd.patch
@@ -0,0 +1,14 @@
+--- a/glgd/glgdGraph.c
++++ b/glgd/glgdGraph.c
+@@ -19,11 +19,7 @@
+ #define GLGDGRAPH_CAMORBIT (0)
+ #define GLGDGRAPH_NODENAME (1)
+ #define GLGDGRAPH_LINKNAME (2)
+-#ifdef __MINGW32__
+ #define _MAXFLT (HUGE_VAL)
+-#else /*!__MINGW32__*/
+-#define _MAXFLT (HUGE)
+-#endif /*!__MINGW32__*/
+ #define _PANGO_DPI (72)
+ #define _PANGO_SCALE (3)
+ #define _TEXW (1024)
diff --git a/dev-scheme/gauche-gtk/gauche-gtk-0.6_pre1.ebuild b/dev-scheme/gauche-gtk/gauche-gtk-0.6_pre1.ebuild
index e9d8d5648767..408f80d26af2 100644
--- a/dev-scheme/gauche-gtk/gauche-gtk-0.6_pre1.ebuild
+++ b/dev-scheme/gauche-gtk/gauche-gtk-0.6_pre1.ebuild
@@ -28,6 +28,8 @@ RDEPEND="x11-libs/gtk+:2
)"
S="${WORKDIR}/${MY_P}"
+PATCHES=( "${FILESDIR}"/${PN}-glgd.patch )
+
src_prepare() {
default
eautoconf