diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-09-06 10:28:05 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-09-06 10:28:05 +0100 |
commit | f1af93971b7490792d8541bc790e0d8c6d787059 (patch) | |
tree | a38046712bbc3a3844d77452d16c84e716caa3d4 /media-libs/assimp | |
parent | fc637fb28da700da71ec2064d65ca5a7a31b9c6c (diff) |
gentoo resync : 06.08.2019
Diffstat (limited to 'media-libs/assimp')
-rw-r--r-- | media-libs/assimp/Manifest | 5 | ||||
-rw-r--r-- | media-libs/assimp/assimp-4.0.1-r1.ebuild | 67 | ||||
-rw-r--r-- | media-libs/assimp/assimp-4.1.0.ebuild | 65 | ||||
-rw-r--r-- | media-libs/assimp/files/assimp-4.1.0-disabletest.patch | 10 | ||||
-rw-r--r-- | media-libs/assimp/files/assimp-4.1.0-unzip-of.patch | 11 |
5 files changed, 158 insertions, 0 deletions
diff --git a/media-libs/assimp/Manifest b/media-libs/assimp/Manifest index 842793072946..c1c7188e2017 100644 --- a/media-libs/assimp/Manifest +++ b/media-libs/assimp/Manifest @@ -1,6 +1,11 @@ AUX assimp-4.0.1-disabletest.patch 298 BLAKE2B 49444fb1fdd3cb2aafd9b29de7a454ce8720707bb6f569d9697cd82303df7edf08d909ef8d8926b17203ad1126f13a6445080191649a96af837d1d7e02fa7667 SHA512 320f2f76ffbebf3a5d3064faa3bc16e0cb597ad994c35b1344aa3a60a07839e67a9d68b80f8723b663d491c6a37b6c95510e987acd04dd519d489a82e3d7e729 AUX assimp-4.0.1-qt-5.11.0.patch 2230 BLAKE2B e99a1e8dcd5f3c5d8f2b5f116ccd2b5f9a7377e3c17f9d7fc6d4962c4a573c5fa68fced8a714c94cdc1e0bdeb7f2a0b2c4fb714f7c54bbe776efc68911ad5455 SHA512 44bd08a59de45bd6431e97c8165ab7d9c08fccc2bcf704fbf063db143152f9e4aa1e9f5ff7c104bd312a643a42259af6e370caaac92f40d369972b21e692c928 +AUX assimp-4.1.0-disabletest.patch 298 BLAKE2B 49444fb1fdd3cb2aafd9b29de7a454ce8720707bb6f569d9697cd82303df7edf08d909ef8d8926b17203ad1126f13a6445080191649a96af837d1d7e02fa7667 SHA512 320f2f76ffbebf3a5d3064faa3bc16e0cb597ad994c35b1344aa3a60a07839e67a9d68b80f8723b663d491c6a37b6c95510e987acd04dd519d489a82e3d7e729 +AUX assimp-4.1.0-unzip-of.patch 242 BLAKE2B c977c94d4ef44d9e185738e7f3c2e5bda59ea52e11c5900387f9e590201f4ffff3aa6dc9a60452f8f782ce37a510cb85cecd1f8df8b23b331688b75f69ea3890 SHA512 e8908f0c44afc4969b9fe670de418ae9df592cab47b0c9a67958c37414740c527a7ee1ef6d61de19c926f08bf20663be66dc54fc6e3d9164e6ecf34360dff37b AUX findassimp-3.3.1.patch 624 BLAKE2B 6e1df31dc55739e01807eacf90558be6af791c4054b438f765cd733639c5c6fb34046871577ddbc7194284f81228000e48218a5a890d21390976778928362d94 SHA512 5f8f7e061da89e7fb4705148b171e631e16a3b7ba7156b1cd3a4b8987adc066f0b4a36f7d70a9b174f3bb27ebe13353435d81cbe85a1166c75148e8419311be1 DIST assimp-4.0.1.tar.gz 44625148 BLAKE2B 50cbb6096e89fa311a67cf4f526be57a19f41fe48d59bcdd8d6fd309a988cb19c0f1a4c175301e4c299cb644882a6e8042b0d9281319424faf7504688764e97e SHA512 260b4c7e738f857d8364c4878ea4e789ca676180821943f6d9bff8f56e5f9377ea29660dca4e130c681a8aa12fc32f155adb1d78ca260ba242e68b8afa6cc1bb +DIST assimp-4.1.0.tar.gz 45417293 BLAKE2B 74170ab48b64ab357ddd9da58f1218d0c3c0a4039345dcd7ae396aca3bb47c2f5ea2ee8b61b7d81c68c2e1237cd3ba516b816038400e9960b6c0cfe031a41e54 SHA512 5f1292de873ae16c9921d1d44f2871474d74c0ddfd76cc928a7d9b3e03aa6eca4cc72af0513da20a86d09c55d48646e610fd4a4f2b05364f08ad09cf27cbc67a +EBUILD assimp-4.0.1-r1.ebuild 1385 BLAKE2B c658a4892def26404509ced1538aa9635da5b5dda3ba00b53d5bfcc14efce0803e045aa687bb116dcdda93ad933fdaeea655dbb6f9c25160ded30d90638338db SHA512 8e003f3e6bb196f1085a7903add296153119d1fbb948f87c00332f3c970853f429406d037eed52449126fdc5566cc19b6650a518ba8fc9a6129735dda0ecfede EBUILD assimp-4.0.1.ebuild 1334 BLAKE2B 69cba811c5f5b0957c36b257c1bc52c30b15c58ade44c5cff8a1e3697eeda607d8ed5885362a5ad8e1b8ba1c982dd8155f325ae3798a982a39a8d0132e68cd4d SHA512 c47fddb39ed30f9c8cdd9fcdf5b43703c07134a8e7dd187518eaec8392792614716252d39f19262278b8cfe832cf92df602b08855d1d0724b74796f851068d7a +EBUILD assimp-4.1.0.ebuild 1298 BLAKE2B 19052951f2e7af644bc6987b0960bbf778e265d6e3daa1db6531c0a84086d47f09e21cd15ba339882ae3a2506291048924ef8b416af3ebe9f43c192c8802df4f SHA512 1792c1643fe99b57c3a9ba5619a5e318b1533e405aa78eb6572bb35364cc1e8a18173bded6b1932d94e442794f83bbf6a52ec635b46843449ca8f39af0e39567 MISC metadata.xml 463 BLAKE2B e8815466468672f2ebf597e0155adf205234f603ae9287a5743005d26ec240429ea5b98d006554abc69e08251613257130a258fe6cd5e1a79865005d98475eb5 SHA512 8daf9f83564ce1357b6a99441fc733b9d7a00db2071cb2fc47f1a0c6a1842cea57a1ec4aa628b86271abbdaaf5c17c60092f1e2de42e9604a5165e81b2f4bf2a diff --git a/media-libs/assimp/assimp-4.0.1-r1.ebuild b/media-libs/assimp/assimp-4.0.1-r1.ebuild new file mode 100644 index 000000000000..0e4e53c35722 --- /dev/null +++ b/media-libs/assimp/assimp-4.0.1-r1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils flag-o-matic + +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" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="samples static test tools" +SLOT="0" + +RDEPEND=" + dev-libs/boost:= + sys-libs/zlib:=[minizip] + samples? ( + media-libs/freeglut + virtual/opengl + x11-libs/libX11 + ) + tools? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtopengl:5 + dev-qt/qtwidgets:5 + media-libs/devil + virtual/opengl + ) +" +DEPEND="${RDEPEND} + test? ( dev-cpp/gtest ) +" + +PATCHES=( + "${FILESDIR}/findassimp-3.3.1.patch" + "${FILESDIR}/${P}-qt-5.11.0.patch" + "${FILESDIR}/${P}-disabletest.patch" # bug 659122 +) + +src_configure() { + append-flags -fno-strict-aliasing + local mycmakeargs=( + -DASSIMP_BUILD_SAMPLES=$(usex samples) + -DASSIMP_BUILD_STATIC_LIB=$(usex static) + -DASSIMP_BUILD_TESTS=$(usex test) + -DASSIMP_BUILD_ASSIMP_TOOLS=$(usex tools) + -DCMAKE_DEBUG_POSTFIX="" + -DASSIMP_LIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)/" + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + insinto /usr/share/cmake/Modules + doins cmake-modules/Findassimp.cmake +} + +src_test() { + "${BUILD_DIR}/test/unit" || die +} diff --git a/media-libs/assimp/assimp-4.1.0.ebuild b/media-libs/assimp/assimp-4.1.0.ebuild new file mode 100644 index 000000000000..050200305045 --- /dev/null +++ b/media-libs/assimp/assimp-4.1.0.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils + +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" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="samples static test tools" +SLOT="0" + +RDEPEND=" + dev-libs/boost:= + sys-libs/zlib:=[minizip] + samples? ( + media-libs/freeglut + virtual/opengl + x11-libs/libX11 + ) + tools? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtopengl:5 + dev-qt/qtwidgets:5 + media-libs/devil + virtual/opengl + ) +" +DEPEND="${RDEPEND} + test? ( dev-cpp/gtest ) +" + +PATCHES=( + "${FILESDIR}/${P}-disabletest.patch" # bug 659122 + "${FILESDIR}/${P}-unzip-of.patch" +) + +src_configure() { + local mycmakeargs=( + -DASSIMP_BUILD_SAMPLES=$(usex samples) + -DASSIMP_BUILD_STATIC_LIB=$(usex static) + -DASSIMP_BUILD_TESTS=$(usex test) + -DASSIMP_BUILD_ASSIMP_TOOLS=$(usex tools) + -DCMAKE_DEBUG_POSTFIX="" + -DASSIMP_LIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)/" + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + insinto /usr/share/cmake/Modules + doins cmake-modules/Findassimp.cmake +} + +src_test() { + "${BUILD_DIR}/test/unit" || die +} diff --git a/media-libs/assimp/files/assimp-4.1.0-disabletest.patch b/media-libs/assimp/files/assimp-4.1.0-disabletest.patch new file mode 100644 index 000000000000..4afe5bbd26ba --- /dev/null +++ b/media-libs/assimp/files/assimp-4.1.0-disabletest.patch @@ -0,0 +1,10 @@ +--- a/test/unit/utVersion.cpp 2017-07-28 22:33:41.000000000 +0200 ++++ b/test/unit/utVersion.cpp 2018-08-26 01:48:54.935116440 +0200 +@@ -65,7 +65,3 @@ + EXPECT_NE( aiGetCompileFlags(), 0U ); + } + +-TEST_F( utVersion, aiGetVersionRevisionTest ) { +- EXPECT_NE( aiGetVersionRevision(), 0U ); +-} +- diff --git a/media-libs/assimp/files/assimp-4.1.0-unzip-of.patch b/media-libs/assimp/files/assimp-4.1.0-unzip-of.patch new file mode 100644 index 000000000000..e75b47a1af4b --- /dev/null +++ b/media-libs/assimp/files/assimp-4.1.0-unzip-of.patch @@ -0,0 +1,11 @@ +--- a/contrib/unzip/unzip.h 2019-08-21 21:38:10.991542891 +0200 ++++ b/contrib/unzip/unzip.h 2019-08-21 21:38:24.507543226 +0200 +@@ -45,6 +45,8 @@ + #ifndef _unz_H + #define _unz_H + ++#define OF _Z_OF ++ + #ifdef __cplusplus + extern "C" { + #endif |