gentoo-ebuilds/sci-mathematics/msieve/msieve-1.53-r1.ebuild
Michał Górny 7215a6a587
*/*: Add := to virtual/zlib deps
Done via:

```
git grep -l 'virtual/zlib ' |
  xargs sed -i -e 's@virtual/zlib @virtual/zlib:= @g'
```

with some manual reverts.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
2025-11-04 10:45:41 +01:00

56 lines
1 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="A C library implementing a suite of algorithms to factor large integers"
HOMEPAGE="https://sourceforge.net/projects/msieve/"
SRC_URI="https://downloads.sourceforge.net/${PN}/${PN}/Msieve%20v${PV}/${PN}${PV/./}_src.tar.gz -> ${P}.tar.gz"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="zlib +ecm mpi"
RDEPEND="
ecm? ( sci-mathematics/gmp-ecm )
mpi? ( virtual/mpi )
zlib? ( virtual/zlib:= )"
DEPEND="${RDEPEND}"
PATCHES=(
# TODO: Integrate ggnfs properly
"${FILESDIR}"/${PN}-1.51-reduce-printf.patch
"${FILESDIR}"/${PN}-1.53-fix-version.patch
"${FILESDIR}"/${PN}-1.53-makefile.patch
)
src_configure() {
tc-export AR CC RANLIB
use ecm && export ECM=1
if use mpi; then
export MPI=1
export CC=mpicc
fi
use zlib && export ZLIB=1
}
src_compile() {
emake all
}
src_install() {
dobin msieve
insinto /usr/include/msieve
doins -r include/.
dolib.a libmsieve.a
dodoc Readme*
}