summaryrefslogtreecommitdiff
blob: 15469f067cb738c208740c8559aed1ec7db771f0 (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
# Copyright 2019-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="C++ library for semigroups and monoids"
HOMEPAGE="https://github.com/libsemigroups/libsemigroups"
SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz"

# Source headers have "or any later version"
LICENSE="GPL-3+"
SLOT="0/2"
KEYWORDS="~amd64 ~riscv ~x86"
IUSE="cpu_flags_x86_popcnt"

PATCHES=( "${FILESDIR}/${P}-gcc-15-buildfix.patch" )

src_configure() {
	econf \
		$(use_enable cpu_flags_x86_popcnt popcnt) \
		--disable-eigen \
		--disable-hpcombi \
		--disable-fmt
}

src_install() {
	default
	find "${ED}" -type f -name '*.la' -delete || die
}