diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-10-04 11:51:15 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-10-04 11:51:15 +0100 |
commit | 713e25c0c3d1e5434ac60ec0549708ec2f744bb4 (patch) | |
tree | 9e9281ff07875c667fb3bf223166de68137f4635 /media-gfx | |
parent | 08b4047e14c989cfb931eff95973837f54ccc9e1 (diff) |
gentoo auto-resync : 04:10:2023 - 11:51:15
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/Manifest.gz | bin | 37531 -> 37530 bytes | |||
-rw-r--r-- | media-gfx/panini/Manifest | 2 | ||||
-rw-r--r-- | media-gfx/panini/files/panini-0.73.0-drop-register.patch | 75 | ||||
-rw-r--r-- | media-gfx/panini/panini-0.73.0-r1.ebuild | 56 |
4 files changed, 133 insertions, 0 deletions
diff --git a/media-gfx/Manifest.gz b/media-gfx/Manifest.gz Binary files differindex 6da517a1cc58..5c59ea16384a 100644 --- a/media-gfx/Manifest.gz +++ b/media-gfx/Manifest.gz diff --git a/media-gfx/panini/Manifest b/media-gfx/panini/Manifest index fb28687cc710..06fd4d3c5211 100644 --- a/media-gfx/panini/Manifest +++ b/media-gfx/panini/Manifest @@ -1,4 +1,6 @@ +AUX panini-0.73.0-drop-register.patch 2642 BLAKE2B 4480c4795b75ea0932973182d9be8f0e32898a2f78f9f77e96eb093ef959f3aeefa158b6628193d5b51b11183f220f7e91c34eae43b56229bd221c3d25f7f1de SHA512 b5ec5839115ca9a476b8aea39a6594df12295db4754951f4c3d86caf100f3e7e5a61ef5869a7fe86ce5cbd87cec4abd78ada4e943cd8e83c44d7f6093037a638 AUX panini.desktop 250 BLAKE2B 2fe866c696c3056ac914242fa14fd378517dc6fce02bdb9b7e2b6716e825ce9b2efe577132e3a1e71808aa7a17de57e9caa1121143e73d4007405b1ed6d7c666 SHA512 6e4cbf1d2a318d4e593e29d78668dd6cdaa37db82dcd7ed0aaee1b6e25a381c524708b404c9bec3902cd101c46c70e0546425eeed33c41c0deb17751df0f0f40 DIST panini-0.73.0.tar.gz 329164 BLAKE2B 1cd592d7c5cf230398a6496a27f8389375a670b1de1a0f6acdb2027884bc5059798ad86ad4deb7795402654b3eb9edf112c3c177c7c716d55a186e48e1567f1c SHA512 4c12c0af5f94079f0da8f08dd19d99fd06c16c653b21532eba01022ed5b78afdcea2a042902fd50d0ea442483699cfdf9b10fd7f4592e3bae60abd5d2dabf657 +EBUILD panini-0.73.0-r1.ebuild 993 BLAKE2B 5276ff4266aea472ffa54f248be19a5d4cd58bbd7c4856ee68acda20f887f68ed86810fe1a1a50f926fa27f4b84763e4a1755c92dd17935aadde2261c4b5a6f0 SHA512 a98995b2ac5fd628eb50df5dee3524b3918ace07924593b83783fda9357da9be3a42cc0681c66d56da6cbeb7d8d8b5f30df33470bee2c3590c5515aa31cc9a61 EBUILD panini-0.73.0.ebuild 932 BLAKE2B 5fbe549d028d54a41656c96ae48269a86a7da76074398e0ab8451f0c5736754ace52c2baaf2d912cc40fa65b01d1dfb7c160ff4815a38be2042ad8d0dd5d6cdf SHA512 43a9ce7559094d6115d4b133c4a67dc172924a61e8a2a10628dc540b4d0cb5811ddb2bf275efcd5c0b0d0e2f034cdfcb74ef06f10e9089c3d7d5105feac3690d MISC metadata.xml 479 BLAKE2B 6fa502982b8a147dc04dbfc3efc53ebcba952b4562c479e5738b7f66631b3624ac0720e4990c28f1b9ac7c756dff999ca582780775648c20963efbffc3343a15 SHA512 257c105a8fb5a185f7614cbf33ec56ce388eda70bd7cbd97c1fcbf573dfe628c36a8b38b5b17cb901e25b7e280c2df0e46732ec264e1bd3b1e4c09c13f7a5872 diff --git a/media-gfx/panini/files/panini-0.73.0-drop-register.patch b/media-gfx/panini/files/panini-0.73.0-drop-register.patch new file mode 100644 index 000000000000..c521c4e6dd5b --- /dev/null +++ b/media-gfx/panini/files/panini-0.73.0-drop-register.patch @@ -0,0 +1,75 @@ +https://github.com/lazarus-pkgs/panini/pull/16 +From: Brahmajit Das <brahmajit.xyz@gmail.com> +Date: Thu, 21 Sep 2023 09:12:45 +0000 +Subject: [PATCH] Fix C++17 does not allow register storage class specifier + +C++14 depricated register storage class and it was copletely removed +from C++17. Hence we get this build error with newer compilers like +Clang 16 and GCC 14. This patch should fix it. + +Bug: https://bugs.gentoo.org/896226 +Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com> +--- a/src/GLwindow.cpp ++++ b/src/GLwindow.cpp +@@ -901,7 +901,7 @@ void GLwindow::setImgAlpha( QImage * pim, double alpha ){ + qint32 m = (int( 255 * alpha ) & 255 ) << 24; + + for( int i = pim->width() * pim->height(); i > 0; i-- ){ +- register qint32 t = *pw & 0x00ffffff; ++ qint32 t = *pw & 0x00ffffff; + *pw++ = t + m; + } + } +@@ -916,8 +916,8 @@ void GLwindow::diceImgAlpha( QImage * pim, double alpha, int dw ){ + int r = 0, c = 0, w = pim->width(); + + for( int i = w * pim->height(); i > 0; i-- ){ +- register qint32 t = *pw & 0x00ffffff; +- register int d = 1; ++ qint32 t = *pw & 0x00ffffff; ++ int d = 1; + if( dw ){ // dice... + d = ((r + c) / dw) ^ ((r + w - c) / dw); + } +--- a/src/panocylinder.cpp ++++ b/src/panocylinder.cpp +@@ -113,10 +113,10 @@ panocylinder::panocylinder( int divs ){ + double vs = 0.5 * DEG2RAD( 150 ) / double(r2); + + for( int r = 0; r < r2; r++){ +- register double t = tan( r * vs ); +- register float * pv = pv0; +- register float * pu = pv0 + 3 *( cols + r * cols ); +- register float * pl = pv0 - 3 *( cols + r * cols ); ++ double t = tan( r * vs ); ++ float * pv = pv0; ++ float * pu = pv0 + 3 *( cols + r * cols ); ++ float * pl = pv0 - 3 *( cols + r * cols ); + for( col = 0; col < cols; col++){ + *pu++ = *pv; + *pl++ = *pv++; +--- a/src/panosphere.cpp ++++ b/src/panosphere.cpp +@@ -190,7 +190,7 @@ panosphere::panosphere( int divs ){ + float * ps = verts; // -> front face + + for( int i = 0; i < ppf; i++ ){ +- register float * p = ps; ++ float * p = ps; + + p += jf; // ->top + p[0] = ps[0]; // x = x +--- a/src/pvQtView.cpp ++++ b/src/pvQtView.cpp +@@ -465,7 +465,7 @@ void pvQtView::clipEyePosition(){ + x = c * sin(azi), + y = sin(alt), + z = c * cos(azi); +- register double s = eyeDistance; ++ double s = eyeDistance; + // the cube texture is only 1 radius wide + if( picType == pvQtPic::cub ) s *= 0.5; + eyex = x * s; +-- +2.42.0 + diff --git a/media-gfx/panini/panini-0.73.0-r1.ebuild b/media-gfx/panini/panini-0.73.0-r1.ebuild new file mode 100644 index 000000000000..2edaa0d3c56e --- /dev/null +++ b/media-gfx/panini/panini-0.73.0-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop qmake-utils xdg-utils + +MY_P="${P/p/P}-src" +DESCRIPTION="OpenGL-based panoramic image viewer" +HOMEPAGE="https://github.com/lazarus-pkgs/panini" +SRC_URI="https://github.com/lazarus-pkgs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtopengl:5 + dev-qt/qtwidgets:5 + sys-libs/zlib + virtual/glu +" +DEPEND="${RDEPEND} + app-arch/unzip +" + +DOCS=( NEWS {BUILD,README,USAGE}.md ) + +PATCHES=( + "${FILESDIR}"/${PN}-0.73.0-drop-register.patch +) + +src_prepare() { + default + eqmake5 ${PN}.pro +} + +src_install() { + einstalldocs + dobin panini + domenu "${FILESDIR}"/${PN}.desktop + newicon ui/panini-icon-blue.jpg ${PN}.jpg +} + +pkg_postinst() { + xdg_mimeinfo_database_update + xdg_desktop_database_update +} + +pkg_postrm() { + xdg_mimeinfo_database_update + xdg_desktop_database_update +} |