sci-libs/ondselsolver - 9999 (gentoo)

Search

Install

Install this version:

emerge -a =sci-libs/ondselsolver-9999

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =sci-libs/ondselsolver-9999

Or alternatively:

emerge --autounmask-write -a =sci-libs/ondselsolver-9999

Package Information

Description:
Assembly Constraints and Multibody Dynamics code
Homepage:
https://github.com/FreeCAD/OndselSolve
License:
LGPL-2.1

Ebuild Details

Version EAPI Keywords Slot
9999 8 ~amd64 0
View Raw Ebuild
# 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
}

USE Flags

Manage flags for this package: euse -i <flag> -p sci-libs/ondselsolver | euse -E <flag> -p sci-libs/ondselsolver | euse -D <flag> -p sci-libs/ondselsolver

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

test? ( dev-cpp/gtest )