aboutsummaryrefslogtreecommitdiff
blob: 67de1624ed8617f7d3793c60d7fc4127fae64939 (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
# Copyright 2019-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools

DESCRIPTION="Light-weight Group Library"
HOMEPAGE="https://github.com/LLNL/lwgrp"
SRC_URI="https://github.com/LLNL/lwgrp/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE="mpianysource"

RDEPEND="virtual/mpi"
DEPEND="${RDEPEND}"

src_prepare() {
	default
	eautoreconf
}

src_configure() {
	local myconf=(
		$(use_enable mpianysource)
	)
	econf "${myconf[@]}"
}

src_install() {
	default
	rm -r "${ED}/usr/share/${PN}" || die
	find "${ED}" -name '*.la' -delete || die
	find "${ED}" -name '*.a' -delete || die
}