mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-08 00:05:33 +03:00
sci-libs/linbox: add 1.7.1
no need for autotools any more, no patches needed Closes: https://github.com/gentoo/gentoo/pull/44337 Signed-off-by: Dima Pasechnik <dima@pasechnik.info> Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
This commit is contained in:
parent
68e8ba7f7a
commit
b586f52fb2
@ -1,2 +1,3 @@
|
||||
DIST linbox-1.7.0.tar.gz 2258420 BLAKE2B a416e7ab138c6f3f4778a00c0c1eb46aa0a5b26d84f19a2df93e9f8959d3237e5f298f8013f9414f66605c08eebd7d632f71dcdef7080c8df814afcd2de34456 SHA512 cb4e848186d1f6357f498d1e3bda6484b4c789c02440f9614a227a2ae206a31fb20b32be40bda74da3f2f8f981bbd58d80fc97c95499b5151bb06eafb867ef9e
|
||||
DIST linbox-1.7.1.tar.gz 2305073 BLAKE2B 056453681e5f9102ed2974fa36df7ce97a86aef1d961da3fb50829fc212caf0ecb927e3f069f8c01c6e94682a237743a984f1a39ee83019f1b158071d0617396 SHA512 f13f607c4e7c4b6eb569d03007b96bc6ab4d57f520cfa557fda71c62eec43e23c24260c7495dbed9c39ddff18674c22eb72e43cff43fe7d0396f848f19df7595
|
||||
DIST linbox-1.7.1_pre20250703.tar.gz 2305976 BLAKE2B fdbe24ce257b69dbcc3f0698eb180f21779d41b3d3ba8efcaacc0358d11082b1d64d34fb78ebaf55122788c0a47cf1b94e505c1197191584280f03bd2bf5ec1c SHA512 a01d680d319c93f8bb63dccd9f2113ec9ad4b7d1e3e5081b3e1f794d64f2f926872e2f1bc842c3d6ba8019efbb63df4d107d56f55b26502d16b05d0c1a55a88d
|
||||
|
||||
108
sci-libs/linbox/linbox-1.7.1.ebuild
Normal file
108
sci-libs/linbox/linbox-1.7.1.ebuild
Normal file
@ -0,0 +1,108 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="C++ template library for integer and finite-field linear algebra"
|
||||
HOMEPAGE="https://linalg.org/"
|
||||
SRC_URI="https://github.com/linbox-team/${PN}/releases/download/v${PV}/${P}.tar.gz"
|
||||
|
||||
# I think only macros/libtool.m4 (and COPYING) is GPL-2+; the source
|
||||
# headers all say LGPL-2.1
|
||||
LICENSE="GPL-2+ LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
|
||||
IUSE="doc opencl openmp"
|
||||
|
||||
BDEPEND="doc? ( app-text/doxygen )"
|
||||
|
||||
# The project README says that gmp, givaro, and blas/lapack are required
|
||||
# transitively via fflas-ffpack, but that's not true. The build system
|
||||
# checks for them, and `git grep` shows that they're used directly.
|
||||
DEPEND="dev-libs/gmp[cxx(+)]
|
||||
=sci-libs/givaro-4.2*
|
||||
=sci-libs/fflas-ffpack-2.5*
|
||||
virtual/cblas
|
||||
virtual/lapack
|
||||
opencl? ( virtual/opencl )
|
||||
dev-libs/ntl:=
|
||||
sci-libs/iml
|
||||
dev-libs/mpfr:=
|
||||
sci-mathematics/flint"
|
||||
|
||||
# Use mathjax to render inline latex rather than requiring a working latex
|
||||
# installation to generate bitmaps.
|
||||
RDEPEND="${DEPEND}
|
||||
doc? ( >=dev-libs/mathjax-3 )
|
||||
"
|
||||
|
||||
# The --enable-openmp flag has been removed upstream, but we don't want
|
||||
# openmp support to disappear after the package has been compiled with
|
||||
# it, so we retain the USE flag and the toolchain check.
|
||||
pkg_pretend() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
if use doc; then
|
||||
# Avoid the need for a working LaTeX installation. MathJax does
|
||||
# slow down the browser a bit but it also renders much more
|
||||
# nicely than the latex-generated bitmaps would.
|
||||
echo "
|
||||
USE_MATHJAX = YES
|
||||
MATHJAX_VERSION = MathJax_3
|
||||
MATHJAX_RELPATH = \"${EPREFIX}/usr/share/mathjax\"
|
||||
MATHJAX_EXTENSIONS = ams
|
||||
" >> doc/Doxyfile.mod || die
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
#
|
||||
# The --with-all flag includes,
|
||||
#
|
||||
# --with-givaro: used for finite fields, integer, etc. (required)
|
||||
# --with-fflas-ffpack: small field dense linear algebra (required)
|
||||
# --with-ntl: used for finite field, polynomial arithmetic (optional)
|
||||
# --with-iml: used for fast integer/rational linear algebra (optional)
|
||||
# --with-mpfr: not sure, doesn't seem to be used? (optional)
|
||||
# --with-flint: used in algorithms/matrix-blas3 once (optional)
|
||||
# --with-fplll: an fplll interface not directly used (optional)
|
||||
# --with-doxygen: needed with --enable-doc to build them (optional)
|
||||
#
|
||||
# Some of these could be behind USE flags, but the ./configure output
|
||||
# says that they're "not yet mandatory," which makes me think we might
|
||||
# be overcomplicating things to make them optional right now.
|
||||
#
|
||||
econf \
|
||||
--with-docdir="${EPREFIX}/usr/share/doc/${PF}" \
|
||||
--with-all="${EPREFIX}"/usr \
|
||||
--without-fplll \
|
||||
--without-archnative \
|
||||
$(use_enable doc) \
|
||||
$(use_with opencl ocl)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
if use doc; then
|
||||
# These files are used for incremental doxygen builds but aren't
|
||||
# part of the final output. Check on
|
||||
#
|
||||
# https://github.com/linbox-team/linbox/issues/252
|
||||
#
|
||||
# periodically to see if this is pointless.
|
||||
find "${ED}/usr/share/doc/${PF}" -type f -name '*.md5' -delete || die
|
||||
find "${ED}/usr/share/doc/${PF}" -type f -name '*.map' -delete || die
|
||||
fi
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user