summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Kowalik (Xarthisius) <xarthisius@gentoo.org>2011-01-06 10:37:32 +0100
committerKacper Kowalik (Xarthisius) <xarthisius@gentoo.org>2011-01-06 10:37:32 +0100
commit18452a1d716947748215fa608ce8aca4985817cb (patch)
tree72ac73c00ae6ea1bad924fbbc6606f1d2f1006ee
parent[x11-plugins/pidgin-latex] version bump (diff)
downloadxarthisius-18452a1d716947748215fa608ce8aca4985817cb.tar.gz
xarthisius-18452a1d716947748215fa608ce8aca4985817cb.tar.bz2
xarthisius-18452a1d716947748215fa608ce8aca4985817cb.zip
[media-libs/gle] salvage from g-x86
-rw-r--r--media-libs/gle/ChangeLog135
-rw-r--r--media-libs/gle/Manifest8
-rw-r--r--media-libs/gle/files/gle-3.0.1-autotools.patch101
-rw-r--r--media-libs/gle/files/gle-3.1.0-autotools-r1.patch147
-rw-r--r--media-libs/gle/gle-3.0.1-r3.ebuild45
-rw-r--r--media-libs/gle/gle-3.1.0-r2.ebuild45
-rw-r--r--media-libs/gle/metadata.xml5
7 files changed, 486 insertions, 0 deletions
diff --git a/media-libs/gle/ChangeLog b/media-libs/gle/ChangeLog
new file mode 100644
index 0000000..3b65094
--- /dev/null
+++ b/media-libs/gle/ChangeLog
@@ -0,0 +1,135 @@
+# ChangeLog for media-libs/gle
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/gle/ChangeLog,v 1.35 2011/01/05 10:37:38 xarthisius Exp $
+
+*gle-3.1.0-r2 (05 Jan 2011)
+
+ 05 Jan 2011; Kacper Kowalik <xarthisius@gentoo.org> -gle-3.1.0-r1.ebuild,
+ +gle-3.1.0-r2.ebuild, -files/gle-3.1.0-autotools.patch,
+ +files/gle-3.1.0-autotools-r1.patch:
+ Properly fix as-needed issues, fix man pages, migrate to
+ autotools-utils.eclass. Drop old
+
+ 05 Jan 2011; Tomáš Chvátal <scarabeus@gentoo.org> gle-3.0.1-r2.ebuild:
+ Fix implicit RDEPEND assignment.
+
+ 05 Jan 2011; Tomáš Chvátal <scarabeus@gentoo.org> gle-3.0.1-r2.ebuild,
+ gle-3.1.0-r1.ebuild, -files/configure-LANG.patch:
+ Fix building stable version. Update to EAPI=3. Introduce static-libs. Drop
+ unneeded patch.
+
+ 05 Jan 2011; Kacper Kowalik <xarthisius@gentoo.org> gle-3.0.1-r2.ebuild,
+ gle-3.1.0-r1.ebuild:
+ Add missing dies, make repoman happy
+
+ 02 Dec 2010; Diego E. Pettenò <flameeyes@gentoo.org> gle-3.1.0-r1.ebuild,
+ +files/gle-3.1.0-autotools.patch:
+ Fix buildsystem to work with modern automake, allows building with
+ libtool-2.4.
+
+ 16 Sep 2010; Tomáš Chvátal <scarabeus@gentoo.org> gle-3.0.1-r2.ebuild,
+ gle-3.1.0-r1.ebuild:
+ virtual/glut -> media-libs/glut
+
+ 24 Nov 2008; <ssuominen@gentoo.org> metadata.xml:
+ Re-assign to desktop-misc herd.
+
+ 04 Feb 2007; Samuli Suominen <drac@gentoo.org> gle-3.1.0-r1.ebuild:
+ Clean up.
+
+ 16 Dec 2006; Charlie Shepherd <masterdriverz@gentoo.org>
+ gle-3.1.0-r1.ebuild:
+ Force make install -j1; bug 157368
+
+ 02 Dec 2006; Charlie Shepherd <masterdriverz@gentoo.org>
+ gle-3.1.0-r1.ebuild:
+ Fix doc install location, thanks to Chris Mayo for the patch, bug 154900
+
+ 29 Oct 2006; Diego Pettenò <flameeyes@gentoo.org> gle-3.1.0-r1.ebuild:
+ Fix autotools dependencies. Closes bug #150142.
+
+ 06 Sep 2006; Diego Pettenò <flameeyes@gentoo.org> gle-3.1.0-r1.ebuild:
+ Add ~x86-fbsd keyword.
+
+*gle-3.1.0-r1 (27 Jul 2006)
+
+ 27 Jul 2006; Patrick McLean <chutzpah@gentoo.org> +gle-3.1.0-r1.ebuild:
+ New revision. Update ebuild to always build against xorg-x11, since nvidia's
+ opengl seems to be broken (bug #141859). Original ebuild contributed by
+ Samuli Suominen <sasuomin@uusikaupunki.fi> with patches from Tiziano Müller
+ <gentoo@dev-zero.ch>.
+
+ 26 Jul 2006; Patrick McLean <chutzpah@gentoo.org>
+ +files/gle-3.1.0-amd64-skip-example.patch, gle-3.1.0.ebuild:
+ Add patch to exclude the examples dir from compilation (bug 141780). Thanks
+ to Samuli Suominen <sasuomin@uusikaupunki.fi> for the ebuild and patch.
+
+*gle-3.1.0 (25 Jul 2006)
+
+ 25 Jul 2006; Patrick McLean <chutzpah@gentoo.org> +metadata.xml,
+ +gle-3.1.0.ebuild:
+ Version bump, fixes bug #122638. Ebuild submitted by Samuli Suominen
+ <sasuomin@uusikaupunki.fi>
+
+*gle-3.0.1-r3 (23 Jun 2006)
+
+ 23 Jun 2006; Petteri Räty <betelgeuse@gentoo.org> +gle-3.0.1-r3.ebuild:
+ Added a doc use flag for the html documentation that was previously always
+ installed.
+
+ 18 May 2006; Harald van Dijk <truedfx@gentoo.org>
+ +files/configure-LANG.patch, gle-3.0.1-r2.ebuild:
+ Fix compilation with et_EE locale (#133625)
+
+ 18 Apr 2006; Diego Pettenò <flameeyes@gentoo.org> gle-3.0.1-r2.ebuild:
+ Replace malloc.h inclusions with stdlib.h inclusions to build on FreeBSD and
+ OSX. Bug #130340.
+
+ 02 Jul 2005; Hardave Riar <hardave@gentoo.org> gle-3.0.1-r2.ebuild:
+ Stable on mips
+
+ 26 Feb 2005; Stephen P. Becker <geoman@gentoo.org> gle-3.0.1-r2.ebuild:
+ added ~mips keyword
+
+ 16 Dec 2004; Markus Rothe <corsair@gentoo.org> gle-3.0.1-r2.ebuild:
+ Stable on ppc64
+
+ 05 Nov 2004; Markus Rothe <corsair@gentoo.org> gle-3.0.1-r2.ebuild:
+ Marked ~ppc64; bug #69450
+
+ 05 Oct 2004; Jeremy Huddleston <eradicator@gentoo.org>
+ gle-3.0.1-r2.ebuild:
+ Using DESTDIR to fix multilib systems.
+
+ 13 Dec 2003; Guy Martin <gmsoft@gentoo.org> gle-3.0.1-r2.ebuild:
+ Marked stable on hppa.
+
+ 24 Nov 2003; Aron Griffis <agriffis@gentoo.org> gle-3.0.1-r2.ebuild:
+ Stable on ia64
+
+ 07 Aug 2003; Lisa Seelye <lisa@gentoo.org> gle-3.0.1-r2.ebuild:
+ Changed make to emake for bug 26149
+
+ 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
+
+*gle-3.0.1-r2 (21 Mar 2002)
+
+ 25 Mar 2003; Alastair Tse <liquidx@gentoo.org> gle-3.0.1-r2.ebuild:
+ fix SRC_URI
+
+ 23 Feb 2003; Aron Griffis <agriffis@gentoo.org> gle-3.0.1-r2.ebuild :
+ Add alpha to KEYWORDS
+
+ 21 Mar 2002; Seemant Kulleen <seemant@gentoo.org> gle-3.0.1-r2.ebuild :
+
+ HTML documentation will not be gzipped.
+
+*gle-3.0.1-r2 (1 Feb 2002)
+
+ 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog :
+
+ Added initial ChangeLog which should be updated whenever the package is
+ updated in any way. This changelog is targetted to users. This means that the
+ comments should well explained and written in clean English. The details about
+ writing correct changelogs are explained in the skel.ChangeLog file which you
+ can find in the root directory of the portage repository.
diff --git a/media-libs/gle/Manifest b/media-libs/gle/Manifest
new file mode 100644
index 0000000..c9f11fc
--- /dev/null
+++ b/media-libs/gle/Manifest
@@ -0,0 +1,8 @@
+AUX gle-3.0.1-autotools.patch 2380 RMD160 5e8d7da1bdd363f748b8d84a85dd684ac5f6157d SHA1 92f194f7842d7ed46722aa87871d1a81c057bc48 SHA256 b814b8c2aa7d525a8a7418ec9b4986fe0ffd56f379911e57320bc7d4b0749841
+AUX gle-3.1.0-autotools-r1.patch 3699 RMD160 2c71d4ccfe639677c2d9ce9e287a001eddb089d7 SHA1 44375e0dcc01863e8f1f58cc22d6e12609fad8fc SHA256 5a36262500057c12652890169a1b5502792049196f0641905e5e7148dba9f809
+DIST gle-3.0.1.tar.gz 705509 RMD160 3ee23fa37214273cbca493d6c72554a494c38dda SHA1 c3e2d79af8d2049314a4e31c40c583472c8701e1 SHA256 387d3d91e0493d93d88176fa096ba87b2fb16926719464329dc86b7bf436adbe
+DIST gle-3.1.0.tar.gz 806861 RMD160 49f217cf79ccc3c7e2802ae4347c15498f43db59 SHA1 ed6d7332df85357430b249854d4f2753f1228074 SHA256 dc8a74b5632b2c3fc84d33c2bf6ee43210b71b8ddf0a3166a25aeb46620bfa27
+EBUILD gle-3.0.1-r3.ebuild 1107 RMD160 964a122aaa0ea710f638affa4559e20e08b8b994 SHA1 60569540aadf46ba40fc9ca29f8782a22d0bb067 SHA256 ab02a042d7d322b62166be8525e973e0c74e66147215be7591889e9aa3c280d5
+EBUILD gle-3.1.0-r2.ebuild 1107 RMD160 e4e1d2c2cdeb0decff25ac34c7780753add60015 SHA1 d68086aeebc67fa6638ed838cba009cd4b2e57e7 SHA256 e5664b24c7c045e3ae882bdba7677fa00be8857c5c293bb2d0409991c49d0fc4
+MISC ChangeLog 4997 RMD160 c26b4e00702ba2d3298ce2daa7e288570cbe7d2d SHA1 72cf097c9e0a912c75ea19ca600bf9b35cc4039f SHA256 80de5d37d48b57330a0268fb60f8854f871cae9dc701ea416c9555154f3358c9
+MISC metadata.xml 166 RMD160 7b80226659bf40e97050b1ffce1858d5f20b3c60 SHA1 e6c6436c304a65b4a012a5b7be7ee264b228a645 SHA256 8e7de0a7f7c15840474de373a3ce36adcc5dd658b2e4d18366fcb63b964a0826
diff --git a/media-libs/gle/files/gle-3.0.1-autotools.patch b/media-libs/gle/files/gle-3.0.1-autotools.patch
new file mode 100644
index 0000000..3f4a1ae
--- /dev/null
+++ b/media-libs/gle/files/gle-3.0.1-autotools.patch
@@ -0,0 +1,101 @@
+--- a/configure.in
++++ b/configure.in
+@@ -29,6 +29,8 @@
+
+ AM_PROG_LIBTOOL
+
++PKG_PROG_PKG_CONFIG
++
+ AC_PROG_INSTALL
+ AC_PROG_RANLIB
+ AC_PROG_CC
+@@ -97,33 +99,13 @@
+ AC_ERROR([Can not find X11 development headers or libraries.])
+ fi
+
+-# AC_CHECK_HEADER(GL/gl.h)
+-# AC_CHECK_HEADER(GL/glut.h)
+-
+-# configure seems to work best when tested arguments take no arguments
+-AC_CHECK_LIB(GL, glGetError,
+- X_LIBS="-lGL $X_LIBS",
+- AC_MSG_ERROR([Cannot find required GL library]),
+- $X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS)
+-
+-AC_CHECK_LIB(GLU, gluNewQuadric,
+- X_LIBS="-lGLU $X_LIBS",
+- AC_MSG_ERROR([Cannot find required GLU library]),
+- $X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS)
++PKG_CHECK_MODULES([GLU], [glu])
+
+ AC_CHECK_LIB(glut, glutSwapBuffers,
+ X_LIBS="-lglut $X_LIBS",
+ AC_MSG_ERROR([Cannot find required glut library]),
+ $X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS)
+
+-
+-# This is how to use the variables set by AC_PATH_XTRA:
+-# cc @X_CFLAGS@ -c -o foo.o foo.c
+-# cc @X_LIBS@ (-lfoo...) @X_PRE_LIBS@ -lX11 @X_EXTRA_LIBS@
+-# (Perhaps X_LIBS should have been called X_LDFLAGS.)
+-
+-X_LIBS="$X_LIBS -lgle -lXi -lXext -lXmu -lXt -lX11"
+-
+ AC_OUTPUT(
+ Makefile
+ src/Makefile
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -18,7 +18,8 @@
+ urotate.c \
+ view.c
+
+-
++libgle_la_LIBADD = $(X_PRE_LIBS) $(X_LIBS) $(GLU_LIBS) $(X_EXTRA_LIBS)
++libgle_la_CFLAGS = $(X_CFLAGS) $(GLU_CFLAGS)
+ libgle_la_LDFLAGS = -version-info 3:0
+
+ # make sure we install gle.h into /usr/include/GL/gle.h or thereabouts
+@@ -42,7 +43,3 @@
+ .cvsignore \
+ README.gutil \
+ gle.h
+-
+-INCLUDES = \
+- @X_CFLAGS@
+-
+--- a/man/Makefile.am
++++ b/man/Makefile.am
+@@ -20,7 +20,7 @@
+ EXTRA_DIST = $(man_RAW) \
+ Makefile.sgi
+
+-SUFFIXES += .man .3gle
++SUFFIXES = .man .3gle
+
+ # for the ordinary install, just copy the raw files ....
+ .man.3gle:
+@@ -36,4 +36,4 @@
+ psroff -t -man < $< > $*.ps
+
+
+-CLEANFILES += $(man_MANS)
++CLEANFILES = $(man_MANS)
+--- a/public_html/Makefile.am
++++ b/public_html/Makefile.am
+@@ -82,5 +82,5 @@
+
+ EXTRA_DIST = $(html_HTML) $(gif_HTML) $(giforig_HTML) gle-3.0.lsm README
+
+-SUFFIXES += .html .gif .jpg
++SUFFIXES = .html .gif .jpg
+
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,5 +1,5 @@
+
+-SUBDIRS = src examples man public_html
++SUBDIRS = src
+
+ EXTRA_DIST = \
+ .cvsignore
diff --git a/media-libs/gle/files/gle-3.1.0-autotools-r1.patch b/media-libs/gle/files/gle-3.1.0-autotools-r1.patch
new file mode 100644
index 0000000..5297d4d
--- /dev/null
+++ b/media-libs/gle/files/gle-3.1.0-autotools-r1.patch
@@ -0,0 +1,147 @@
+* Fix buildsystem to work with modern automake, allows building with
+ libtool-2.4 (by flameeyes)
+* don't install docs
+* use pkg-config to detect libs
+* fix as-needed issues
+
+--- a/doc/html/Makefile.am
++++ b/doc/html/Makefile.am
+@@ -87,5 +87,5 @@
+
+ EXTRA_DIST = .cvsignore $(doc_DATA)
+
+-SUFFIXES += .html .gif .jpg
++SUFFIXES = .html .gif .jpg
+
+--- a/doc/Makefile.am
++++ b/doc/Makefile.am
+@@ -7,5 +7,5 @@
+
+ EXTRA_DIST = .cvsignore COPYING.artistic gle-3.0.lsm
+
+-SUFFIXES += .lsm
++SUFFIXES = .lsm
+
+--- a/man/Makefile.am
++++ b/man/Makefile.am
+@@ -22,7 +22,7 @@
+ $(man_RAW) \
+ Makefile.sgi
+
+-SUFFIXES += .man .3gle
++SUFFIXES = .man .3gle
+
+ # for the ordinary install, just copy the raw files ....
+ .man.3gle:
+@@ -38,4 +38,4 @@
+ psroff -t -man < $< > $*.ps
+
+
+-CLEANFILES += $(man_MANS)
++CLEANFILES = $(man_MANS)
+--- a/configure.in
++++ b/configure.in
+@@ -31,6 +31,8 @@
+ AC_PROG_INSTALL
+ AM_PROG_LIBTOOL
+
++PKG_PROG_PKG_CONFIG
++
+ AC_ISC_POSIX
+ AC_PROG_MAKE_SET
+ AC_HEADER_STDC
+@@ -95,46 +97,15 @@
+ AC_ERROR([Can not find X11 development headers or libraries.])
+ fi
+
+-# AC_CHECK_HEADER(GL/gl.h)
+-# AC_CHECK_HEADER(GL/glut.h)
+-
+-# configure seems to work best when tested subroutines take no arguments
+-AC_CHECK_LIB(GL, glGetError,
+- X_LIBS="-lGL $X_LIBS",
+- AC_MSG_ERROR([Cannot find required GL library]),
+- $X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS)
+-
+-AC_CHECK_LIB(GLU, gluNewQuadric,
+- X_LIBS="-lGLU $X_LIBS",
+- AC_MSG_ERROR([Cannot find required GLU library]),
+- $X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS)
+-
++PKG_CHECK_MODULES([GLU], [glu])
++PKG_CHECK_MODULES([XI], [xi])
++PKG_CHECK_MODULES([XMU], [xmu])
+ # ----------------------------------------------------------
+-# Newest versions of glut require Xmu, which doesn't show up
+-# by default in X_LIBS
+-AC_CHECK_LIB(Xmu, XmuLookupStandardColormap,
+- X_LIBS="-lXmu $X_LIBS",
+- AC_MSG_ERROR([Cannot find required Xmu library]),
+- $X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS)
+-
+-AC_CHECK_LIB(Xi, XListInputDevices,
+- X_LIBS="-lXi -lXext $X_LIBS",
+- AC_MSG_ERROR([Cannot find required Xi (X11 Input Extension) library]),
+- $X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS)
+
+-# latest versions of glut also use Xi the XInput extension
+ AC_CHECK_LIB(glut, glutSwapBuffers,
+- X_LIBS="-lglut $X_LIBS",
++ [],
+ AC_MSG_ERROR([Cannot find required glut library]),
+- $X_PRE_LIBS -lXmu $X_LIBS -lX11 $X_EXTRA_LIBS)
+-
+-
+-# This is how to use the variables set by AC_PATH_XTRA:
+-# cc @X_CFLAGS@ -c -o foo.o foo.c
+-# cc @X_LIBS@ (-lfoo...) @X_PRE_LIBS@ -lX11 @X_EXTRA_LIBS@
+-# (Perhaps X_LIBS should have been called X_LDFLAGS.)
+-
+-X_LIBS="-lgle $X_LIBS -lXt -lX11"
++ )
+
+ AC_OUTPUT(
+ Makefile
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,10 +1,6 @@
+
+-SUBDIRS = src doc examples man ms-visual-c swig
++SUBDIRS = src
+
+ EXTRA_DIST = \
+ .cvsignore \
+ gle.spec
+-
+-docdir = $(datadir)/doc/gle/
+-
+-doc_DATA = AUTHORS README COPYING
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -20,7 +20,8 @@
+ urotate.c \
+ view.c
+
+-
++libgle_la_LIBADD = $(X_PRE_LIBS) $(X_LIBS) $(GLU_LIBS) $(XMU_LIBS) $(XI_LIBS) $(X_EXTRA_LIBS)
++libgle_la_CFLAGS = $(X_CFLAGS) $(GLU_CFLAGS) $(XMU_CFLAGS) $(XI_CFLAGS)
+ libgle_la_LDFLAGS = -version-info 4:0:1
+
+ # make sure we install gle.h into /usr/include/GL/gle.h or thereabouts
+@@ -43,15 +44,6 @@
+ EXTRA_DIST = \
+ .cvsignore \
+ README.gutil \
+- COPYING.src \
+ gle.h
+
+-INCLUDES = \
+- @X_CFLAGS@
+-
+-CFLAGS = @CFLAGS@ -Wall -pedantic -Wstrict-prototypes -Wconversion
+-
+-docdir = $(datadir)/doc/gle/
+-
+-doc_DATA = COPYING.src
+-
++AM_CFLAGS = -Wall -pedantic -Wstrict-prototypes -Wconversion
diff --git a/media-libs/gle/gle-3.0.1-r3.ebuild b/media-libs/gle/gle-3.0.1-r3.ebuild
new file mode 100644
index 0000000..f8e61fb
--- /dev/null
+++ b/media-libs/gle/gle-3.0.1-r3.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/gle/gle-3.1.0-r2.ebuild,v 1.2 2011/01/05 10:39:40 xarthisius Exp $
+
+EAPI=3
+
+inherit autotools autotools-utils multilib
+
+DESCRIPTION="GL extrusion library"
+HOMEPAGE="http://www.linas.org/gle"
+SRC_URI="http://www.linas.org/${PN}/pub/${P}.tar.gz"
+
+LICENSE="Artistic GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="static-libs"
+
+RDEPEND="virtual/opengl
+ media-libs/freeglut
+ app-admin/eselect-opengl"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+PATCHES=( "${FILESDIR}/${P}-autotools.patch" )
+DOCS=( AUTHORS README )
+HTML_DOCS=( public_html/ )
+
+src_prepare() {
+ sed -i -e 's:malloc.h:stdlib.h:g' src/* || die #130340
+ autotools-utils_src_prepare
+ eautoreconf
+}
+
+src_configure() {
+ myeconfargs=(
+ --with-x
+ --x-libraries=/usr/$(get_libdir)/opengl/xorg-x11
+ )
+ autotools-utils_src_configure
+}
+
+src_install() {
+ autotools-utils_src_install
+ (cd man; for i in *.man; do newman ${i} ${i/.man/.3}; done)
+}
diff --git a/media-libs/gle/gle-3.1.0-r2.ebuild b/media-libs/gle/gle-3.1.0-r2.ebuild
new file mode 100644
index 0000000..fff9650
--- /dev/null
+++ b/media-libs/gle/gle-3.1.0-r2.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/gle/gle-3.1.0-r2.ebuild,v 1.2 2011/01/05 10:39:40 xarthisius Exp $
+
+EAPI=3
+
+inherit autotools autotools-utils multilib
+
+DESCRIPTION="GL extrusion library"
+HOMEPAGE="http://www.linas.org/gle"
+SRC_URI="http://www.linas.org/${PN}/pub/${P}.tar.gz"
+
+LICENSE="Artistic GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="static-libs"
+
+RDEPEND="virtual/opengl
+ media-libs/freeglut
+ app-admin/eselect-opengl"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+PATCHES=( "${FILESDIR}/${P}-autotools-r1.patch" )
+DOCS=( AUTHORS README )
+HTML_DOCS=( doc/html/ )
+
+src_prepare() {
+ sed -i -e 's:malloc.h:stdlib.h:g' src/* || die #130340
+ autotools-utils_src_prepare
+ eautoreconf
+}
+
+src_configure() {
+ myeconfargs=(
+ --with-x
+ --x-libraries=/usr/$(get_libdir)/opengl/xorg-x11
+ )
+ autotools-utils_src_configure
+}
+
+src_install() {
+ autotools-utils_src_install
+ (cd man; for i in *.man; do newman ${i} ${i/.man/.3}; done)
+}
diff --git a/media-libs/gle/metadata.xml b/media-libs/gle/metadata.xml
new file mode 100644
index 0000000..7312250
--- /dev/null
+++ b/media-libs/gle/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>desktop-misc</herd>
+</pkgmetadata>