diff options
Diffstat (limited to 'sci-libs/givaro/givaro-4.2.0-r1.ebuild')
-rw-r--r-- | sci-libs/givaro/givaro-4.2.0-r1.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/sci-libs/givaro/givaro-4.2.0-r1.ebuild b/sci-libs/givaro/givaro-4.2.0-r1.ebuild new file mode 100644 index 000000000000..6395b5ddd659 --- /dev/null +++ b/sci-libs/givaro/givaro-4.2.0-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="C++ library for arithmetic and algebraic computations" +HOMEPAGE="https://casys.gricad-pages.univ-grenoble-alpes.fr/givaro/" +SRC_URI="https://github.com/linbox-team/givaro/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="CeCILL-B" +SLOT="0/9" # soname major +KEYWORDS="~amd64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +IUSE="doc test" +RESTRICT="!test? ( test )" + +BDEPEND=" + doc? ( + app-text/doxygen[dot] + dev-texlive/texlive-bibtexextra + dev-texlive/texlive-fontsextra + dev-texlive/texlive-fontutils + dev-texlive/texlive-latex + dev-texlive/texlive-latexextra + ) +" +DEPEND="dev-libs/gmp:0[cxx(+)]" +RDEPEND="${DEPEND}" + +DOCS=( AUTHORS ChangeLog README.md ) + +PATCHES=( + "${FILESDIR}/givaro-4.1.1-fix-pc-libdir.patch" + "${FILESDIR}/${P}-configure.ac-fix-a-bashism.patch" + "${FILESDIR}/${P}-cstdint.patch" + "${FILESDIR}/${P}-gcc14.patch" + "${FILESDIR}/${P}-gcc15.patch" +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + --with-docdir="/usr/share/doc/${PF}/html" \ + $(use_enable doc) +} + +src_install() { + default + find "${ED}" -type f -name '*.la' -delete || die +} |