Gentoo Archives: gentoo-commits

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