summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 00000000000..36a723fee98
--- /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 e9d8d564876..408f80d26af 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