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

EAPI=8

inherit toolchain-funcs

DESCRIPTION='iMatix GSL code generator'
HOMEPAGE="https://github.com/zeromq/gsl"
SRC_URI="https://github.com/zeromq/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

KEYWORDS="~amd64"
LICENSE='GPL-3+'
SLOT="0"
IUSE="examples"

DEPEND="dev-libs/libpcre:3"
RDEPEND="${DEPEND}"

PATCHES=( "${FILESDIR}/${P}-respect-flags.patch" )

src_prepare() {
	tc-export RANLIB
	export CCNAME="$(tc-getCC)"
	export CCPLUS="$(tc-getCXX)"
	default
}

src_install() {
	DESTDIR="${D}/usr" emake install
	if use examples; then
		dodoc -r examples
		dodoc -r doc/examples
	fi
	dodoc doc/denormalizing*
	dodoc -r doc/modules
	dodoc README*
}