aboutsummaryrefslogtreecommitdiff
blob: d03ecb7fc8a3a2ca55cd97590a297c66d28a1362 (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
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit cmake

DESCRIPTION="C math library supporting IEEE 754 floating-point arithmetic"
HOMEPAGE="https://www.netlib.org/fdlibm"
SRC_URI="https://github.com/batlogic/fdlibm/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="freedist"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"

PATCHES=(
	"${FILESDIR}/${PN}-no-Werror.patch"
)

src_prepare() {
	mv CMakelists.txt CMakeLists.txt || die
	cmake_src_prepare
}

src_install() {
	cmake_src_install
	mv "${ED}/usr/lib" "${ED}/usr/$(get_libdir)" || die
}