summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Kowalik <xarthisius@gentoo.org>2011-01-05 10:37:39 +0000
committerKacper Kowalik <xarthisius@gentoo.org>2011-01-05 10:37:39 +0000
commit8644fe87a58f146c0d6e3e032e56e9c08d31c558 (patch)
tree73b4fd7163f476a886dce76a9fc30e504e4a461a /media-libs
parentFix maintainer mode called automake. Per bug #350100. (diff)
downloadhistorical-8644fe87a58f146c0d6e3e032e56e9c08d31c558.tar.gz
historical-8644fe87a58f146c0d6e3e032e56e9c08d31c558.tar.bz2
historical-8644fe87a58f146c0d6e3e032e56e9c08d31c558.zip
Properly fix as-needed issues, fix man pages, migrate to autotools-utils.eclass. Drop old
Package-Manager: portage-2.2.0_alpha10_p22/cvs/Linux x86_64
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/gle/ChangeLog10
-rw-r--r--media-libs/gle/Manifest6
-rw-r--r--media-libs/gle/files/gle-3.1.0-autotools-r1.patch118
-rw-r--r--media-libs/gle/files/gle-3.1.0-autotools.patch54
-rw-r--r--media-libs/gle/gle-3.1.0-r1.ebuild50
-rw-r--r--media-libs/gle/gle-3.1.0-r2.ebuild45
6 files changed, 175 insertions, 108 deletions
diff --git a/media-libs/gle/ChangeLog b/media-libs/gle/ChangeLog
index c293c1b82ec6..3b650943a5aa 100644
--- a/media-libs/gle/ChangeLog
+++ b/media-libs/gle/ChangeLog
@@ -1,6 +1,14 @@
# 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.34 2011/01/05 08:48:20 scarabeus Exp $
+# $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.
diff --git a/media-libs/gle/Manifest b/media-libs/gle/Manifest
index 109a3d3b8f5d..4949117ab1ad 100644
--- a/media-libs/gle/Manifest
+++ b/media-libs/gle/Manifest
@@ -1,7 +1,7 @@
-AUX gle-3.1.0-autotools.patch 1533 RMD160 458a420786db8151856f82a1b42881c1a0c82de0 SHA1 c1b1f73ee43c55df0c1c5efe5884cdfdc92c5973 SHA256 f763daacaed6d1ac08931788ad32c70585800d4b3a610733e4b6ef56b33b3870
+AUX gle-3.1.0-autotools-r1.patch 3005 RMD160 73d72b2955a9bb1c8e74e96419add444a3332bd1 SHA1 c71f3df3cd2dd251b20685b80d729e0683e56c6b SHA256 93af855c7df1b1698d538a6a93e9a21f79a23fb20fd4b1ba9cccc2b894fdec6d
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-r2.ebuild 1258 RMD160 096c52fbeaed54af44ef9f968bc16bfa3a8b76aa SHA1 8804d5db92b5d9846aaab6892aadf451dadef167 SHA256 319566b56173246107a9d1525621926e2dd7d6e7f05ef4d65de97a4eb525fcf1
-EBUILD gle-3.1.0-r1.ebuild 1397 RMD160 ba238241cf04ddbbf3d02259e3ed0ee9c38bbb1d SHA1 3cee336d1810a211f1a235b5607a6feaa48568a8 SHA256 1b336a389c02d393f2c11cf1660d4fb28beb44151a94c4f090204fa63696c6f1
-MISC ChangeLog 4699 RMD160 038800e50a5efcb608383bfcc5c84ddb853a3348 SHA1 b97cc3c866ff4b4ef2847c9536d30dbc9c465f69 SHA256 dc24e0047ef16d5f4f6212fce571e3508ec73442f6e691e657e0e983940161d9
+EBUILD gle-3.1.0-r2.ebuild 1105 RMD160 86984b8e29a6bc3e61f51945180a2532741a5f48 SHA1 95ea650453c12829609f1c498e0647ae4b84093b SHA256 d6bd815f728be84e4fbf5a21a30b02ea1027dbeb4261f39873e26bf882a9aa92
+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.1.0-autotools-r1.patch b/media-libs/gle/files/gle-3.1.0-autotools-r1.patch
new file mode 100644
index 000000000000..8f6e8f649fac
--- /dev/null
+++ b/media-libs/gle/files/gle-3.1.0-autotools-r1.patch
@@ -0,0 +1,118 @@
+* 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
diff --git a/media-libs/gle/files/gle-3.1.0-autotools.patch b/media-libs/gle/files/gle-3.1.0-autotools.patch
deleted file mode 100644
index 40359d85d54c..000000000000
--- a/media-libs/gle/files/gle-3.1.0-autotools.patch
+++ /dev/null
@@ -1,54 +0,0 @@
-Index: gle-3.1.0/doc/Makefile.am
-===================================================================
---- gle-3.1.0.orig/doc/Makefile.am
-+++ gle-3.1.0/doc/Makefile.am
-@@ -7,5 +7,5 @@ doc_DATA = COPYING.artistic gle-3.0.lsm
-
- EXTRA_DIST = .cvsignore COPYING.artistic gle-3.0.lsm
-
--SUFFIXES += .lsm
-+SUFFIXES = .lsm
-
-Index: gle-3.1.0/doc/html/Makefile.am
-===================================================================
---- gle-3.1.0.orig/doc/html/Makefile.am
-+++ gle-3.1.0/doc/html/Makefile.am
-@@ -87,5 +87,5 @@ doc_DATA = $(html_HTML) $(gif_HTML) $(g
-
- EXTRA_DIST = .cvsignore $(doc_DATA)
-
--SUFFIXES += .html .gif .jpg
-+SUFFIXES = .html .gif .jpg
-
-Index: gle-3.1.0/man/Makefile.am
-===================================================================
---- gle-3.1.0.orig/man/Makefile.am
-+++ gle-3.1.0/man/Makefile.am
-@@ -22,7 +22,7 @@ EXTRA_DIST = \
- $(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 @@ SUFFIXES += .man .3gle
- psroff -t -man < $< > $*.ps
-
-
--CLEANFILES += $(man_MANS)
-+CLEANFILES = $(man_MANS)
-Index: gle-3.1.0/src/Makefile.am
-===================================================================
---- gle-3.1.0.orig/src/Makefile.am
-+++ gle-3.1.0/src/Makefile.am
-@@ -49,7 +49,7 @@ EXTRA_DIST = \
- INCLUDES = \
- @X_CFLAGS@
-
--CFLAGS = @CFLAGS@ -Wall -pedantic -Wstrict-prototypes -Wconversion
-+AM_CFLAGS = -Wall -pedantic -Wstrict-prototypes -Wconversion
-
- docdir = $(datadir)/doc/gle/
-
diff --git a/media-libs/gle/gle-3.1.0-r1.ebuild b/media-libs/gle/gle-3.1.0-r1.ebuild
deleted file mode 100644
index a59c0395bc11..000000000000
--- a/media-libs/gle/gle-3.1.0-r1.ebuild
+++ /dev/null
@@ -1,50 +0,0 @@
-# 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-r1.ebuild,v 1.11 2011/01/05 08:47:06 scarabeus Exp $
-
-EAPI=3
-
-inherit autotools multilib
-
-DESCRIPTION="GL extrusion library"
-HOMEPAGE="http://www.linas.org/gle"
-SRC_URI="http://www.linas.org/gle/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="doc static-libs"
-
-DEPEND="virtual/opengl
- media-libs/freeglut
- app-admin/eselect-opengl"
-RDEPEND="${DEPEND}"
-
-src_prepare() {
- # Replace inclusion of malloc.h with stdlib.h as needed by Mac OS X and
- # FreeBSD. See bug #130340
- sed -i -e 's:malloc.h:stdlib.h:g' src/* || die
-
- # use proper docdir
- sed -i -e 's:\$(datadir)/doc/gle:\$(datadir)/doc/${PF}:' doc/Makefile.am || die
- sed -i -e 's:\$(datadir)/doc/gle/html:\$(datadir)/doc/${PF}/html:' doc/html/Makefile.am || die
-
- # Don't build binary examples as they never get installed. See bug 141859
- sed -i -e 's:examples::' Makefile.am || die
-
- epatch "${FILESDIR}"/${P}-autotools.patch
-
- eautoreconf
-}
-
-src_configure() {
- econf \
- --with-x \
- $(use_enable static-libs static) \
- --x-libraries=/usr/$(get_libdir)/opengl/xorg-x11
-}
-
-src_install() {
- emake -j1 DESTDIR="${D}" install || die "emake install failed"
- dodoc AUTHORS README
-}
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 000000000000..270f9c251413
--- /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.1 2011/01/05 10:37:39 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/gle/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)
+}