Closes: https://bugs.gentoo.org/698960
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Akinori Hattori <hattya@gentoo.org>
+++ /dev/null
---- 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)
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc x86"
-IUSE="examples glgd nls opengl"
+IUSE="examples"
RESTRICT="test"
+RDEPEND="x11-libs/gtk+:2
+ dev-scheme/gauche"
DEPEND="${RDEPEND}
virtual/pkgconfig"
-RDEPEND="x11-libs/gtk+:2
- dev-scheme/gauche
- opengl? (
- x11-libs/gtkglext
- dev-scheme/gauche-gl
- )"
S="${WORKDIR}/${MY_P}"
PATCHES=( "${FILESDIR}"/${PN}-glgd.patch )
eautoconf
}
-src_configure() {
- local myconf=()
- if use opengl; then
- if use glgd; then
- if use nls; then
- myconf+=( --enable-glgd-pango )
- else
- myconf+=( --enable-glgd )
- fi
- else
- myconf+=( --enable-gtkgl )
- fi
- fi
-
- econf "${myconf[@]}"
-}
-
src_compile() {
emake stubs
emake
# install gtk-tutorial
docinto examples/gtk-tutorial
dodoc examples/gtk-tutorial/*
- if use opengl; then
- # install gtkglext
- dodoc -r examples/gtkglext
- if use glgd; then
- # install glgd
- dodoc -r examples/glgd
- fi
- fi
fi
}
<longdescription>
Gauche extension module to use GTK.
</longdescription>
- <use>
- <flag name="glgd">Enable GL graph draw</flag>
- </use>
<upstream>
<remote-id type="github">shirok/Gauche-gtk2</remote-id>
</upstream>