blob: 3b28c79a0dcd18d078a1e56d53cf5e0a0d339c9e (
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-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
ADA_COMPAT=( gnat_201{6,7,8,9} )
inherit ada multiprocessing
MYP=${P}-20190517-195C4
DESCRIPTION="Libadalang-based tools: gnatpp, gnatmetric and gnatstub"
HOMEPAGE="https://www.adacore.com/community"
SRC_URI="http://mirrors.cdn.adacore.com/art/5cdf8f4e31e87a8f1d42509f ->
${MYP}-src.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
RDEPEND="${ADA_DEPS}"
DEPEND="${RDEPEND}
dev-ada/libadalang[${ADA_USEDEP},static-libs]
dev-ada/gprbuild[${ADA_USEDEP}]"
S="${WORKDIR}"/${MYP}-src
src_compile() {
gprbuild -v -k -XLIBRARY_TYPE=static -XXMLADA_BUILD=static \
-XGNATCOLL_GMP_BUILD=static \
-P src/build.gpr -p -j$(makeopts_jobs) || die
}
src_install() {
dobin bin/gnatpp
newbin bin/gnatmetric gnatmetric-tool
newbin bin/gnatstub gnatstub-tool
einstalldocs
}
|