blob: b6fce09b35bb3a5ed03c36a388bce66919066463 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit flag-o-matic toolchain-funcs
DESCRIPTION="library for floating point number manipulation"
HOMEPAGE="https://www.libtom.net/"
SRC_URI="https://github.com/libtom/libtomfloat/releases/download/${PV}/ltf-${PV}.tar.bz2"
LICENSE="WTFPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
DEPEND="dev-libs/libtommath"
RDEPEND="${DEPEND}"
src_prepare() {
default
sed -i \
-e 's:\<ranlib\>:$(RANLIB):' \
-e "/^LIBPATH/s:/lib:/$(get_libdir):" \
makefile || die "Fixing makefile failed"
tc-export AR CC RANLIB
# The only installed artifact is a static library, so LTO cannot either work
# or fail to work. Rather than build fat LTO and then strip it with dot-a.eclass,
# simply skip LTO entirely.
filter-lto
}
src_install() {
default
dodoc changes.txt float.pdf WARNING
docinto demos
dodoc demos/ex1.c
}
|