mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 11:37:20 -08:00
extend demangle patch further Closes: https://bugs.gentoo.org/969202 Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> Part-of: https://codeberg.org/gentoo/gentoo/pulls/1856 Signed-off-by: Sam James <sam@gentoo.org>
60 lines
1.2 KiB
Bash
60 lines
1.2 KiB
Bash
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit cmake
|
|
|
|
DESCRIPTION="Assembly Constraints and Multibody Dynamics code"
|
|
HOMEPAGE="https://github.com/FreeCAD/OndselSolve"
|
|
|
|
if [[ ${PV} = *9999* ]] ; then
|
|
inherit git-r3
|
|
EGIT_REPO_URI="https://github.com/FreeCAD/OndselSolver.git"
|
|
else
|
|
COMMIT="30e9b64e8bf881d438d4b88834f9ba3674865418"
|
|
SRC_URI="
|
|
https://github.com/FreeCAD/OndselSolver/archive/${COMMIT}.tar.gz -> ${P}.tar.gz
|
|
"
|
|
S="${WORKDIR}/OndselSolver-${COMMIT}"
|
|
KEYWORDS="~amd64"
|
|
fi
|
|
|
|
LICENSE="LGPL-2.1"
|
|
SLOT="0"
|
|
|
|
IUSE="test tools"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
DEPEND="test? ( dev-cpp/gtest )"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}/${PN}-1.0.1-properly-demangle-typenames.patch"
|
|
)
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-DONDSELSOLVER_BUILD_EXE="$(usex tools)"
|
|
-DONDSELSOLVER_BUILD_TESTS="$(usex test)"
|
|
)
|
|
|
|
cmake_src_configure
|
|
}
|
|
|
|
src_test() {
|
|
local CMAKE_SKIP_TESTS=(
|
|
"^OndselSolver.runPreDragBackhoe[1-3]$"
|
|
"^OndselSolver.sliderrunDragStep$"
|
|
"^OndselSolver.slider_issue$"
|
|
|
|
# random fails
|
|
"^OndselSolver.Gears$"
|
|
"^OndselSolver.anglejoint$"
|
|
"^OndselSolver.rackscrew$"
|
|
"^OndselSolver.planarbug$"
|
|
"^OndselSolver.piston$"
|
|
)
|
|
|
|
cmake_src_test
|
|
}
|