gentoo/dev-libs/libtompoly/libtompoly-0.04-r3.ebuild
Arthur Zamarin 73a83ed666
dev-libs/libtompoly: Stabilize 0.04-r3 ppc, #963192
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
2025-09-26 14:11:25 +03:00

41 lines
833 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit dot-a toolchain-funcs
DESCRIPTION="Portable ISO C library for polynomial basis arithmetic"
HOMEPAGE="https://www.libtom.net/"
SRC_URI="https://github.com/libtom/libtompoly/releases/download/${PV}/ltp-${PV}.tar.bz2"
LICENSE="|| ( public-domain WTFPL-2 )"
SLOT="0"
KEYWORDS="amd64 ppc x86"
DEPEND="dev-libs/libtommath"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}"/${PN}-0.04-Fix-Wimplicit-function-declaration.patch
)
src_prepare() {
default
sed -i \
-e 's:\<ar\>:$(AR):' \
-e "/^LIBPATH/s:/lib:/$(get_libdir):" \
makefile || die "Fixing makefile failed"
tc-export AR CC
lto-guarantee-fat
}
src_install() {
default
strip-lto-bytecode
dodoc changes.txt pb.pdf
docinto demo
dodoc demo/demo.c
}