commit:     019e110b41f1ceb4c416d21fce8841e4cde422aa
Author:     Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
AuthorDate: Sat Mar 26 08:38:00 2022 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Mar 31 11:59:27 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=019e110b

media-libs/assimp: bump to 5.2.3

Closes: https://bugs.gentoo.org/835990
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
Closes: https://github.com/gentoo/gentoo/pull/24756
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 media-libs/assimp/Manifest            |  1 +
 media-libs/assimp/assimp-5.2.3.ebuild | 61 +++++++++++++++++++++++++++++++++++
 2 files changed, 62 insertions(+)

diff --git a/media-libs/assimp/Manifest b/media-libs/assimp/Manifest
index 9f05fa49dd0f..c8a058fd549a 100644
--- a/media-libs/assimp/Manifest
+++ b/media-libs/assimp/Manifest
@@ -1,3 +1,4 @@
 DIST assimp-5.0.1.tar.gz 46607553 BLAKE2B 
7f8cdf2bc602398fbdb675094d135e955716deb8f6469a4b68f7a8c735ecaa3120ee023c5c1f95c5a79c0606ed9a3cb3491c5011e2b409da523b56cd193ebb60
 SHA512 
51b704ffea778638b9e228578650f62691c56ee1a90337f8bbbee37e807455466d818234be24852334e5806260e5690932c9bd8e00f055c5c26782e0636538f0
 DIST assimp-5.2.2.tar.gz 49600909 BLAKE2B 
f5f8b5fc43a44c59c95ac3a1f2ce861a5198851ca910ec7688a818550aa0cde787901f7a7beb9f90f7fe731e18f3c31c7350d3b3070f7437153ff9d041f6ffdf
 SHA512 
7f11f3e53bdcd43a81be49ce2ad90d97769ae1c3c6157f57e8a0b2b41c72f394ad1afcdc5f5fa6fbfa1a44233fed4b9a578d5548ec5b9aae2113ef88c2ec843a
+DIST assimp-5.2.3.tar.gz 49606233 BLAKE2B 
d6904769f1812b875a3b30de9edf35d9ca1774aecefe4d84edaaaa2975be1350de46e259e14b40f7749921c398490e7aea08c30c0ee89a69aedeab8f02a3e863
 SHA512 
accc1020877b631431bd0bc2de20b530d7e8d234e960904070292a4a08e768c55d1d0cf614c68d38f099fab2d086420c3ffd3f729cb538b169c1275ef0be1eaa
 DIST assimp-docs-5.0.1.pdf 315941 BLAKE2B 
06b2d3a68b6f70fd2ca3daee6cbcd79da255ec8ba00383077b775a1e032ab9675b5f70f2c5e9c1a6f51a4c65b482dfd7bce6c8be3c0288d6f6a653feaa7dfd84
 SHA512 
f37b8eb8d3a3c6198a91f03fd712a911990aa2d5f50e5039d54349dd673e5270e11ff55aa430f7c3ccbb142cb3b9530684157c25d8a533861b6de34064ab339e

diff --git a/media-libs/assimp/assimp-5.2.3.ebuild 
b/media-libs/assimp/assimp-5.2.3.ebuild
new file mode 100644
index 000000000000..ba654ddd393f
--- /dev/null
+++ b/media-libs/assimp/assimp-5.2.3.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Importer library to import assets from 3D files"
+HOMEPAGE="https://github.com/assimp/assimp";
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
+IUSE="samples test"
+
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       dev-libs/boost:=
+       sys-libs/zlib[minizip]
+       samples? (
+               media-libs/freeglut
+               virtual/opengl
+               x11-libs/libX11
+       )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       test? ( dev-cpp/gtest )
+"
+
+PATCHES=(
+       
"${FILESDIR}"/${PN}-5.2.2-fix-usage-of-incompatible-minizip-data-structure.patch
+       "${FILESDIR}"/${PN}-5.2.2-disable-failing-tests.patch
+)
+
+DOCS=( CodeConventions.md Readme.md )
+
+src_configure() {
+       local mycmakeargs=(
+               -DASSIMP_ASAN=OFF
+               -DASSIMP_BUILD_DOCS=OFF
+               -DASSIMP_BUILD_SAMPLES=$(usex samples)
+               -DASSIMP_BUILD_TESTS=$(usex test)
+               -DASSIMP_ERROR_MAX=ON
+               -DASSIMP_INJECT_DEBUG_POSTFIX=OFF
+               -DASSIMP_IGNORE_GIT_HASH=ON
+               -DASSIMP_UBSAN=OFF
+       )
+
+       if use samples; then
+               mycmakeargs+=( -DOpenGL_GL_PREFERENCE="GLVND" )
+       fi
+
+       cmake_src_configure
+}
+
+src_test() {
+       "${BUILD_DIR}/bin/unit" || die
+}

Reply via email to