summaryrefslogtreecommitdiff
path: root/dev-perl/OpenGL-GLUT
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-04-10 06:31:55 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-04-10 06:31:55 +0100
commitfb0d4b003026d01b3d52956c7a0069b9363efff8 (patch)
tree26a4557e25c54bfa97446caa36fe4bead4b7994b /dev-perl/OpenGL-GLUT
parentabb30563c27d2f713333a02c5d124acc8e301d12 (diff)
gentoo auto-resync : 10:04:2024 - 06:31:54
Diffstat (limited to 'dev-perl/OpenGL-GLUT')
-rw-r--r--dev-perl/OpenGL-GLUT/Manifest4
-rw-r--r--dev-perl/OpenGL-GLUT/OpenGL-GLUT-0.720.0.ebuild38
-rw-r--r--dev-perl/OpenGL-GLUT/files/OpenGL-GLUT-0.720.0-no-display.patch55
-rw-r--r--dev-perl/OpenGL-GLUT/metadata.xml23
4 files changed, 120 insertions, 0 deletions
diff --git a/dev-perl/OpenGL-GLUT/Manifest b/dev-perl/OpenGL-GLUT/Manifest
new file mode 100644
index 000000000000..c824927415a8
--- /dev/null
+++ b/dev-perl/OpenGL-GLUT/Manifest
@@ -0,0 +1,4 @@
+AUX OpenGL-GLUT-0.720.0-no-display.patch 1699 BLAKE2B 33c92a8904ac356afcf152661b45c4e2a14e26c6120e1f0fb903f1903b9957882eb20593e7800496e215bb9d62925e6469d701ee7bbc2ae29264d60c806bb2c9 SHA512 d45c7ce24bf079de0775f5a75f42adee97612dbfacb708b47d5888cff509764bd6487ad8ad84efd926544d4fe6a71a2c77d89a536c6ba835d2ff4151eae9e72f
+DIST OpenGL-GLUT-0.72.tar.gz 481377 BLAKE2B ab17aeca021a9a52e1af2362602abb357f09215468f545e2639ef7e1225375dd88d9f5d367ef59713d479e2b907b00d67242ff8e91d187931c538b82804354ad SHA512 ade45f62e83ea279f9dabc03fa802cd401577a04f708293d829ca8a4b7fd5369579a010a018e45fce0d472e70b725222301f242bc48cf859c8a8430e68f43149
+EBUILD OpenGL-GLUT-0.720.0.ebuild 665 BLAKE2B f9a0eb89f2ff868ba833721ade6d8019b804a414540bb161f414d109f2fad52ebbea4cc6882f5cad3bd9b361d9dc3ea39d528d0ad9a81e480d1e97f9da761d75 SHA512 ba3fc2054950a13019ce7785f04132882af627b65b1d4a12b289a88e2ca73b6fff09b8dfd62befa7531d2375fa7fe557bd4e074ff133271917b5037e47295a06
+MISC metadata.xml 923 BLAKE2B 6fd4462fa9fca73d030b26e2bff107c310c24138e8505e2976d18f8d52cce0e0b5eee6e0b30ff7aba257b229f61098027a9713eaa9e544a18214237a29441bf7 SHA512 2db7e2241b5fdd4a4aeafd9df740c1e920f8337b800e954a276593f79f1550ccc5adde8cb10c0b65fdda6df7779a3e9cf596b3573ce2fc3613a690c9e972f874
diff --git a/dev-perl/OpenGL-GLUT/OpenGL-GLUT-0.720.0.ebuild b/dev-perl/OpenGL-GLUT/OpenGL-GLUT-0.720.0.ebuild
new file mode 100644
index 000000000000..1ec605acc121
--- /dev/null
+++ b/dev-perl/OpenGL-GLUT/OpenGL-GLUT-0.720.0.ebuild
@@ -0,0 +1,38 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DIST_AUTHOR=ETJ
+DIST_VERSION=0.72
+
+inherit perl-module
+
+DESCRIPTION="Perl bindings to GLUT/FreeGLUT GUI toolkit"
+
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ media-libs/freeglut:=
+ x11-libs/libICE:=
+ x11-libs/libXext:=
+ x11-libs/libXi:=
+ x11-libs/libXmu:=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.720.0-no-display.patch
+)
+
+src_prepare() {
+ # Per Fedora, "This is basically not a test, but an interactive demo"
+ mv test.pl demo.pl || die
+
+ # Unbundle GL headers
+ find include -type f -delete || die
+
+ perl-module_src_prepare
+}
diff --git a/dev-perl/OpenGL-GLUT/files/OpenGL-GLUT-0.720.0-no-display.patch b/dev-perl/OpenGL-GLUT/files/OpenGL-GLUT-0.720.0-no-display.patch
new file mode 100644
index 000000000000..17e2c1bd422b
--- /dev/null
+++ b/dev-perl/OpenGL-GLUT/files/OpenGL-GLUT-0.720.0-no-display.patch
@@ -0,0 +1,55 @@
+https://src.fedoraproject.org/rpms/perl-OpenGL-GLUT/blob/f39/f/OpenGL-GLUT-0.72-Don-t-check-current-display-for-extensions.patch
+--- a/Makefile.PL.orig
++++ b/Makefile.PL
+@@ -567,6 +567,7 @@ my $build_config =
+ {
+ 'NAME' => 'OpenGL::GLUT',
+ 'VERSION_FROM'=> 'lib/OpenGL/GLUT.pm',
++ 'PM' => { 'lib/OpenGL/GLUT.pm' => 'blib/lib/OpenGL/GLUT.pm' },
+ PREREQ_PM => {
+ 'OpenGL' => '0.70',
+ },
+@@ -604,9 +605,9 @@ my $build_config =
+ {
+ FILES =>
+ "utils/glversion.txt ".
+- "gl_exclude.h ".
+- "utils/glversion$Config{exe_ext} ".
+- "utils/glversion$Config{obj_ext}"
++ "gl_exclude.h "
++ #"utils/glversion$Config{exe_ext} ".
++ #"utils/glversion$Config{obj_ext}"
+ }
+ };
+
+@@ -825,6 +826,7 @@ sub get_extensions
+ print "GLUT not found\n";
+ }
+
++=cut
+ # Platform-specific makefiles for glversion
+ my $make_ver;
+ if ($IS_STRAWBERRY)
+@@ -883,6 +885,8 @@ sub get_extensions
+ die "get_extensions: no extensions found in $glv_file\n" if !keys %$gldata;
+
+ print "This looks like OpenGL Version: $gldata->{VERSION}\n";
++=cut
++ my $gldata = { };
+
+ # Parse glext_procs.h file
+ open GLEXT, "glext_procs.h" or die "get_extensions: could not open glext_procs.h: $!\n";
+@@ -901,11 +905,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->{FREEGLUT})
+ {
diff --git a/dev-perl/OpenGL-GLUT/metadata.xml b/dev-perl/OpenGL-GLUT/metadata.xml
new file mode 100644
index 000000000000..41c6c925b1d3
--- /dev/null
+++ b/dev-perl/OpenGL-GLUT/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://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>