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/gnatcoll-bindings/
Date: Fri,  7 Jun 2019 21:26:08 +0000 (UTC)	[thread overview]
Message-ID: <1559942755.0e03a21f3f3b27e087eb41b7e98d1d66a632020e.tupone@gentoo> (raw)

commit:     0e03a21f3f3b27e087eb41b7e98d1d66a632020e
Author:     Tupone Alfredo <tupone <AT> gentoo <DOT> org>
AuthorDate: Fri Jun  7 21:25:55 2019 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Fri Jun  7 21:25:55 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e03a21f

dev-ada/gnatcoll-bindings: bump to 2019

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

 dev-ada/gnatcoll-bindings/Manifest                 |  1 +
 .../gnatcoll-bindings-2019.ebuild                  | 81 ++++++++++++++++++++++
 2 files changed, 82 insertions(+)

diff --git a/dev-ada/gnatcoll-bindings/Manifest b/dev-ada/gnatcoll-bindings/Manifest
index cba69c23221..3e5d41d11b3 100644
--- a/dev-ada/gnatcoll-bindings/Manifest
+++ b/dev-ada/gnatcoll-bindings/Manifest
@@ -1 +1,2 @@
+DIST gnatcoll-bindings-2019-20190430-1928C-src.tar.gz 138935 BLAKE2B c72398b51bf383b163ac10000c4dd5441334a6f24d7ad075d8115f25c030b43bc1dace6a1121e1e69add1eead93a5389aff09ef013deb4682ccb1d31bb85313f SHA512 6db1d35a1cdf5188001084750f7aa32b193768f8c3dfb6d7db8a8314c745fc054b0a6d2234a6dd64c5acd4b1bafffa7ce7f1080bd51fbb8bc88edfcc855b7a48
 DIST gnatcoll-bindings-gpl-2018-src.tar.gz 100068 BLAKE2B 7e5fe106d421d853135ddaea04b7bf2b306e7d0f054379b4c66b58844ac73270d7c82de549e9440f4ecc672ed7e9df6e2b3c1fea55b67403aaa33b09c124bb9b SHA512 2d42e904ab7324d958b34b103ceb2cf7d9bf620f324578b8d3537c18bcc2b4ba73d553bbec773cde5d57979c3e68bc9eef69f97dd55a3b21e43d464881676295

