Diff ondselsolver-1.0.1_p20241024 with a ondselsolver-1.0.1_p20260723
| /usr/portage/sci-libs/ondselsolver/ondselsolver-1.0.1_p20260723.ebuild 2026-09-16 20:03:04.929149551 +0300 | ||
|---|---|---|
| 1 |
# Copyright 1999-2025 Gentoo Authors |
|
| 1 |
# Copyright 1999-2026 Gentoo Authors |
|
| 2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 | 3 | |
| 4 | 4 |
EAPI=8 |
| 5 | 5 | |
| 6 | 6 |
inherit cmake |
| 7 | 7 | |
| 8 |
COMMIT=9e44ac50b84dbce0e04907999ff0f33e69f583bc |
|
| 9 | ||
| 10 | 8 |
DESCRIPTION="Assembly Constraints and Multibody Dynamics code" |
| 11 |
HOMEPAGE="https://github.com/Ondsel-Development/OndselSolver/" |
|
| 12 |
SRC_URI="https://github.com/Ondsel-Development/OndselSolver/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
|
|
| 13 |
S="${WORKDIR}/OndselSolver-${COMMIT}"
|
|
| 9 |
HOMEPAGE="https://github.com/FreeCAD/OndselSolve" |
|
| 10 | ||
| 11 |
if [[ ${PV} = *9999* ]] ; then
|
|
| 12 |
inherit git-r3 |
|
| 13 |
EGIT_REPO_URI="https://github.com/FreeCAD/OndselSolver.git" |
|
| 14 |
else |
|
| 15 |
COMMIT="3afcb30353084d402e3c34760cd662cf22d88759" |
|
| 16 |
SRC_URI=" |
|
| 17 |
https://github.com/FreeCAD/OndselSolver/archive/${COMMIT}.tar.gz -> ${P}.tar.gz
|
|
| 18 |
" |
|
| 19 |
S="${WORKDIR}/OndselSolver-${COMMIT}"
|
|
| 20 |
KEYWORDS="~amd64" |
|
| 21 |
fi |
|
| 14 | 22 | |
| 15 | 23 |
LICENSE="LGPL-2.1" |
| 16 | 24 |
SLOT="0" |
| 17 |
KEYWORDS="~amd64" |
|
| 18 | 25 | |
| 19 |
IUSE="test" |
|
| 26 |
IUSE="test tools" |
|
| 20 | 27 |
RESTRICT="!test? ( test )" |
| 21 | 28 | |
| 22 | 29 |
DEPEND="test? ( dev-cpp/gtest )" |
| 23 | 30 | |
| 24 |
# These tests result in "Subprocess aborted" |
|
| 25 |
CMAKE_SKIP_TESTS=( |
|
| 26 |
OndselSolver.Gears |
|
| 27 |
OndselSolver.anglejoint |
|
| 28 |
OndselSolver.constvel |
|
| 29 |
OndselSolver.rackscrew |
|
| 30 |
OndselSolver.planarbug |
|
| 31 |
OndselSolver.piston |
|
| 32 |
) |
|
| 33 | ||
| 34 | 31 |
PATCHES=( |
| 35 |
"${FILESDIR}/${P}-system-gtest.patch"
|
|
| 36 |
"${FILESDIR}/${PN}-1.0.1-include-cstdint-gcc15.patch"
|
|
| 32 |
"${FILESDIR}/${PN}-1.0.1-properly-demangle-typenames.patch"
|
|
| 37 | 33 |
) |
| 38 | 34 | |
| 39 | 35 |
src_configure() {
|
| 40 | 36 |
local mycmakeargs=( |
| 41 |
-DONDSELSOLVER_BUILD_TESTS=$(usex test) |
|
| 37 |
-DONDSELSOLVER_BUILD_EXE="$(usex tools)" |
|
| 38 |
-DONDSELSOLVER_BUILD_TESTS="$(usex test)" |
|
| 42 | 39 |
) |
| 43 | 40 | |
| 44 | 41 |
cmake_src_configure |
| 45 | 42 |
} |
| 43 | ||
| 44 |
src_test() {
|
|
| 45 |
local CMAKE_SKIP_TESTS=( |
|
| 46 |
"^OndselSolver.runPreDragBackhoe[1-3]$" |
|
| 47 |
) |
|
| 48 | ||
| 49 |
cmake_src_test |
|
| 50 |
} |
|