+++ /dev/null
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-DIST_AUTHOR=CHM
-DIST_VERSION=0.6704
-
-inherit perl-module eutils
-
-DESCRIPTION="Perl interface providing graphics display using OpenGL"
-
-SLOT="0"
-KEYWORDS="amd64 arm ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
-IUSE="examples"
-
-RDEPEND="
- media-libs/freeglut:0=
- x11-libs/libICE:0=
- x11-libs/libXext:0=
- x11-libs/libXi:0=
- x11-libs/libXmu:0="
-DEPEND="${RDEPEND}"
-
-mydoc="Release_Notes"
-
-src_prepare() {
- eapply "${FILESDIR}"/${PN}-0.66-no-display.patch
- # This should be merely moved to t/ as it gets
- # installed to OS otherwise.
- # But it presently fails tests, and can't be made not to.
- # ( And will need virtualx when it can )
- # Something to do with OpenGL implementation ala eselect.
- perl_rm_files "test.pl";
- perl-module_src_prepare
-}
-
-src_compile() {
- sed -i -e 's/PERL_DL_NONLAZY=1//' Makefile || die
- perl-module_src_compile
-}
-src_install() {
- perl-module_src_install
- if use examples; then
- docompress -x /usr/share/doc/${PF}/examples
- insinto /usr/share/doc/${PF}/examples
- doins -r examples/*
- fi
-}
+++ /dev/null
-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)