1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 )
8 inherit python-single-r1
10 MYP=${PN}-gpl-${PV}-src
11 DESCRIPTION="high performance semantic engine for the Ada programming language"
12 HOMEPAGE="https://libre.adacore.com/"
13 SRC_URI="http://mirrors.cdn.adacore.com/art/5b0cf9adc7a4475263382c18
16 LICENSE="GPL-3 gcc-runtime-library-exception-3.1"
18 KEYWORDS="~amd64 ~x86"
19 IUSE="gnat_2016 gnat_2017 +gnat_2018 gnat_2019 +shared static-libs"
21 RDEPEND="dev-python/pyyaml
22 dev-ada/gnatcoll-bindings[gnat_2016=,gnat_2017=,gnat_2018=,gnat_2019=]
23 dev-ada/gnatcoll-bindings[iconv,shared=,static-libs=]
26 >=dev-ada/langkit-2018"
27 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
32 "${FILESDIR}"/${P}-gentoo.patch
33 "${FILESDIR}"/${PN}-2017-gentoo.patch
37 ada/manage.py -v debug generate || die
43 $(use_enable shared) \
44 $(use_enable static-libs static) \
46 --build-mode='prod' || die
50 ada/manage.py test | grep FAILED && die
55 $(use_enable shared) \
56 $(use_enable static-libs static) \
57 install "${D}"usr || die
58 python_domodule build/python/libadalang.py
59 rm -r "${D}"usr/python || die