blob: 2fe1c770f73704fb51f0a8e73fc2d68f9084ad07 (
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
45
46
47
48
49
50
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{8,9} )
DISTUTILS_USE_SETUPTOOLS=no
inherit distutils-r1 multiprocessing
DESCRIPTION="A Python framework to generate language parsers"
HOMEPAGE="https://www.adacore.com/community"
SRC_URI="https://github.com/AdaCore/${PN}/archive/refs/tags/v${PV}.tar.gz
-> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="${PYTHON_DEPS}
dev-ada/gnatcoll-bindings[iconv,shared]
dev-python/mako[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
dev-python/funcy[${PYTHON_USEDEP}]
dev-python/docutils[${PYTHON_USEDEP}]
dev-ada/e3-core[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/${P}-gnarl.patch
)
src_compile() {
gprbuild -v -P support/langkit_support.gpr -p -j$(makeopts_jobs) \
-XBUILD_MODE=dev -XLIBRARY_TYPE=relocatable -cargs:Ada ${ADAFLAGS} \
|| die
distutils-r1_src_compile
}
src_install() {
gprinstall -v -P support/langkit_support.gpr -p -XBUILD_MODE=dev \
--prefix="${D}"/usr --build-var=LIBRARY_TYPE \
--build-var=LANGKIT_SUPPORT_LIBRARY_TYPE \
--sources-subdir=include/langkit_support \
-XLIBRARY_TYPE=relocatable --build-name=relocatable || die
distutils-r1_src_install
}
|