diff options
Diffstat (limited to 'sci-libs/ondselsolver/ondselsolver-1.0.1_p20241127-r1.ebuild')
-rw-r--r-- | sci-libs/ondselsolver/ondselsolver-1.0.1_p20241127-r1.ebuild | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/sci-libs/ondselsolver/ondselsolver-1.0.1_p20241127-r1.ebuild b/sci-libs/ondselsolver/ondselsolver-1.0.1_p20241127-r1.ebuild new file mode 100644 index 000000000000..da2e1dccd90b --- /dev/null +++ b/sci-libs/ondselsolver/ondselsolver-1.0.1_p20241127-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +COMMIT=07785b7576a0655660badd845f06ed286208da1a + +DESCRIPTION="Assembly Constraints and Multibody Dynamics code" +HOMEPAGE="https://github.com/Ondsel-Development/OndselSolver/" +SRC_URI="https://github.com/Ondsel-Development/OndselSolver/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/OndselSolver-${COMMIT}" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND="test? ( dev-cpp/gtest )" + +PATCHES=( + "${FILESDIR}/${PN}-1.0.1_p20241024-system-gtest.patch" + "${FILESDIR}/${PN}-1.0.1-properly-demangle-typenames.patch" +) + +src_configure() { + local mycmakeargs=( + -DONDSELSOLVER_BUILD_TESTS=$(usex test) + ) + + cmake_src_configure +} |