summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrahmajit Das <brahmajit.xyz@gmail.com>2023-10-07 21:04:26 +0200
committerDavid Seifert <soap@gentoo.org>2023-10-07 21:04:26 +0200
commitc0b729c45e1864c6181aa3a077db47a5f68c344a (patch)
treea5660e11a8f4b40a4d8ab433357ba52e8762227a /dev-games
parentdev-python/confusable_homoglyphs: fix installed version (diff)
downloadgentoo-c0b729c45e1864c6181aa3a077db47a5f68c344a.tar.gz
gentoo-c0b729c45e1864c6181aa3a077db47a5f68c344a.tar.bz2
gentoo-c0b729c45e1864c6181aa3a077db47a5f68c344a.zip
dev-games/irrlicht: Fix C++17 does not allow register storage class
* also update EAPI 7 -> 8 Closes: https://github.com/gentoo/gentoo/pull/33236 Closes: https://bugs.gentoo.org/894764 Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com> Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'dev-games')
-rw-r--r--dev-games/irrlicht/files/irrlicht-1.8.4-drop-register.patch33
-rw-r--r--dev-games/irrlicht/irrlicht-1.8.4-r2.ebuild (renamed from dev-games/irrlicht/irrlicht-1.8.4-r1.ebuild)32
2 files changed, 49 insertions, 16 deletions
diff --git a/dev-games/irrlicht/files/irrlicht-1.8.4-drop-register.patch b/dev-games/irrlicht/files/irrlicht-1.8.4-drop-register.patch
new file mode 100644
index 000000000000..532b14f2503e
--- /dev/null
+++ b/dev-games/irrlicht/files/irrlicht-1.8.4-drop-register.patch
@@ -0,0 +1,33 @@
+Bug: https://bugs.gentoo.org/894764
+
+--- a/source/Irrlicht/CColorConverter.cpp
++++ b/source/Irrlicht/CColorConverter.cpp
+@@ -165,7 +165,7 @@
+ out += lineWidth * height;
+
+ u32 x;
+- register u32 c;
++ u32 c;
+ for (u32 y=0; y < (u32) height; ++y)
+ {
+ if (flip)
+--- a/source/Irrlicht/CMY3DHelper.h
++++ b/source/Irrlicht/CMY3DHelper.h
+@@ -269,7 +269,7 @@
+ unsigned char *out_buf, int out_buf_size)
+ {
+ // we start out with 3 repeating bytes
+- register int len = 3;
++ int len = 3;
+
+ unsigned char ch;
+
+@@ -328,7 +328,7 @@
+ //-----------------------------------------------------------
+ void flush_outbuf(unsigned char *out_buf, int out_buf_size)
+ {
+- register int pos=0;
++ int pos=0;
+
+ if(!outbuf_cnt)
+ return; // nothing to do */
diff --git a/dev-games/irrlicht/irrlicht-1.8.4-r1.ebuild b/dev-games/irrlicht/irrlicht-1.8.4-r2.ebuild
index 1cca76678df5..88d3925ec77c 100644
--- a/dev-games/irrlicht/irrlicht-1.8.4-r1.ebuild
+++ b/dev-games/irrlicht/irrlicht-1.8.4-r2.ebuild
@@ -1,24 +1,28 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
+
inherit toolchain-funcs
DESCRIPTION="open source high performance realtime 3D engine written in C++"
HOMEPAGE="https://irrlicht.sourceforge.io/"
-SRC_URI="mirror://sourceforge/irrlicht/${P}.zip
+SRC_URI="
+ mirror://sourceforge/irrlicht/${P}.zip
https://dev.gentoo.org/~mgorny/dist/${P}-patchset.tar.bz2"
+S="${WORKDIR}/${P}/source/${PN^}"
LICENSE="ZLIB"
SLOT="0"
KEYWORDS="amd64 ~riscv x86"
-IUSE="debug doc static-libs"
+IUSE="debug doc"
-RDEPEND="app-arch/bzip2
+RDEPEND="
+ app-arch/bzip2
~dev-games/irrlicht-headers-${PV}
- media-libs/libpng:0=
- sys-libs/zlib
- virtual/jpeg:0
+ media-libs/libpng:=
+ sys-libs/zlib:=
+ media-libs/libjpeg-turbo:=
virtual/opengl
x11-libs/libX11
x11-libs/libXxf86vm"
@@ -26,14 +30,13 @@ DEPEND="${RDEPEND}
x11-base/xorg-proto"
BDEPEND="app-arch/unzip"
-S=${WORKDIR}/${P}/source/${PN^}
-
PATCHES=(
"${WORKDIR}"/${P}-patchset/${P}-gentoo.patch
"${WORKDIR}"/${P}-patchset/${P}-demoMake.patch
"${WORKDIR}"/${P}-patchset/${P}-mesa-10.x.patch
"${WORKDIR}"/${P}-patchset/${P}-jpeg-9a.patch
- "${FILESDIR}/${P}-remove-sys-sysctl.h.patch"
+ "${FILESDIR}"/${P}-remove-sys-sysctl.h.patch
+ "${FILESDIR}"/${P}-drop-register.patch
)
DOCS=( changes.txt readme.txt )
@@ -62,13 +65,12 @@ src_prepare() {
src_compile() {
tc-export CXX CC AR
- emake NDEBUG=$(usex debug "" "1") sharedlib $(usex static-libs "staticlib" "")
+ emake NDEBUG=$(usev !debug 1) sharedlib
}
src_install() {
cd "${WORKDIR}"/${P} || die
- use static-libs && dolib.a lib/Linux/libIrrlicht.a
dolib.so lib/Linux/libIrrlicht.so*
# create library symlinks
@@ -78,7 +80,5 @@ src_install() {
einstalldocs
# don't do these with einstalldocs because they shouldn't be compressed
- if use doc ; then
- dodoc -r examples media
- fi
+ use doc && dodoc -r examples media
}