diff options
author | 2023-02-07 16:01:59 -0500 | |
---|---|---|
committer | 2023-02-08 08:12:23 +0100 | |
commit | cddffad0d00b5a4b82dd981c0446489ee29e019c (patch) | |
tree | 96aef21a5075f0f45ef84db51c29246ddebad308 /dev-libs/FXdiv/FXdiv-2020.12.09-r1.ebuild | |
parent | mail-client/thunderbird-bin: drop 102.7.1 (diff) | |
download | gentoo-cddffad0d00b5a4b82dd981c0446489ee29e019c.tar.gz gentoo-cddffad0d00b5a4b82dd981c0446489ee29e019c.tar.bz2 gentoo-cddffad0d00b5a4b82dd981c0446489ee29e019c.zip |
dev-libs/FXdiv: fix building with dev-cpp/gtest-1.13.0
Closes: https://bugs.gentoo.org/893340
Closes: https://github.com/gentoo/gentoo/pull/29471
Signed-off-by: Peter Levine <plevine457@gmail.com>
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-libs/FXdiv/FXdiv-2020.12.09-r1.ebuild')
-rw-r--r-- | dev-libs/FXdiv/FXdiv-2020.12.09-r1.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/dev-libs/FXdiv/FXdiv-2020.12.09-r1.ebuild b/dev-libs/FXdiv/FXdiv-2020.12.09-r1.ebuild new file mode 100644 index 000000000000..454495945d21 --- /dev/null +++ b/dev-libs/FXdiv/FXdiv-2020.12.09-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit cmake + +CommitId=63058eff77e11aa15bf531df5dd34395ec3017c8 +DESCRIPTION="Division via fixed-point multiplication by inverse" +HOMEPAGE="https://github.com/Maratyszcza/FXdiv/" +SRC_URI="https://github.com/Maratyszcza/${PN}/archive/${CommitId}.tar.gz + -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" + +DEPEND="" +RDEPEND="${DEPEND}" +BDEPEND="test? ( dev-cpp/gtest )" +RESTRICT="!test? ( test )" + +S="${WORKDIR}"/${PN}-${CommitId} + +PATCHES=( + "${FILESDIR}"/${P}-gentoo.patch +) + +src_prepare() { + cmake_src_prepare + + # >=dev-cpp/gtest-1.13.0 requires C++14 standard or later + sed -i -e 's/CXX_STANDARD 11/CXX_STANDARD 14/g' \ + CMakeLists.txt || die "sed failed" +} + +src_configure() { + local mycmakeargs=( + -DFXDIV_BUILD_BENCHMARKS=OFF + -DFXDIV_BUILD_TESTS=$(usex test ON OFF) + ) + cmake_src_configure +} |