diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-04-10 06:31:55 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-04-10 06:31:55 +0100 |
commit | fb0d4b003026d01b3d52956c7a0069b9363efff8 (patch) | |
tree | 26a4557e25c54bfa97446caa36fe4bead4b7994b /dev-perl | |
parent | abb30563c27d2f713333a02c5d124acc8e301d12 (diff) |
gentoo auto-resync : 10:04:2024 - 06:31:54
Diffstat (limited to 'dev-perl')
-rw-r--r-- | dev-perl/Manifest.gz | bin | 285101 -> 285273 bytes | |||
-rw-r--r-- | dev-perl/OpenGL-GLUT/Manifest | 4 | ||||
-rw-r--r-- | dev-perl/OpenGL-GLUT/OpenGL-GLUT-0.720.0.ebuild | 38 | ||||
-rw-r--r-- | dev-perl/OpenGL-GLUT/files/OpenGL-GLUT-0.720.0-no-display.patch | 55 | ||||
-rw-r--r-- | dev-perl/OpenGL-GLUT/metadata.xml | 23 | ||||
-rw-r--r-- | dev-perl/PDL/Manifest | 3 | ||||
-rw-r--r-- | dev-perl/PDL/PDL-2.87.0.ebuild | 140 | ||||
-rw-r--r-- | dev-perl/PDL/files/PDL-2.87.0-fortran.patch | 26 |
8 files changed, 289 insertions, 0 deletions
diff --git a/dev-perl/Manifest.gz b/dev-perl/Manifest.gz Binary files differindex 098951b4aa24..77de23779655 100644 --- a/dev-perl/Manifest.gz +++ b/dev-perl/Manifest.gz 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> diff --git a/dev-perl/PDL/Manifest b/dev-perl/PDL/Manifest index da0a242f781e..1e4d9e6460e2 100644 --- a/dev-perl/PDL/Manifest +++ b/dev-perl/PDL/Manifest @@ -1,5 +1,8 @@ AUX PDL-2.63.0-fortran.patch 1000 BLAKE2B 04ef082aa5838bf4dfde565c3aa9f4922633054d45afb759e58ca9fcc1fa385ce62353c871da0d4a5de0f5828599c4d878eb9e78fbe2b7e01e061b75f62639ec SHA512 3f740685aeb8008b895654dec8bf5663e64832de1bfa8c3a3fd7e7d20b490a02e4c1e8db35c60636bbc286db931cb5ff4391cab36c7fea048913ec965df65a8c +AUX PDL-2.87.0-fortran.patch 1160 BLAKE2B b42f1f097e26575c46c5d04f83be2fae67f93e506afd6e0b47547e19750178547826a1984767975e9a2e5219666ca6461ee5d5f4061e24f23a3a5bfa563c6407 SHA512 e4b0f9b44d5c0f6d357df70a626c1d1f59a717846063b481a1d27841722c1e199047c4b5023464e77607a168ed7f41c6792695a6dd6358b9fcce6abeeeccffdd AUX perldl.conf 2716 BLAKE2B 7cea3e06e00636c45d3ffaef5df236668aabdf52675a3447ef086cd3820df19fee4d6f1a0bd40a15d0374cebd6126a391647f973dd25803da01995cf58d6fe15 SHA512 ed05b5a5d8014a010093d1c03b90a72bc5629760a71f521988cfeaf70e6b59d9a4bfd8b4533a4dc3bcb46ba6fd3737cd7fb74ec086d3da8aac1b8239fa9ca8e5 DIST PDL-2.063.tar.gz 2813482 BLAKE2B eff1737c2d27a51b911f8dd32095bb3016cddf52a93242ddad9fad3e179cd499d84b17ef1fbed4e11bdc759823032636cc32994eea2b8c91c6adda7cb1f15ef9 SHA512 dfb776103fa98da990cc30939e218b392c7c25c8c645230a71c7e881cf5325c97f855fe46e9bc093c7517883f78457f67eee14012fa5b39790b8dfcfa1ec08c9 +DIST PDL-2.087.tar.gz 2980457 BLAKE2B 8a29b78e49bff5f682e460abf452f725b811ec0929bf8419050d62c868b51007a2d234c171b6a4435fa0c0f9e10f41e15dfc7507f9eabac7fc00f0d44a28ea36 SHA512 3c046cff3cba25d14b062041b3abc195a2995473b3e3e97428db0a06d5b9630079f7d9d12288aa1f2f95f9c562ee3079a7f17703abe947fb8bab5f0a5282e609 EBUILD PDL-2.63.0.ebuild 3716 BLAKE2B 7a7433bd724acff1f92ecbfece43d4d2ec9781cb3294e93a1047e4aef6702e9b970d293e1cfd4b32e293b51e268ac5f594bb4e55e59b98db665f10b28e397a2b SHA512 21aa44a0fcaf38504856a2a7d0a142734adfe355dc38e76e54eb72465d2b9912d4d905d7c8ad82333d6ae1cc47516f23acbe7dbe573fb5f884a2da7cd8c6de2a +EBUILD PDL-2.87.0.ebuild 3554 BLAKE2B d7a15de36790260c83fa58e57ebbf7baedac911a29bac66f2baf1ae9c13ee918cf548111543c66e4ffb86847658b8cb98eece42ff337b7b67e75baf36f655dd1 SHA512 1f4fce87a47b010cd109604e3e0494c3c754946432e79c042fc3e2b21e91d7d97ff5fd110ce9c6ebc97519d58600bcd3e410394fcff99c6712d49b0962fb07ab MISC metadata.xml 14077 BLAKE2B 10c3234191f6823efb3808787c5555e99cd2ea35b5ae8adfef16e09dcb9bc2985b9243accf6a223ac571b5fd8b6f7b7759d475aa2b2cbaaa081d835d10fb7010 SHA512 1180818b535bc07dafb8091aa34483a01c5f937190e21cda23e756f3805e52719fdf511f32715f7fe873f2d944cffed6cd1825a631ea84662bc0ab010f126152 diff --git a/dev-perl/PDL/PDL-2.87.0.ebuild b/dev-perl/PDL/PDL-2.87.0.ebuild new file mode 100644 index 000000000000..879802e954cd --- /dev/null +++ b/dev-perl/PDL/PDL-2.87.0.ebuild @@ -0,0 +1,140 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DIST_AUTHOR=ETJ +DIST_VERSION=2.087 +DIST_EXAMPLES=( "Example/*" ) + +FORTRAN_NEEDED=fortran + +inherit perl-module fortran-2 + +DESCRIPTION="Perl Data Language for scientific computing" + +LICENSE="|| ( Artistic GPL-1+ ) public-domain PerlDL" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+badval doc fortran gd gsl hdf netpbm pdl2 pgplot test" + +RDEPEND=" + sys-libs/ncurses:= + app-arch/sharutils + dev-perl/Astro-FITS-Header + dev-perl/Convert-UU + >=virtual/perl-Data-Dumper-2.121.0 + >=dev-perl/File-Map-0.570.0 + >=virtual/perl-Filter-Simple-0.880.0 + dev-perl/Filter + dev-perl/File-Which + >=dev-perl/Inline-0.830.0 + >=dev-perl/Inline-C-0.620.0 + >=virtual/perl-Scalar-List-Utils-1.330.0 + virtual/perl-Math-Complex + dev-perl/Module-Compile + >=dev-perl/OpenGL-0.700.0 + dev-perl/OpenGL-GLUT + >=dev-perl/TermReadKey-2.340.0 + || ( dev-perl/Term-ReadLine-Perl dev-perl/Term-ReadLine-Gnu ) + >=virtual/perl-Data-Dumper-2.121.0 + dev-perl/Pod-Parser + virtual/perl-File-Spec + virtual/perl-File-Temp + virtual/perl-Filter-Simple + virtual/perl-Storable + >=virtual/perl-Text-Balanced-2.50.0 + fortran? ( >=dev-perl/ExtUtils-F77-1.260.0 ) + gd? ( media-libs/gd ) + gsl? ( sci-libs/gsl ) + hdf? ( + sci-libs/hdf + dev-perl/Alien-HDF4 + ) + netpbm? ( + media-libs/netpbm + media-video/ffmpeg + ) + pdl2? ( + >=dev-perl/Devel-REPL-1.3.11 + || ( dev-perl/Term-ReadLine-Perl dev-perl/Term-ReadLine-Gnu ) + ) + pgplot? ( dev-perl/PGPLOT ) +" +DEPEND=" + ${RDEPEND} +" + +BDEPEND=" + ${RDEPEND} + >=virtual/perl-Carp-1.200.0 + >=dev-perl/Devel-CheckLib-1.10.0 + >=dev-perl/ExtUtils-Depends-0.402.0 + >=virtual/perl-ExtUtils-MakeMaker-7.120.0 + >=virtual/perl-ExtUtils-ParseXS-3.10.0 + virtual/perl-File-Path + fortran? ( >=dev-perl/ExtUtils-F77-1.130.0 ) + test? ( + dev-perl/Test-Exception + dev-perl/Test-Warn + dev-perl/Test-Deep + ) +" + +mydoc="BUGS DEPENDENCIES DEVELOPMENT Known_problems MANIFEST* Release_Notes" + +PATCHES=( + # Respect user choice for fortran compiler+flags, add pic + "${FILESDIR}"/${PN}-2.87.0-fortran.patch +) + +pkg_setup() { + perl_set_version + use fortran && fortran-2_pkg_setup +} + +src_prepare() { + perl-module_src_prepare + find . -name Makefile.PL -exec \ + sed -i -e "s|/usr|${EPREFIX}/usr|g" {} \; || die +} + +src_configure() { + sed -i \ + -e '/USE_POGL/s/=>.*/=> 1,/' \ + -e "/WITH_3D/s/=>.*/=> 1,/" \ + -e "/HTML_DOCS/s/=>.*/=> $(use doc && echo 1 || echo 0),/" \ + -e "/WITH_BADVAL/s/=>.*/=> $(use badval && echo 1|| echo 0),/" \ + -e "/WITH_DEVEL_REPL/s/=>.*/=> $(use pdl2 && echo 1 || echo 0),/" \ + -e "/WITH_GSL/s/=>.*/=> $(use gsl && echo 1 || echo 0),/" \ + -e "/WITH_GD/s/=>.*/=> $(use gd && echo 1 || echo 0),/" \ + -e "/WITH_HDF/s/=>.*/=> $(use hdf && echo 1 || echo 0),/" \ + -e "/WITH_MINUIT/s/=>.*/=> $(use fortran && echo 1|| echo 0),/" \ + -e "/WITH_PGPLOT/s/=>.*/=> $(use pgplot && echo 1 || echo 0),/" \ + -e "/WITH_POSIX_THREADS/s/=>.*/=> 1,/" \ + -e "/WITH_PROJ/s/=>.*/=> $(echo 0),/" \ + -e "/WITH_SLATEC/s/=>.*/=> $(use fortran && echo 1|| echo 0),/" \ + perldl.conf || die + perl-module_src_configure +} + +src_test() { + MAKEOPTS+=" -j1" perl-module_src_test +} + +src_install() { + perl-module_src_install + cp Doc/scantree.pl "${D}"/${VENDOR_ARCH}/PDL/Doc || die +} + +pkg_postinst() { + perl "${VENDOR_ARCH}/PDL/Doc/scantree.pl" || die + elog "Building perldl.db done. You can recreate this at any time" + elog "by running:" + elog "perl ${VENDOR_ARCH}/PDL/Doc/scantree.pl" +} + +pkg_prerm() { + rm -rf "${EROOT}"/var/lib/pdl/html + rm -f "${EROOT}"/var/lib/pdl/{pdldoc.db,Index.pod} +} diff --git a/dev-perl/PDL/files/PDL-2.87.0-fortran.patch b/dev-perl/PDL/files/PDL-2.87.0-fortran.patch new file mode 100644 index 000000000000..96a676e970eb --- /dev/null +++ b/dev-perl/PDL/files/PDL-2.87.0-fortran.patch @@ -0,0 +1,26 @@ +diff --git a/Libtmp/Minuit/Makefile.PL b/Libtmp/Minuit/Makefile.PL +index bd2c933..2268225 100644 +--- a/Libtmp/Minuit/Makefile.PL ++++ b/Libtmp/Minuit/Makefile.PL +@@ -125,7 +125,7 @@ undef &MY::postamble; # suppress warning + $orig .= "FFLAGS = $hack_64bit $mycflags \$(OPTIMIZE)\n"; + $orig .= join "\n",map { + ("minuitlib/$_\$(OBJ_EXT): minuitlib/$_.f +- $mycompiler -c \$(FFLAGS) -o minuitlib/$_\$(OBJ_EXT) minuitlib/$_.f ++ \$(FC) \$(FFLAGS) -fPIC -c -o minuitlib/$_\$(OBJ_EXT) $mycflags minuitlib/$_.f + " )} @minuitfiles; + return $orig; + }; +diff --git a/Libtmp/Slatec/Makefile.PL b/Libtmp/Slatec/Makefile.PL +index 443d53b..b4675f7 100644 +--- a/Libtmp/Slatec/Makefile.PL ++++ b/Libtmp/Slatec/Makefile.PL +@@ -85,7 +85,7 @@ undef &MY::postamble; # suppress warning + $orig =~ s/:\s*slatec\.pd/: slatec.pd/; + $orig .= "FFLAGS = $hack_64bit $mycflags \$(OPTIMIZE)\n"; + join "\n", $orig, map "$_\$(OBJ_EXT): $_.f +- $mycompiler -c \$(FFLAGS) -o $_\$(OBJ_EXT) $_.f", @slatecfiles; ++ \$(FC) \$(FFLAGS) -c -fPIC -o $_\$(OBJ_EXT) $mycflags $_.f", @slatecfiles; + }; + + # Remove i386 option for OS X recent versions for better build, dual arch does not work anyway |