From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 13E8D139085 for ; Sat, 24 Dec 2016 20:10:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7BA4821C038; Sat, 24 Dec 2016 20:10:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4D9B721C038 for ; Sat, 24 Dec 2016 20:10:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 11850341229 for ; Sat, 24 Dec 2016 20:10:51 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4B0A21F2F for ; Sat, 24 Dec 2016 20:10:49 +0000 (UTC) From: "Andreas Hüttel" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Hüttel" Message-ID: <1482610216.099664a9d810f22a31bc7d99232837397c6b129f.dilfridge@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/OpenGL/files/, dev-perl/OpenGL/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-perl/OpenGL/Manifest dev-perl/OpenGL/OpenGL-0.700.0.ebuild dev-perl/OpenGL/files/OpenGL-0.700.0-no-display.patch X-VCS-Directories: dev-perl/OpenGL/ dev-perl/OpenGL/files/ X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas Hüttel X-VCS-Revision: 099664a9d810f22a31bc7d99232837397c6b129f X-VCS-Branch: master Date: Sat, 24 Dec 2016 20:10:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 06ec566b-516b-4035-bbdc-af648eef3ee1 X-Archives-Hash: aaeebe2399ab7b42079292140426f0a6 commit: 099664a9d810f22a31bc7d99232837397c6b129f Author: Andreas K. Hüttel gentoo org> AuthorDate: Sat Dec 24 20:09:50 2016 +0000 Commit: Andreas Hüttel gentoo org> CommitDate: Sat Dec 24 20:10:16 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=099664a9 dev-perl/OpenGL: Version bump Package-Manager: portage-2.3.3 dev-perl/OpenGL/Manifest | 1 + dev-perl/OpenGL/OpenGL-0.700.0.ebuild | 51 +++++++++++ .../OpenGL/files/OpenGL-0.700.0-no-display.patch | 99 ++++++++++++++++++++++ 3 files changed, 151 insertions(+) diff --git a/dev-perl/OpenGL/Manifest b/dev-perl/OpenGL/Manifest index 8d55859..93d2a78 100644 --- a/dev-perl/OpenGL/Manifest +++ b/dev-perl/OpenGL/Manifest @@ -1 +1,2 @@ DIST OpenGL-0.6704.tar.gz 623036 SHA256 36f266e31d617fa9a1bd8928a7dc3b7c40c1bbbfa64bddefe22300ac2bc6c436 SHA512 3a2c9970802242ebae58256cd80dc81ac04a2af974105d3fbdf4dfcf1aa64a769b1ffcb5b0156eceb6bf7aed6eb6b2eb9332ec9f4724b0a1bc61d15f0de99d09 WHIRLPOOL f6cb34b30c7ef2af0d2dc16ab4b5d9f7216f2ab08c0bf904305f358fec751492fe605bdb783d6ebb9dcdb83fa3601f831e9162fe4bc0d33a68cbafa7c289b86c +DIST OpenGL-0.70.tar.gz 783810 SHA256 b20e2af4404b4901ab35bba6ad5e3a8aa60bff72413c99288f01018c4cf874e0 SHA512 7d418015b2553dd69805252b5957bc97013260617d5a358f692e29b8da884590421c81fbc71d4dd678c93a5c89047d6af8c32f15bf0bd0e4ce514c200e634af5 WHIRLPOOL 39094d8124f46f45595a01467ac40becdf33090a254475bb32810ea791952a7829fc6fcddc9f685ee8683f87604b81d29ab2fe21821fb9c8de8d4a6fe85470cf diff --git a/dev-perl/OpenGL/OpenGL-0.700.0.ebuild b/dev-perl/OpenGL/OpenGL-0.700.0.ebuild new file mode 100644 index 00000000..df2063f --- /dev/null +++ b/dev-perl/OpenGL/OpenGL-0.700.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DIST_AUTHOR=CHM +DIST_VERSION=0.70 + +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}"/${P}-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 +} diff --git a/dev-perl/OpenGL/files/OpenGL-0.700.0-no-display.patch b/dev-perl/OpenGL/files/OpenGL-0.700.0-no-display.patch new file mode 100644 index 00000000..e351c3f --- /dev/null +++ b/dev-perl/OpenGL/files/OpenGL-0.700.0-no-display.patch @@ -0,0 +1,99 @@ +diff -urN OpenGL-0.70.orig/Makefile.PL OpenGL-0.70/Makefile.PL +--- OpenGL-0.70.orig/Makefile.PL 2016-10-08 21:11:14.000000000 +0200 ++++ OpenGL-0.70/Makefile.PL 2016-12-24 21:08:08.674243142 +0100 +@@ -601,9 +601,9 @@ + { + 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}" + } + }; + +@@ -824,65 +824,6 @@ + print "GLUT not found\n"; + } + +- # Platform-specific makefiles for glversion +- my $make_ver; +- if ($IS_STRAWBERRY) +- { +- $make_ver = "&strawberry.bat"; +- print "strawberry glversion: '$make_ver'\n" if $verbose>1; +- } +- elsif ($IS_MINGW) +- { +- $make_ver = "&mingw.bat"; +- print "mingw glversion: '$make_ver'\n" if $verbose>1; +- } +- elsif ($IS_W32API) +- { +- $make_ver = ";make -f Makefile.cygwin " . (length($lib) ? "GLUT_LIB=$lib " : "") . (length($def) ? "GLUT_DEF=$def " : ""); +- print "cygwin glversion: '$make_ver'\n" if $verbose>1; +- } +- elsif ($^O eq 'MSWin32') +- { +- $make_ver = '&nmake -f makefile.mak ' . (length($def) ? "GLUT_DEF=$def " : ""); +- print "MSWin32 glversion: '$make_ver'\n" if $verbose>1; +- } +- elsif ($^O eq 'darwin') +- { +- $make_ver = ";make -f Makefile.macosx " . (length($lib) ? "GLUT_LIB=$lib " : "") . (length($def) ? "GLUT_DEF=$def " : ""); +- print "MacOSX glversion: '$make_ver'\n" if $verbose>1; +- } +- else +- { +- if ($ENV{TERM} ne 'xterm') +- { +- print "\nIn order to test your GPU's capabilities, run this make under an X11 shell\n\n"; +- } +- +- $make_ver = ";make -f Makefile " . (length($lib) ? "GLUT_LIB=$lib " : "") . (length($def) ? "GLUT_DEF=$def " : ""); +- print "glversion: '$make_ver'\n" if $verbose>1; +- } +- my $exec = 'cd utils'."$make_ver clean".$make_ver; +- print "glversion: $exec\n" if ($verbose); +- my $stat = `$exec`; +- print "\n$stat\n\n" if ($verbose); +- unlink "utils/freeglut.dll" or die "could not remove temporary freeglut: $!" if -f "utils/freeglut.dll"; +- +- # Parse glversion.txt file +- open GLDATA, $glv_file or die "get_extensions: could not open $glv_file: $!\n"; +- my $gldata = {}; +- my @gldata = ; +- close(GLDATA); +- +- foreach my $line (@gldata) +- { +- $line =~ s|[\r\n]+||; +- my($key,$val) = split('=',$line); +- $gldata->{$key} = $val; +- } +- die "get_extensions: no extensions found in $glv_file\n" if !keys %$gldata; +- +- print "This looks like OpenGL Version: $gldata->{VERSION}\n"; +- + # Parse glext_procs.h file + open GLEXT, "glext_procs.h" or die "get_extensions: could not open glext_procs.h: $!\n"; + my @lines = ; +@@ -896,14 +837,11 @@ + next if ($ext =~ m|^GL_VERSION_|); + $no_ext->{$ext}++; + } +- ++ use Config; ++ my $gldata = { }; + + # Create gl_exclude.h + die "Unable to write to $exc_file\n" if (!open(GLEXC,">$exc_file")); +- 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 "; + + # Fix GLUT flags based on results + if ($gldata->{FREEGLUT})