dev-scheme/gauche-gtk: drop x11-libs/gtkglext dependency

Closes: https://bugs.gentoo.org/698960
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Akinori Hattori <hattya@gentoo.org>
This commit is contained in:
Akinori Hattori
2020-02-08 18:21:45 +09:00
parent 9d1e37af78
commit 1e1e34afe4
3 changed files with 3 additions and 49 deletions

View File

@@ -1,14 +0,0 @@
--- 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)

View File

@@ -15,17 +15,13 @@ SRC_URI="https://github.com/shirok/${PN^g}2/archive/${PV_COMMIT}.tar.gz -> ${MY_
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 )
@@ -35,23 +31,6 @@ src_prepare() {
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
@@ -67,13 +46,5 @@ src_install() {
# 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
}

View File

@@ -8,9 +8,6 @@
<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>