summaryrefslogtreecommitdiff
path: root/dev-perl/OpenGL
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-perl/OpenGL
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-perl/OpenGL')
-rw-r--r--dev-perl/OpenGL/Manifest9
-rw-r--r--dev-perl/OpenGL/OpenGL-0.670.400.ebuild49
-rw-r--r--dev-perl/OpenGL/OpenGL-0.700.0.ebuild50
-rw-r--r--dev-perl/OpenGL/files/OpenGL-0.66-no-display.patch50
-rw-r--r--dev-perl/OpenGL/files/OpenGL-0.700.0-no-display.patch99
-rw-r--r--dev-perl/OpenGL/metadata.xml23
6 files changed, 280 insertions, 0 deletions
diff --git a/dev-perl/OpenGL/Manifest b/dev-perl/OpenGL/Manifest
new file mode 100644
index 000000000000..92c07b4e4c62
--- /dev/null
+++ b/dev-perl/OpenGL/Manifest
@@ -0,0 +1,9 @@
+AUX OpenGL-0.66-no-display.patch 1472 SHA256 b7f62c20e44d885ba4abbe735adf8b42994f029db4221368f43568e9b97ccaaf SHA512 8223d1163b343b73c66e7e3b3db623a487c221ae6ff8b61569303b7b37cbfc94e44ac3fe6612d0929789dfc4f70f884822dc1210f01b2dd44259146ad4faa846 WHIRLPOOL a449c6ac8d320edde6aaa62a1b52cffca121290a9421cc0bb2e85ac68bec7cd57a49075a4cab2be3578b5ee18b4f3dacf480f13f1262f292b8a473d1b2f8a2a6
+AUX OpenGL-0.700.0-no-display.patch 3270 SHA256 e3028c8016c0c0fbb3301eb7ba8104e797bc43737c951f91fae1b6f3cfd3e5b0 SHA512 be266e4b509a2c915e021bb27ceb3f0472bb250e03b64f9062e76f40a6f180d759e92680172b9df55f817a92c3cfd0fae660d9fb07fcfb7e51a06d631b08dfe2 WHIRLPOOL 8fe117d243f0bf2bfcd86bcc0f25c6a28295410571a66688caf7af28791da5e7e1de62fef03b6eb1f976dc77727c743dc8246ce6cf8e807af244f02b2c4b20e3
+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
+EBUILD OpenGL-0.670.400.ebuild 1126 SHA256 014f031a87ec6bac9e6e0a76166e1dfd24c071a44c243d3d249fb2ddecf33b94 SHA512 2ceab295b480c413ac8df082fc364be2009e758a60851c3500c6505e1cbc4287f81d7f495c942ee6ac71727e5e6cfa4a8902b78a456259d0d3d58f2d68443d5d WHIRLPOOL 6f131ce6a241cfb16bacff1c5563e6312256f066d76e560a3ebe5a811caea1f115eed254033bf5b8c0136d5ce676b160ad15f04b65466888ecabc841b647445a
+EBUILD OpenGL-0.700.0.ebuild 1123 SHA256 67a60b9b82ff64a6f5ca05fb8078929df6876dfe7045cfae1d3890e905871fbe SHA512 9a1cb09b35eccf2f66298635ecab62bcd2a152df31031215b05dcd6f982a8d45ec329fb86885c6fdfb610ca976dbcee87fa2576501b65ca22aff3ec11919f0b4 WHIRLPOOL e6bdf7f24d2f052c51dfb97f50db6ea4ad78677f6545e36d466d304fcbdcbe5c23b8bf1cdcc8cb7b2de3e2b4db9a91da6126db9221d3fc35459ba7ed7a603d78
+MISC ChangeLog 4000 SHA256 3e9c25a959b533e731c5afde9cd28d9a9e379dc09fe3d67622c3cacee05e5c9e SHA512 d6befe14d65297f3b9727a0836a3d834eecb9c5d18a667748554e2d7ebffb48a692e2a9d9afa39ce64a15876e7587aa6ab355c2250680de06fdbab59f7c55661 WHIRLPOOL c62c7f65ad5732cfe33c19599ce730dc48de6ab4c797cfe32b63defd08d648df5d0eef2d6d1bd62aebbbae7073ca7cc81b0df8efe13a8e7623c6cb9f20580e59
+MISC ChangeLog-2015 1368 SHA256 acd6018ce2d317ef2ec94cf0af1acbd1789bfa674f7946a06e101e58ff0cd3be SHA512 3fe3ed8c5d8a18fe3ad0df320a82525d8e6fc516b0af2272f1a8a7b0c0f03c5ba3bb44587085d9c798c012247288f7668d5adeea91a3e19641d5459ecaa55341 WHIRLPOOL 072ec8c80894ebf6015f16a88f61a0db66841dd609caea81fcf3b520da65f4e29f08d4d11a29a821024f198685352a066adb3824a9eb750ed440798dfdc105ca
+MISC metadata.xml 922 SHA256 e8284cd712e9c477d48ca2f2c8303600062fd47845d9c77172aaf4b92078035b SHA512 a186a10481c65733a1a5452d1bc64a4723984d68ab6baae2677a40d249e6ac414d696217bfd30daa01745434991eb05896048a010159ca0fbc2e443829f99a12 WHIRLPOOL 5b7550b01bb706682f63f712c54085fdf2fb65132c136684dcdaa69f01fcf17fd841cc945decc304d76c065cbda078462e7f9852747c213a70e1836ac91cc21c
diff --git a/dev-perl/OpenGL/OpenGL-0.670.400.ebuild b/dev-perl/OpenGL/OpenGL-0.670.400.ebuild
new file mode 100644
index 000000000000..31cacaff5d95
--- /dev/null
+++ b/dev-perl/OpenGL/OpenGL-0.670.400.ebuild
@@ -0,0 +1,49 @@
+# 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
+}
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 000000000000..3f84d3c549d9
--- /dev/null
+++ b/dev-perl/OpenGL/OpenGL-0.700.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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.66-no-display.patch b/dev-perl/OpenGL/files/OpenGL-0.66-no-display.patch
new file mode 100644
index 000000000000..6bdc334ba0b1
--- /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/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 000000000000..e351c3f3ac3c
--- /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 = <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 = <GLEXT>;
+@@ -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})
diff --git a/dev-perl/OpenGL/metadata.xml b/dev-perl/OpenGL/metadata.xml
new file mode 100644
index 000000000000..fd6e3fe0cf2c
--- /dev/null
+++ b/dev-perl/OpenGL/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+</maintainer>
+<maintainer type="project">
+ <email>perl@gentoo.org</email>
+ <name>Gentoo Perl Project</name>
+</maintainer>
+<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>
+ <remote-id type="cpan-module">OpenGL</remote-id>
+</upstream>
+</pkgmetadata>