public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alfredo Tupone" <tupone@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ada/libadalang/
Date: Thu, 19 Sep 2019 12:45:13 +0000 (UTC)	[thread overview]
Message-ID: <1568897078.c69df102e7e15f4554b63a4305c551251ddb63a4.tupone@gentoo> (raw)

commit:     c69df102e7e15f4554b63a4305c551251ddb63a4
Author:     Tupone Alfredo <tupone <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 19 12:44:38 2019 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Thu Sep 19 12:44:38 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c69df102

dev-ada/libadalang: use ada eclass

Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-ada/libadalang/libadalang-2017-r2.ebuild | 54 ++++++++++++++++++++++
 dev-ada/libadalang/libadalang-2018-r2.ebuild | 63 +++++++++++++++++++++++++
 dev-ada/libadalang/libadalang-2019-r1.ebuild | 69 ++++++++++++++++++++++++++++
 3 files changed, 186 insertions(+)

diff --git a/dev-ada/libadalang/libadalang-2017-r2.ebuild b/dev-ada/libadalang/libadalang-2017-r2.ebuild
new file mode 100644
index 00000000000..26e9c93f4fe
--- /dev/null
+++ b/dev-ada/libadalang/libadalang-2017-r2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 )
+ADA_COMPAT=( gnat_201{6,7} )
+
+inherit ada python-single-r1
+
+DESCRIPTION="high performance semantic engine for the Ada programming language"
+HOMEPAGE="https://libre.adacore.com/"
+SRC_URI="http://mirrors.cdn.adacore.com/art/591c45e2c7a447af2deed042
+	-> ${P}-src.tar.gz"
+
+LICENSE="GPL-3 gcc-runtime-library-exception-3.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="${ADA_DEPS}
+	dev-python/pyyaml
+	dev-ada/gnatcoll[${ADA_USEDEP},projects,shared]
+	${PYTHON_DEPS}"
+DEPEND="${RDEPEND}
+	~dev-ada/langkit-2017"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}
+	${ADA_REQUIRED_USE}"
+
+S="${WORKDIR}"/${PN}-gps-src
+
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+
+src_prepare() {
+	default
+	rm -r ada/testsuite/tests/acats_parse || die
+}
+
+src_configure() {
+	ada/manage.py generate || die
+}
+
+src_compile() {
+	ada/manage.py --verbosity=debug build || die
+}
+
+src_test () {
+	ada/manage.py test | grep FAILED && die
+}
+
+src_install () {
+	ada/manage.py install "${D}"usr
+	python_domodule build/python/libadalang.py
+}

diff --git a/dev-ada/libadalang/libadalang-2018-r2.ebuild b/dev-ada/libadalang/libadalang-2018-r2.ebuild
new file mode 100644
index 00000000000..86894120316
--- /dev/null
+++ b/dev-ada/libadalang/libadalang-2018-r2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 )
+ADA_COMPAT=( gnat_201{7,8,9} )
+
+inherit ada python-single-r1
+
+MYP=${PN}-gpl-${PV}-src
+DESCRIPTION="high performance semantic engine for the Ada programming language"
+HOMEPAGE="https://libre.adacore.com/"
+SRC_URI="http://mirrors.cdn.adacore.com/art/5b0cf9adc7a4475263382c18
+	-> ${MYP}.tar.gz"
+
+LICENSE="GPL-3 gcc-runtime-library-exception-3.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+shared static-libs"
+
+RDEPEND="dev-python/pyyaml
+	dev-ada/gnatcoll-bindings[${ADA_USEDEP},iconv,shared=,static-libs=]
+	${ADA_DEPS}
+	${PYTHON_DEPS}"
+DEPEND="${RDEPEND}
+	~dev-ada/langkit-2018
+	dev-ada/gprbuild[${ADA_USEDEP}]"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}
+	${ADA_REQUIRED_USE}"
+
+S="${WORKDIR}"/${MYP}
+
+PATCHES=(
+	"${FILESDIR}"/${P}-gentoo.patch
+	"${FILESDIR}"/${PN}-2017-gentoo.patch
+)
+
+src_configure() {
+	ada/manage.py -v debug generate || die
+}
+
+src_compile() {
+	ada/manage.py \
+		-v \
+		$(use_enable shared) \
+		$(use_enable static-libs static) \
+		build \
+		--build-mode='prod' || die
+}
+
+src_test () {
+	ada/manage.py test | grep FAILED && die
+}
+
+src_install () {
+	ada/manage.py \
+		$(use_enable shared) \
+		$(use_enable static-libs static) \
+		install "${D}"/usr || die
+	python_domodule build/python/libadalang.py
+	rm -r "${D}"/usr/python || die
+}

diff --git a/dev-ada/libadalang/libadalang-2019-r1.ebuild b/dev-ada/libadalang/libadalang-2019-r1.ebuild
new file mode 100644
index 00000000000..23ddcc1668b
--- /dev/null
+++ b/dev-ada/libadalang/libadalang-2019-r1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 )
+ADA_COMPAT=( gnat_201{8,9} )
+
+inherit ada python-single-r1
+
+MYP=${P}-20190510-19916-src
+DESCRIPTION="high performance semantic engine for the Ada programming language"
+HOMEPAGE="https://libre.adacore.com/"
+SRC_URI="http://mirrors.cdn.adacore.com/art/5cdf8f3331e87a8f1c967d27
+	-> ${MYP}.tar.gz"
+
+LICENSE="GPL-3 gcc-runtime-library-exception-3.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+shared static-libs"
+
+RDEPEND="dev-python/pyyaml
+	dev-ada/gnatcoll-bindings[${ADA_USEDEP},iconv,shared=,static-libs=]
+	${ADA_DEPS}
+	${PYTHON_DEPS}"
+DEPEND="${RDEPEND}
+	dev-ada/gprbuild[${ADA_USEDEP}]
+	>=dev-ada/langkit-2019"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}
+	${ADA_REQUIRED_USE}"
+
+S="${WORKDIR}"/${MYP}
+
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+
+src_configure() {
+	ada/manage.py -v debug generate || die
+}
+
+src_compile() {
+	libtype=relocatable
+	if use shared; then
+		if use static-libs; then
+			libtype=static,relocatable
+		fi
+	elif use static-libs; then
+		libtype=static
+	fi
+	ada/manage.py \
+		-v \
+		--library-types $libtype \
+		build \
+		--build-mode='prod' || die
+}
+
+src_test () {
+	ada/manage.py test | tee libadalang.testOut;
+	grep -q FAILED libadalang.testOut && die
+}
+
+src_install () {
+	ada/manage.py \
+		-v \
+		--library-types $libtype \
+		install "${D}"/usr || die
+	python_domodule build/python/libadalang
+	rm -r "${D}"/usr/python || die
+}


             reply	other threads:[~2019-09-19 12:45 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-19 12:45 Alfredo Tupone [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-04-05 16:02 [gentoo-commits] repo/gentoo:master commit in: dev-ada/libadalang/ Alfredo Tupone
2025-02-24 20:33 Alfredo Tupone
2025-02-23 14:07 Alfredo Tupone
2025-02-23  8:50 Alfredo Tupone
2025-02-23  8:27 Alfredo Tupone
2025-02-18 21:02 Alfredo Tupone
2025-02-02 15:34 Alfredo Tupone
2025-02-02 14:39 Alfredo Tupone
2025-01-27 20:39 Alfredo Tupone
2024-12-15  4:30 Sam James
2024-12-15  4:30 Sam James
2024-03-18  8:10 Alfredo Tupone
2024-03-17 21:26 Alfredo Tupone
2023-12-10 16:14 Alfredo Tupone
2023-03-21 21:02 Alfredo Tupone
2023-03-19 19:48 Alfredo Tupone
2023-03-19 19:45 Alfredo Tupone
2023-01-10 14:31 Michał Górny
2022-12-13 18:32 Alfredo Tupone
2022-12-12 19:55 Alfredo Tupone
2022-12-12 18:19 Alfredo Tupone
2022-12-11 21:10 Alfredo Tupone
2022-12-05 13:23 Alfredo Tupone
2022-11-21 17:57 Alfredo Tupone
2022-10-08 21:50 Alfredo Tupone
2022-10-02 17:52 Alfredo Tupone
2022-09-30 20:38 Alfredo Tupone
2022-02-03 20:03 Alfredo Tupone
2021-12-24 22:12 Alfredo Tupone
2021-12-24 21:46 Alfredo Tupone
2021-12-23 21:03 Alfredo Tupone
2021-12-23 13:10 Alfredo Tupone
2021-12-23  9:40 Alfredo Tupone
2021-12-23  8:14 Alfredo Tupone
2021-12-22 20:56 Alfredo Tupone
2021-12-21  7:15 Alfredo Tupone
2021-12-19 10:13 Alfredo Tupone
2021-12-15 22:00 Alfredo Tupone
2020-02-09 21:38 Alfredo Tupone
2019-11-03 20:26 Alfredo Tupone
2019-10-21  7:03 Alfredo Tupone
2019-10-21  6:41 Alfredo Tupone
2019-09-21 11:48 Alfredo Tupone
2019-09-19 17:21 Alfredo Tupone
2019-06-24 19:47 Alfredo Tupone
2019-06-24 19:23 Alfredo Tupone
2019-06-24 16:57 Alfredo Tupone
2019-06-20  7:27 Alfredo Tupone
2019-06-15 16:45 Alfredo Tupone
2019-06-15 16:40 Alfredo Tupone
2019-06-12 18:44 Alfredo Tupone
2019-05-30 19:18 Alfredo Tupone
2018-11-27  8:15 Alfredo Tupone
2018-11-26 20:57 Alfredo Tupone
2018-11-26 20:54 Alfredo Tupone
2018-11-22  7:07 Alfredo Tupone
2018-07-08  9:05 Alfredo Tupone
2018-04-22  7:47 Alfredo Tupone
2018-03-12 13:44 Alfredo Tupone
2017-12-27 19:15 Alfredo Tupone
2017-12-19 17:55 Alfredo Tupone

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1568897078.c69df102e7e15f4554b63a4305c551251ddb63a4.tupone@gentoo \
    --to=tupone@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox