diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-10-27 14:48:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-10-27 14:48:06 +0100 |
commit | 3529f1bf2739399905cd55b27c7609459bfc069f (patch) | |
tree | 030ac4ab6cc001de1876af06bc97f8d480c911f1 /media-libs/SoXt | |
parent | 0fcaac21e786bd7911b1e8f436cd885c5e2f6437 (diff) |
gentoo auto-resync : 27:10:2023 - 14:48:06
Diffstat (limited to 'media-libs/SoXt')
-rw-r--r-- | media-libs/SoXt/Manifest | 2 | ||||
-rw-r--r-- | media-libs/SoXt/SoXt-1.4.0-r1.ebuild | 47 | ||||
-rw-r--r-- | media-libs/SoXt/files/SoXt-1.4.0-drop-register-keyword.patch | 43 |
3 files changed, 92 insertions, 0 deletions
diff --git a/media-libs/SoXt/Manifest b/media-libs/SoXt/Manifest index 31874695739e..a61bea5051dc 100644 --- a/media-libs/SoXt/Manifest +++ b/media-libs/SoXt/Manifest @@ -1,3 +1,5 @@ +AUX SoXt-1.4.0-drop-register-keyword.patch 1253 BLAKE2B 857056775a0cc5959f05377d30ce1dc6f69dd7d6754330f97ffe0008c257a12471fb996d9df16a8bb4205486b40e15a8d621b0cf86fda73acd096d093f694a02 SHA512 748cb1421d549c4641339b3ab1b7b0482118b68d34ef79dcec2d9037ee79c8a221780ac676fd2872ee728a2c04b3f7ff3013d53016f26cb65a8eefcdbbfde6d1 DIST SoXt-1.4.0-src.tar.gz 1369725 BLAKE2B 727c56644878e9d52441ca905558524ccd369de123e8018d7fef4d949aa4e96007fa3a1e9782490b4dc9d50a916686a118d37ec7094dc6a3522ede032b30b6ea SHA512 9c661396ec18c2cba8984be8c0875f51554c8845e1a85d9b202f9a0f4de8203566a46d9b276e20039861dbf7ff3a0ffa474d098866f8a7692b53a01e3f62977d +EBUILD SoXt-1.4.0-r1.ebuild 1029 BLAKE2B 5b1282b98b2feb48b6a1a04994b8b84c6f2086e2c1e92adb3e67b366c49cd943fd7bf5f3c4be5f338f2d3dab6628978e39a1cf19b4ad284df530713eaa433a79 SHA512 fb2701d59e05535f7400db1dcfb8b3c0fc788c360f07c27df7c6ab25a8a5d3930ee5c561ed8fd5958bd8746a91243957905a4c71c923b9336eac2f3047c034bb EBUILD SoXt-1.4.0.ebuild 948 BLAKE2B 439c5b9628d3fc9651a881ffab34682aa4fa94edc9e01a2e825e8ba563606a70de25167c1068401f6afd85a2abaf1fed1c91a12e36d8a44121d0788a4c2d70ba SHA512 8fd543f0b2cb02e37068b0be9eb325c7be02bb4aa2ef3a3fee8050cdad98c668989b5811757f3aaec492320d0c3a1d1d429fbc0c2ed29df4d716fd60aeba6d41 MISC metadata.xml 659 BLAKE2B 3b402f9fa90396baa373a263d4023d24c6099daac86af52a70fa9d48b9570d488a5565676dfb305ed06c817c57248afb50327f4227b206475f5b83b6162eb804 SHA512 5066a6d85c08974474c2cb8d27f328932a402b4e7649f6ac3cb9474beea2721b6e1d0728ba95166a2ca585b1a4e050ca0239acdf8ffe9e769f154a2000b423a2 diff --git a/media-libs/SoXt/SoXt-1.4.0-r1.ebuild b/media-libs/SoXt/SoXt-1.4.0-r1.ebuild new file mode 100644 index 000000000000..64483888e526 --- /dev/null +++ b/media-libs/SoXt/SoXt-1.4.0-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake flag-o-matic + +MY_P=${P/soxt/SoXt} + +HOMEPAGE="https://github.com/coin3d/coin/wiki" +DESCRIPTION="GUI binding for using Coin/Open Inventor with Xt/Motif" +SRC_URI="https://github.com/coin3d/soxt/releases/download/${MY_P}/${P}-src.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" +SLOT="0" +IUSE="debug doc" + +RDEPEND=" + media-libs/coin + x11-libs/motif:0 + virtual/opengl +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + doc? ( app-doc/doxygen ) +" + +S="${WORKDIR}/soxt" + +DOCS=(AUTHORS ChangeLog HACKING NEWS README TODO BUGS.txt) + +PATCHES=( + "${FILESDIR}"/${PN}-1.4.0-drop-register-keyword.patch +) + +src_configure() { + use debug && append-cppflags -DSOXT_DEBUG=1 + local mycmakeargs=( + -DCMAKE_INSTALL_DOCDIR="${EPREFIX}/usr/share/doc/${PF}" + -DSOXT_BUILD_DOCUMENTATION=$(usex doc) + -DSOXT_BUILD_INTERNAL_DOCUMENTATION=OFF + -DSOXT_VERBOSE=$(usex debug) + ) + cmake_src_configure +} diff --git a/media-libs/SoXt/files/SoXt-1.4.0-drop-register-keyword.patch b/media-libs/SoXt/files/SoXt-1.4.0-drop-register-keyword.patch new file mode 100644 index 000000000000..fcbfa7dfd357 --- /dev/null +++ b/media-libs/SoXt/files/SoXt-1.4.0-drop-register-keyword.patch @@ -0,0 +1,43 @@ +https://github.com/coin3d/soxt/pull/17 +From: Brahmajit Das <brahmajit.xyz@gmail.com> +Date: Sat, 16 Sep 2023 07:32:47 +0000 +Subject: [PATCH] Fix C++17 does not allow register storage class specifier + +The register storage class was deprecated in C++14 and completely +removed in C++17. Hence, we cannot use it anymore and would result in a +build error. + +Bug: https://bugs.gentoo.org/896234 +Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com> +--- a/src/Inventor/Xt/widgets/SoXtGLArea.cpp ++++ b/src/Inventor/Xt/widgets/SoXtGLArea.cpp +@@ -468,7 +468,7 @@ createColormap( + } * cmapCache; + static int cacheEntries = 0; + static int cacheMalloced = 0; +- register int i; ++ int i; + + assert(widget->soxtGLArea.visualInfo); + +@@ -564,7 +564,7 @@ Realize( + Mask * valueMask, + XSetWindowAttributes * attributes) + { +- register SoXtGLAreaWidget glw = (SoXtGLAreaWidget) widget; ++ SoXtGLAreaWidget glw = (SoXtGLAreaWidget) widget; + SoXtGLAreaCallbackStruct cb; + Widget parentShell; + Status status; +@@ -670,7 +670,7 @@ Destroy( + Widget parentShell; + Status status; + int countReturn; +- register int i; ++ int i; + + if (glw->soxtGLArea.myList && glw->soxtGLArea.attribList) + XtFree((char *) glw->soxtGLArea.attribList); +-- +2.42.0 + |