summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2020-06-09 13:34:03 +0200
committerAlfredo Tupone <tupone@gentoo.org>2020-06-09 13:34:40 +0200
commit2920b98113125ea46feabcba8e2360be107b0d6c (patch)
treec372752620e705c1bd3230deb3e1a113ba9a774e /dev-ada
parentapp-portage/pfl: Remove old pfl-3.0.1-r3. (diff)
downloadgentoo-2920b98113125ea46feabcba8e2360be107b0d6c.tar.gz
gentoo-2920b98113125ea46feabcba8e2360be107b0d6c.tar.bz2
gentoo-2920b98113125ea46feabcba8e2360be107b0d6c.zip
dev-ada/langkit: add -lgnarl & -lgnat for incoming gprbuild
Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-ada')
-rw-r--r--dev-ada/langkit/files/langkit-2019-gnarl.patch10
-rw-r--r--dev-ada/langkit/langkit-2019-r1.ebuild52
2 files changed, 62 insertions, 0 deletions
diff --git a/dev-ada/langkit/files/langkit-2019-gnarl.patch b/dev-ada/langkit/files/langkit-2019-gnarl.patch
new file mode 100644
index 000000000000..fb69768dc9de
--- /dev/null
+++ b/dev-ada/langkit/files/langkit-2019-gnarl.patch
@@ -0,0 +1,10 @@
+--- a/langkit/templates/mains_project_file.mako 2020-06-09 09:34:36.677265457 +0200
++++ b/langkit/templates/mains_project_file.mako 2020-06-09 09:35:30.569451995 +0200
+@@ -40,4 +40,7 @@
+ for Switches ("ada") use ("-E");
+ end Binder;
+
++ package Linker is
++ for Switches ("ada") use ("-lgnat", "-lgnarl");
++ end Linker;
+ end Mains;
diff --git a/dev-ada/langkit/langkit-2019-r1.ebuild b/dev-ada/langkit/langkit-2019-r1.ebuild
new file mode 100644
index 000000000000..1f7676ec30e0
--- /dev/null
+++ b/dev-ada/langkit/langkit-2019-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-single-r1 multiprocessing
+
+MYP=${P}-20190510-19B8C
+
+DESCRIPTION="A Python framework to generate language parsers"
+HOMEPAGE="https://www.adacore.com/community"
+SRC_URI="http://mirrors.cdn.adacore.com/art/5cdf8f8a31e87a8f1c967d31
+ -> ${MYP}-src.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-ada/gnatcoll-bindings[iconv,shared]
+ dev-python/mako
+ dev-python/pyyaml
+ dev-python/enum34
+ dev-python/funcy
+ dev-python/docutils"
+
+DEPEND="${RDEPEND}
+ test? ( dev-ada/gnatcoll-bindings[gmp] )"
+
+S="${WORKDIR}"/${MYP}-src
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gentoo.patch
+ "${FILESDIR}"/${P}-pyyaml.patch
+ "${FILESDIR}"/${P}-gnarl.patch
+)
+
+src_test() {
+ testsuite/testsuite.py -j $(makeopts_jobs) --show-error-output | tee testsuite.log
+ grep -q FAILED testsuite.log && die "Test failed"
+}
+
+src_install() {
+ default
+ python_domodule langkit
+ python_doscript scripts/create-project.py
+}