public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/sci:master commit in: dev-perl/OpenGL/, dev-perl/OpenGL/files/
@ 2012-06-16  0:43 Sebastien Fabbro
  0 siblings, 0 replies; only message in thread
From: Sebastien Fabbro @ 2012-06-16  0:43 UTC (permalink / raw
  To: gentoo-commits

commit:     01cd6aa205e6fc62ae5899b3769a28c189b24984
Author:     Sébastien Fabbro <sebfabbro <AT> gmail <DOT> com>
AuthorDate: Sat Jun 16 00:40:40 2012 +0000
Commit:     Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Sat Jun 16 00:40:40 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=01cd6aa2

dev-perl/OpenGL: Initial import

(Portage version: 2.1.10.63/git/Linux x86_64, unsigned Manifest commit)

---
 dev-perl/OpenGL/ChangeLog                          |   10 ++++
 dev-perl/OpenGL/OpenGL-0.66.ebuild                 |   34 +++++++++++++
 dev-perl/OpenGL/files/OpenGL-0.66-no-display.patch |   50 ++++++++++++++++++++
 dev-perl/OpenGL/metadata.xml                       |   16 ++++++
 4 files changed, 110 insertions(+), 0 deletions(-)

diff --git a/dev-perl/OpenGL/ChangeLog b/dev-perl/OpenGL/ChangeLog
new file mode 100644
index 0000000..7b48709
--- /dev/null
+++ b/dev-perl/OpenGL/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-perl/OpenGL
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*OpenGL-0.66 (16 Jun 2012)
+
+  16 Jun 2012; Sébastien Fabbro <bicatali@gentoo.org> +OpenGL-0.66.ebuild,
+  +files/OpenGL-0.66-no-display.patch, +metadata.xml:
+  dev-perl/OpenGL: Initial import
+

diff --git a/dev-perl/OpenGL/OpenGL-0.66.ebuild b/dev-perl/OpenGL/OpenGL-0.66.ebuild
new file mode 100644
index 0000000..e3aa5cd
--- /dev/null
+++ b/dev-perl/OpenGL/OpenGL-0.66.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+MODULE_AUTHOR="CHM"
+
+inherit perl-module eutils
+
+DESCRIPTION="Perl interface providing graphics display using OpenGL"
+
+LICENSE="|| ( Artistic GPL-1 GPL-2 GPL-3 )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="media-libs/freeglut
+	x11-libs/libICE
+	x11-libs/libXext
+	x11-libs/libXi
+	x11-libs/libXmu"
+DEPEND="${RDEPEND}"
+
+mydoc="Release_Notes"
+
+src_prepare() {
+	epatch "${FILESDIR}"/${P}-no-display.patch
+}
+
+src_compile() {
+	sed -i -e 's/PERL_DL_NONLAZY=1//' Makefile || die
+	perl-module_src_compile
+}

diff --git a/dev-perl/OpenGL/files/OpenGL-0.66-no-display.patch b/dev-perl/OpenGL/files/OpenGL-0.66-no-display.patch
new file mode 100644
index 0000000..6bdc334
--- /dev/null
+++ b/dev-perl/OpenGL/files/OpenGL-0.66-no-display.patch
@@ -0,0 +1,50 @@
+Don't check current display for extensions, build all.
+
+diff -up OpenGL-0.62/Makefile.PL.dist OpenGL-0.62/Makefile.PL
+--- OpenGL-0.62/Makefile.PL.dist	2009-12-11 01:10:00.000000000 +0100
++++ OpenGL-0.62/Makefile.PL	2010-01-07 13:00:26.000000000 +0100
+@@ -579,9 +579,9 @@ my $build_config =
+   {
+     FILES =>
+       "Config.pm ".
+-      "utils/glversion.txt ".
+-      "utils/glversion$Config{exe_ext} ".
+-      "utils/glversion$Config{obj_ext}"
++      "utils/glversion.txt "
++      #"utils/glversion$Config{exe_ext} ".
++      #"utils/glversion$Config{obj_ext}"
+   }
+ };
+ 
+@@ -790,6 +790,7 @@ sub get_extensions
+     print "GLUT not found\n";
+   }
+ 
++=cut
+   # Platform-specific makefiles for glversion
+   my $make_ver;
+   if ($IS_MINGW)
+@@ -848,7 +849,9 @@ sub get_extensions
+      print "get_extensions: no extensions found in $glv_file\n" if $verbose;
+      return '';
+   }
+-
++=cut
++  use Config;
++  my $gldata = { };
+ 
+   # Parse glext_procs.h file
+   return '' if (!open(GLEXT,"glext_procs.h"));
+@@ -867,10 +870,12 @@ sub get_extensions
+ 
+   # Create gl_exclude.h
+   die "Unable to write to $exc_file\n" if (!open(GLEXC,">$exc_file"));
++=cut
+   print GLEXC "// OpenGL Extension Exclusions - may be modified before building.\n";
+   print GLEXC "//\n";
+   print GLEXC "// Generated for ".$gldata->{VENDOR}.", ".$gldata->{RENDERER}."\n";
+   print GLEXC "// OpenGL v".$gldata->{VERSION}.", using ";
++=cut
+ 
+   # Fix GLUT flags based on results
+   if ($gldata->{GLUT} > 0)

diff --git a/dev-perl/OpenGL/metadata.xml b/dev-perl/OpenGL/metadata.xml
new file mode 100644
index 0000000..44f1713
--- /dev/null
+++ b/dev-perl/OpenGL/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<herd>perl</herd>
+<longdescription lang="en">
+  OpenGL is a Perl module that provides an interface to most of Open Graphics
+  Library, API versions 1.0, 1.1 and 1.2. There is full support for the Utility
+  Toolkit (GLUT) up to version 3 and provides some additional functionality via
+  partial support for the Utility Library (GLU). It also provides functionality
+  to use the X Window System (through X11 and GLX) as an alternative to GLUT.
+</longdescription>
+<upstream>
+  <remote-id type="cpan">OpenGL</remote-id>
+</upstream>
+</pkgmetadata>



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-06-16  0:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-16  0:43 [gentoo-commits] proj/sci:master commit in: dev-perl/OpenGL/, dev-perl/OpenGL/files/ Sebastien Fabbro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox