blob: 712d979fdb797f811faf883bc7d4b1d274ad2884 (
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
39
40
41
42
43
44
|
# Copyright 2021-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
ADA_COMPAT=( gcc_12_2_0 )
inherit ada multiprocessing
DESCRIPTION="A high level string and text processing library"
HOMEPAGE="https://github.com/AdaCore/VSS"
SRC_URI="https://github.com/AdaCore/${PN}/archive/refs/tags/v${PV}.tar.gz
-> ${P}.tar.gz"
LICENSE="GPL-3 gcc-runtime-library-exception-3.1"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
REQUIRED_USE="${ADA_REQUIRED_USE}"
RDEPEND="${ADA_DEPS}
dev-ada/xmlada[${ADA_USEDEP}]"
DEPEND="${RDEPEND}"
BDEPEND="dev-ada/gprbuild[${ADA_USEDEP}]
test? (
app-i18n/unicode-data
dev-ada/xmlada[${ADA_USEDEP}]
)"
src_prepare() {
mkdir data
ln -sf /usr/share/unicode-data data/ucd || die
default
}
src_compile() {
emake GPRBUILD_FLAGS="-p -j$(makeopts_jobs) -v"
}
src_test() {
emake -j1 GPRBUILD_FLAGS="-p -j$(makeopts_jobs) -v" build_tests
#emake check_text check_json # these are failing here
emake check_regexp check_html
}
|