1 |
commit: 59e5f444b52fb458cd9a5ab7ec48f04134167f51 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 1 23:33:27 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 2 02:18:50 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59e5f444 |
7 |
|
8 |
sci-physics/bullet: add 3.21 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/830202 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
sci-physics/bullet/Manifest | 1 + |
14 |
sci-physics/bullet/bullet-3.21.ebuild | 87 +++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 88 insertions(+) |
16 |
|
17 |
diff --git a/sci-physics/bullet/Manifest b/sci-physics/bullet/Manifest |
18 |
index 9ba61d661ac5..0147de634410 100644 |
19 |
--- a/sci-physics/bullet/Manifest |
20 |
+++ b/sci-physics/bullet/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST bullet-3.07.tar.gz 148413637 BLAKE2B 776cd7651d11d865095ea000d353860bea09c6ff4ec8dd8e43282a78373e2830f6ce1ce2b87ed25a67be7bded297b3a6320b2872a71dfd3849e7b197c6d2c936 SHA512 31fc7cb4ed8b939abc9eeb0a8f6fff3a454ea4ebcffd797fd35a2320fe3ab222fcd315569809ea148d0efff47267f5eec9f4bf7aaf07730a06aa9babd2abc9a6 |
23 |
DIST bullet-3.08.tar.gz 129282084 BLAKE2B daa5b6719575af28c6f6359ef51c7a9b8ca9cde2e5b4ea1b00c2991fc4d6b13175d034c7a694eaf36e8ff3ab343457027f57bb511639b3701341ad4551f1a6ca SHA512 4177c2b2f3b007691102973e7a3d4337b8de559d20058db75a2d25eab35b9be62fa14e3362435ef6f7ea2f6b8cf02a78770cc49c17e979adf3a2b41f19ee702a |
24 |
DIST bullet-3.17.tar.gz 131995187 BLAKE2B 38996c299eb900f867367966c90c7511d4f5c727671249665a073f86390a4514f7c8193577fd73502b49d467eaeb6e7b195426089065ce3bda3238ee76e237b3 SHA512 a5105bf5f1dd365a64a350755c7d2c97942f74897a18dcdb3651e6732fd55cc1030a096f5808cf50575281f05e3ac09aa50a48d271a47b94cd61f5167a72b7cc |
25 |
+DIST bullet-3.21.tar.gz 133046747 BLAKE2B 7bbc51027f19502e4d72bb33ad698817d87d559b60a3eb1067aebc8e25dbf746fd99753cfe6839a2be649318ce7c7563f63409818dc1bdd210a5ed56fe38b5bd SHA512 dfe2e091d2ea42301e131b010769b5a3c5204693f40d46e4f2a8cba94117d19058b8c9873e6a1ce8dff11a249498e65540566ef1a2ff7866546289958965fda4 |
26 |
|
27 |
diff --git a/sci-physics/bullet/bullet-3.21.ebuild b/sci-physics/bullet/bullet-3.21.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..9c107c131d61 |
30 |
--- /dev/null |
31 |
+++ b/sci-physics/bullet/bullet-3.21.ebuild |
32 |
@@ -0,0 +1,87 @@ |
33 |
+# Copyright 1999-2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+inherit cmake toolchain-funcs |
39 |
+ |
40 |
+DESCRIPTION="Continuous Collision Detection and Physics Library" |
41 |
+HOMEPAGE="https://www.bulletphysics.com/" |
42 |
+SRC_URI="https://github.com/bulletphysics/bullet3/archive/${PV}.tar.gz -> ${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="ZLIB" |
45 |
+SLOT="0/${PV}" |
46 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" |
47 |
+IUSE="doc double-precision examples extras openmp tbb test +threads" |
48 |
+ |
49 |
+REQUIRED_USE=" |
50 |
+ openmp? ( threads ) |
51 |
+ tbb? ( threads ) |
52 |
+" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ virtual/opengl |
56 |
+ media-libs/freeglut |
57 |
+ tbb? ( <dev-cpp/tbb-2021.4.0:= ) |
58 |
+" |
59 |
+DEPEND="${RDEPEND}" |
60 |
+BDEPEND="doc? ( app-doc/doxygen[dot] )" |
61 |
+ |
62 |
+PATCHES=( "${FILESDIR}"/${PN}-2.85-soversion.patch ) |
63 |
+ |
64 |
+DOCS=( AUTHORS.txt LICENSE.txt README.md ) |
65 |
+ |
66 |
+# Building / linking of third Party library BussIK does not work out of the box |
67 |
+RESTRICT="test" |
68 |
+ |
69 |
+S="${WORKDIR}/${PN}3-${PV}" |
70 |
+ |
71 |
+pkg_pretend() { |
72 |
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
73 |
+} |
74 |
+ |
75 |
+pkg_setup() { |
76 |
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
77 |
+} |
78 |
+ |
79 |
+src_prepare() { |
80 |
+ cmake_src_prepare |
81 |
+ |
82 |
+ # allow to generate docs |
83 |
+ sed -i -e 's/GENERATE_HTMLHELP.*//g' Doxyfile || die |
84 |
+} |
85 |
+ |
86 |
+src_configure() { |
87 |
+ local mycmakeargs=( |
88 |
+ -DBUILD_CPU_DEMOS=OFF |
89 |
+ -DBUILD_OPENGL3_DEMOS=OFF |
90 |
+ -DBUILD_BULLET2_DEMOS=OFF |
91 |
+ -DUSE_GRAPHICAL_BENCHMARK=OFF |
92 |
+ -DINSTALL_LIBS=ON |
93 |
+ -DBUILD_BULLET3=ON |
94 |
+ -DBUILD_BULLET_ROBOTICS_GUI_EXTRA=OFF # This module depends on example libraries |
95 |
+ -DBUILD_EXTRAS=$(usex extras) |
96 |
+ -DUSE_DOUBLE_PRECISION=$(usex double-precision) |
97 |
+ -DBUILD_UNIT_TESTS=$(usex test) |
98 |
+ -DBULLET2_MULTITHREADING=$(usex threads) |
99 |
+ -DBULLET2_USE_OPEN_MP_MULTITHREADING=$(usex openmp) |
100 |
+ -DBULLET2_USE_TBB_MULTITHREADING=$(usex tbb) |
101 |
+ ) |
102 |
+ cmake_src_configure |
103 |
+} |
104 |
+ |
105 |
+src_compile() { |
106 |
+ cmake_src_compile |
107 |
+ |
108 |
+ if use doc; then |
109 |
+ doxygen || die |
110 |
+ HTML_DOCS+=( html/. ) |
111 |
+ DOCS+=( docs/*.pdf ) |
112 |
+ fi |
113 |
+ |
114 |
+ if use examples; then |
115 |
+ # throws QA warnings |
116 |
+ rm examples/ThirdPartyLibs/openvr/*/linux*/libopenvr_api.so || die |
117 |
+ DOCS+=( examples ) |
118 |
+ fi |
119 |
+} |