summaryrefslogtreecommitdiff
path: root/dev-cpp/safeint/safeint-3.0.28a.ebuild
blob: 2f7f31d769ea5d77d2a93bb40290eafa4b18d951 (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
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="A class library for C++ that manages integer overflows"
HOMEPAGE="https://github.com/dcleblanc/SafeInt"
SRC_URI="https://github.com/dcleblanc/SafeInt/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"

S="${WORKDIR}/SafeInt-${PV}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"

PATCHES=(
	"${FILESDIR}/${PN}-3.0.28a-install-the-library.patch"
	"${FILESDIR}/${PN}-3.0.28a-make-tests-optional.patch"
	"${FILESDIR}/${PN}-3.0.28a-remove-broken-tests.patch"
	"${FILESDIR}/${PN}-3.0.28a-strip-O3.patch"
)

src_configure() {
	local mycmakeargs=(
		-DBUILD_TESTING=$(usex test)
	)

	cmake_src_configure
}