diff --git a/dev-ada/gnatcoll-bindings/gnatcoll-bindings-2019.ebuild b/dev-ada/gnatcoll-bindings/gnatcoll-bindings-2019.ebuild
new file mode 100644
index 00000000000..60a73d35f0d
--- /dev/null
+++ b/dev-ada/gnatcoll-bindings/gnatcoll-bindings-2019.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 )
+inherit multilib multiprocessing python-single-r1
+
+MYP=${P}-20190430-1928C
+
+DESCRIPTION="GNAT Component Collection"
+HOMEPAGE="http://libre.adacore.com"
+SRC_URI="http://mirrors.cdn.adacore.com/art/5cdf8afa31e87a8f1d425054
+	-> ${MYP}-src.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gnat_2016 gnat_2017 gnat_2018 +gnat_2019 gmp iconv python readline +shared
+	static-libs static-pic syslog"
+
+RDEPEND="python? ( ${PYTHON_DEPS} )
+	dev-ada/gnatcoll-core[gnat_2016(-)?,gnat_2017(-)?,gnat_2018(-)?,gnat_2019(-)?]
+	dev-ada/gnatcoll-core[shared?,static-libs?,static-pic?]
+	gmp? ( dev-libs/gmp:* )"
+DEPEND="${RDEPEND}
+	dev-ada/gprbuild[gnat_2016(-)?,gnat_2017(-)?,gnat_2018(-)?,gnat_2019(-)?]"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )
+	^^ ( gnat_2016 gnat_2017 gnat_2018 gnat_2019 )"
+
+S="${WORKDIR}"/${MYP}-src
+
+src_compile() {
+	build () {
+		gprbuild -j$(makeopts_jobs) -m -p -v \
+			-XGPR_BUILD=$2 -XGNATCOLL_CORE_BUILD=$2 \
+			-XLIBRARY_TYPE=$2 -P $1/gnatcoll_$1.gpr -XBUILD="PROD" \
+			-XGNATCOLL_ICONV_OPT= -XGNATCOLL_PYTHON_CFLAGS="-I$(python_get_includedir)" \
+			-XGNATCOLL_PYTHON_LIBS=$(python_get_library_path) \
+			-cargs:Ada ${ADAFLAGS} -cargs:C ${CFLAGS} || die "gprbuild failed"
+	}
+	for kind in shared static-libs static-pic ; do
+		if use $kind; then
+			lib=${kind%-libs}
+			lib=${lib/shared/relocatable}
+			for dir in gmp iconv python readline syslog ; do
+				if use $dir; then
+					build $dir $lib
+				fi
+			done
+		fi
+	done
+}
+
+src_install() {
+	build () {
+		gprinstall -p -f -XBUILD=PROD --prefix="${D}"/usr -XLIBRARY_TYPE=$2 \
+			-XGPR_BUILD=$2 -XGNATCOLL_CORE_BUILD=$2 \
+			-XGNATCOLL_ICONV_OPT= -P $1/gnatcoll_$1.gpr --build-name=$2
+	}
+	for kind in shared static-libs static-pic ; do
+		if use $kind; then
+			lib=${kind%-libs}
+			lib=${lib/shared/relocatable}
+			for dir in gmp iconv python readline syslog ; do
+				if use $dir; then
+					build $dir $lib
+				fi
+			done
+		fi
+	done
+	if use iconv; then
+		sed -i \
+			-e "s:GNATCOLL_ICONV_BUILD:LIBRARY_TYPE:" \
+			"${D}"/usr/share/gpr/gnatcoll_iconv.gpr \
+			|| die
+	fi
+	rm -r "${D}"/usr/share/gpr/manifests || die
+	einstalldocs
+}


             reply	other threads:[~2019-06-07 21:26 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-07 21:26 Alfredo Tupone [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-19 18:23 [gentoo-commits] repo/gentoo:master commit in: dev-ada/gnatcoll-bindings/ Alfredo Tupone
2024-03-13 12:51 Alfredo Tupone
2023-12-02 16:42 Alfredo Tupone
2023-03-21 21:02 Alfredo Tupone
2023-02-22 18:57 Alfredo Tupone
2023-02-03 19:12 Alfredo Tupone
2022-12-04 21:08 Alfredo Tupone
2022-12-04 13:52 Alfredo Tupone
2022-11-21 18:01 Alfredo Tupone
2022-09-26 20:25 Alfredo Tupone
2022-02-04  7:28 Alfredo Tupone
2021-12-19 22:09 Agostino Sarubbo
2021-12-19  9:34 Alfredo Tupone
2021-12-19  9:13 Alfredo Tupone
2021-12-18 20:09 Alfredo Tupone
2021-12-18 14:41 Alfredo Tupone
2021-12-09 18:33 Alfredo Tupone
2021-11-25  6:58 Alfredo Tupone
2021-11-17  7:35 Alfredo Tupone
2021-11-16 18:54 Alfredo Tupone
2021-09-19 10:15 Alfredo Tupone
2021-09-15 19:32 Alfredo Tupone
2021-07-20  6:33 Agostino Sarubbo
2021-06-04 19:19 Alfredo Tupone
2021-05-22 13:43 Alfredo Tupone
2021-01-01 10:17 Alfredo Tupone
2021-01-01 10:10 Alfredo Tupone
2020-08-01 20:39 Alfredo Tupone
2020-06-25  6:39 Alfredo Tupone
2020-05-23 18:40 Alfredo Tupone
2019-11-09 19:53 Alfredo Tupone
2019-10-21  6:36 Alfredo Tupone
2019-09-21 11:43 Alfredo Tupone
2019-09-17  7:14 Alfredo Tupone
2019-08-28 16:34 Alfredo Tupone
2019-08-27 10:14 Alfredo Tupone
2019-06-21  6:17 Alfredo Tupone
2019-06-04 20:19 Alfredo Tupone
2019-05-30  8:16 Alfredo Tupone
2018-07-07 20:35 Alfredo Tupone
2018-06-29 13:58 Alfredo Tupone
2018-06-28 19:08 Alfredo Tupone
2018-06-25  7:39 Alfredo Tupone
2018-06-24 15:03 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=1559942755.0e03a21f3f3b27e087eb41b7e98d1d66a632020e.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