diff options
Diffstat (limited to 'sci-mathematics/aspcud/aspcud-1.9.6.ebuild')
-rw-r--r-- | sci-mathematics/aspcud/aspcud-1.9.6.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/sci-mathematics/aspcud/aspcud-1.9.6.ebuild b/sci-mathematics/aspcud/aspcud-1.9.6.ebuild new file mode 100644 index 000000000..0d38b0e6c --- /dev/null +++ b/sci-mathematics/aspcud/aspcud-1.9.6.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="A solver for package problems in CUDF format" +HOMEPAGE=" + https://github.com/potassco/aspcud + https://potassco.org/aspcud/ +" +SRC_URI="https://github.com/potassco/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" + +DEPEND=" + dev-libs/boost:= + test? ( dev-cpp/catch:0 ) +" +RDEPEND=" + ${DEPEND} + sci-mathematics/clasp + sci-mathematics/clingo +" +BDEPEND="dev-util/re2c" + +RESTRICT="!test? ( test )" +PATCHES=( "${FILESDIR}/${P}-system-catch.patch" ) + +src_prepare() { + rm libcudf/tests/catch.hpp || die + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DASPCUD_BUILD_TESTS=$(usex test) + + -DASPCUD_BUILD_STATIC=OFF + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + insinto /usr/share/cudf/solvers/ + doins "${FILESDIR}/aspcud" +} |