1 |
commit: bb460dd3982b07543ecac94a1f0fa70f5d0ff340 |
2 |
Author: Ross Charles Campbell <rossbridger.cc <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Sep 25 00:53:37 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 10 07:22:32 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb460dd3 |
7 |
|
8 |
sci-physics/bullet: version bump to 3.05 |
9 |
|
10 |
Package-Manager: Portage-3.0.8, Repoman-3.0.1 |
11 |
Signed-off-by: Ross Charles Campbell <rossbridger.cc <AT> gmail.com> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/17657 |
13 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
14 |
|
15 |
sci-physics/bullet/Manifest | 1 + |
16 |
sci-physics/bullet/bullet-3.05.ebuild | 86 +++++++++++++++++++++++++++++++++++ |
17 |
sci-physics/bullet/metadata.xml | 8 ++-- |
18 |
3 files changed, 91 insertions(+), 4 deletions(-) |
19 |
|
20 |
diff --git a/sci-physics/bullet/Manifest b/sci-physics/bullet/Manifest |
21 |
index 56f16cbaf73..7ebc2006eb6 100644 |
22 |
--- a/sci-physics/bullet/Manifest |
23 |
+++ b/sci-physics/bullet/Manifest |
24 |
@@ -1,2 +1,3 @@ |
25 |
DIST bullet-2.86.tar.gz 25806558 BLAKE2B a8576d8dacd67b9789d32d7b1acc6c4025df3c15427c60d66f98b1906eee8b2b94e5b0108b9a8c00ca6261510ccaf57ba5c02c72fee8f528d4f723b304166731 SHA512 af8a6b282ab606437d7975a59cd8a9c2bf273c83b0e79f0c4c1de6fa51695ba6d5f3c853dce2fdba9cb55e7572214e15089e54db51afc465ca26f502cbd5a4f9 |
26 |
DIST bullet-2.89.tar.gz 135742506 BLAKE2B 3725533bb50f3cf4783e21c57a5e3596f280d9aa3caa5b7a44925d4785206cc86514ff89c2cc1e33f8a14af7c8a5165190bb0515a6931fc4c7ec2e2b9aef3dd8 SHA512 3c4ba6a3b3623ef44dd4a23e0bc2e90dec1f2b7af463edcb886e110feac1dfb4a91945f0ed640052cac228318539e275976d37238102fb10a0f78aef065a730b |
27 |
+DIST bullet-3.05.tar.gz 142858358 BLAKE2B d7ef2e68c0740e5bd2a728c576bcd3f07fff3680d8f604d7fd89bb6d7eb8c38f6205aea3bae300d70c2ec4e362c14e0567e3af3aabc893f8e33d979ffe8b3521 SHA512 4cb67547b466e01f6c2258b1f350fdfac0f2dc73a7962b6e196491e6722e1cd22cdfe80d7b2f4e1e92a90f91e277bff5cabfd0f55ef55010f9a4d7286843cecd |
28 |
|
29 |
diff --git a/sci-physics/bullet/bullet-3.05.ebuild b/sci-physics/bullet/bullet-3.05.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..e44b181d40a |
32 |
--- /dev/null |
33 |
+++ b/sci-physics/bullet/bullet-3.05.ebuild |
34 |
@@ -0,0 +1,86 @@ |
35 |
+# Copyright 1999-2020 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+ |
40 |
+inherit cmake toolchain-funcs |
41 |
+ |
42 |
+DESCRIPTION="Continuous Collision Detection and Physics Library" |
43 |
+HOMEPAGE="http://www.bulletphysics.com/" |
44 |
+SRC_URI="https://github.com/bulletphysics/bullet3/archive/${PV}.tar.gz -> ${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="ZLIB" |
47 |
+SLOT="0/${PV}" |
48 |
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
49 |
+IUSE="doc examples openmp tbb test threads" |
50 |
+ |
51 |
+REQUIRED_USE=" |
52 |
+ openmp? ( threads ) |
53 |
+ tbb? ( threads ) |
54 |
+" |
55 |
+ |
56 |
+RDEPEND=" |
57 |
+ virtual/opengl |
58 |
+ media-libs/freeglut |
59 |
+ tbb? ( dev-cpp/tbb ) |
60 |
+" |
61 |
+DEPEND="${RDEPEND}" |
62 |
+BDEPEND="doc? ( app-doc/doxygen[dot] )" |
63 |
+ |
64 |
+PATCHES=( "${FILESDIR}"/${PN}-2.85-soversion.patch ) |
65 |
+ |
66 |
+DOCS=( AUTHORS.txt LICENSE.txt README.md ) |
67 |
+ |
68 |
+# Building / linking of third Party library BussIK does not work out of the box |
69 |
+RESTRICT="test" |
70 |
+ |
71 |
+S="${WORKDIR}/${PN}3-${PV}" |
72 |
+ |
73 |
+pkg_pretend() { |
74 |
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
75 |
+} |
76 |
+ |
77 |
+pkg_setup() { |
78 |
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
79 |
+} |
80 |
+ |
81 |
+src_prepare() { |
82 |
+ cmake_src_prepare |
83 |
+ |
84 |
+ # allow to generate docs |
85 |
+ sed -i -e 's/GENERATE_HTMLHELP.*//g' Doxyfile || die |
86 |
+} |
87 |
+ |
88 |
+src_configure() { |
89 |
+ local mycmakeargs=( |
90 |
+ -DBUILD_CPU_DEMOS=OFF |
91 |
+ -DBUILD_OPENGL3_DEMOS=OFF |
92 |
+ -DBUILD_BULLET2_DEMOS=OFF |
93 |
+ -DUSE_GRAPHICAL_BENCHMARK=OFF |
94 |
+ -DINSTALL_LIBS=ON |
95 |
+ -DBUILD_BULLET3=ON |
96 |
+ -DBUILD_EXTRAS=OFF |
97 |
+ -DUSE_DOUBLE_PRECISION=ON |
98 |
+ -DBUILD_UNIT_TESTS=$(usex test) |
99 |
+ -DBULLET2_MULTITHREADING=$(usex threads) |
100 |
+ -DBULLET2_USE_OPEN_MP_MULTITHREADING=$(usex openmp) |
101 |
+ -DBULLET2_USE_TBB_MULTITHREADING=$(usex tbb) |
102 |
+ ) |
103 |
+ cmake_src_configure |
104 |
+} |
105 |
+ |
106 |
+src_compile() { |
107 |
+ cmake_src_compile |
108 |
+ |
109 |
+ if use doc; then |
110 |
+ doxygen || die |
111 |
+ HTML_DOCS+=( html/. ) |
112 |
+ DOCS+=( docs/*.pdf ) |
113 |
+ fi |
114 |
+ |
115 |
+ if use examples; then |
116 |
+ # throws QA warnings |
117 |
+ rm examples/ThirdPartyLibs/openvr/*/linux*/libopenvr_api.so || die |
118 |
+ DOCS+=( examples ) |
119 |
+ fi |
120 |
+} |
121 |
|
122 |
diff --git a/sci-physics/bullet/metadata.xml b/sci-physics/bullet/metadata.xml |
123 |
index 8dc1b6e634b..3eb822b267c 100644 |
124 |
--- a/sci-physics/bullet/metadata.xml |
125 |
+++ b/sci-physics/bullet/metadata.xml |
126 |
@@ -19,10 +19,10 @@ |
127 |
for games and animation. |
128 |
</longdescription> |
129 |
<use> |
130 |
- <flag name="bullet3">Build Bullet 3</flag> |
131 |
- <flag name="double-precision">Build libraries in double precision</flag> |
132 |
- <flag name="extras">Build additional libraries</flag> |
133 |
- <flag restrict=">=sci-physics/bullet-2.89" name="tbb">Enable multithreading with the Intel Threads Building Block dev-cpp/tbb</flag> |
134 |
+ <flag restrict="<=sci-physics/bullet-2.89" name="bullet3">Build Bullet 3</flag> |
135 |
+ <flag restrict="<=sci-physics/bullet-2.89" name="double-precision">Build libraries in double precision</flag> |
136 |
+ <flag restrict="<=sci-physics/bullet-2.89" name="extras">Build additional libraries</flag> |
137 |
+ <flag restrict="=sci-physics/bullet-2.89" name="tbb">Enable multithreading with the Intel Threads Building Block dev-cpp/tbb</flag> |
138 |
</use> |
139 |
<upstream> |
140 |
<remote-id type="google-code">bullet</remote-id> |