From: "Alfredo Tupone" <tupone@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ada/gnatcoll/files/, dev-ada/gnatcoll/
Date: Thu, 6 Apr 2017 06:44:52 +0000 (UTC) [thread overview]
Message-ID: <1491461075.53a82b45cf0a1594164e11175cdde9341ac7e5dd.tupone@gentoo> (raw)
commit: 53a82b45cf0a1594164e11175cdde9341ac7e5dd
Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 6 06:44:35 2017 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Thu Apr 6 06:44:35 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53a82b45
dev-ada/gnatcoll: fix discover of atomic inc/dec
Package-Manager: Portage-2.3.3, Repoman-2.3.1
dev-ada/gnatcoll/files/gnatcoll-2016-gentoo.patch | 20 ++++++++++++++++++++
dev-ada/gnatcoll/gnatcoll-2016.ebuild | 21 ++++++++++++++++++++-
2 files changed, 40 insertions(+), 1 deletion(-)
diff --git a/dev-ada/gnatcoll/files/gnatcoll-2016-gentoo.patch b/dev-ada/gnatcoll/files/gnatcoll-2016-gentoo.patch
index 0d3d958c791..bb2112a058f 100644
--- a/dev-ada/gnatcoll/files/gnatcoll-2016-gentoo.patch
+++ b/dev-ada/gnatcoll/files/gnatcoll-2016-gentoo.patch
@@ -147,3 +147,23 @@
case GnatColl_Shared.Atomics is
when "intrinsic" =>
+--- gnatcoll-gpl-2016-src/aclocal.m4.old 2017-04-06 08:25:14.796699365 +0200
++++ gnatcoll-gpl-2016-src/aclocal.m4 2017-04-06 08:25:36.622318016 +0200
+@@ -45,7 +45,7 @@
+ cat > conftest.ada <<EOF
+ [$3]
+ EOF
+- if AC_TRY_COMMAND([gnatchop -q conftest.ada && $1 $2 >/dev/null 2>conftest.out])
++ if AC_TRY_COMMAND([${GNATCHOP} -q conftest.ada && $1 $2 >/dev/null 2>conftest.out])
+ then
+ : Success
+ $4
+@@ -68,7 +68,7 @@
+ AC_DEFUN(AM_HAS_INTRINSIC_SYNC_COUNTERS,
+ [
+ AC_MSG_CHECKING([whether platform supports atomic inc/dec])
+- AM_TRY_ADA([gnatmake], [check.adb],
++ AM_TRY_ADA([${GNATMAKE}], [check.adb],
+ [
+ with Interfaces; use Interfaces;
+ procedure Check is
diff --git a/dev-ada/gnatcoll/gnatcoll-2016.ebuild b/dev-ada/gnatcoll/gnatcoll-2016.ebuild
index 3f8a8fb505a..36e52edb121 100644
--- a/dev-ada/gnatcoll/gnatcoll-2016.ebuild
+++ b/dev-ada/gnatcoll/gnatcoll-2016.ebuild
@@ -3,7 +3,7 @@
EAPI=6
-inherit multilib multiprocessing
+inherit multilib multiprocessing autotools
MYP=${PN}-gpl-${PV}
@@ -38,6 +38,23 @@ S="${WORKDIR}"/${MYP}-src
PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+pkg_setup() {
+ GCC=${ADA:-$(tc-getCC)}
+ GNATMAKE="${GCC/gcc/gnatmake}"
+ GNATCHOP="${GCC/gcc/gnatchop}"
+ if [[ -z "$(type ${GNATMAKE} 2>/dev/null)" ]] ; then
+ eerror "You need a gcc compiler that provides the Ada Compiler:"
+ eerror "1) use gcc-config to select the right compiler or"
+ eerror "2) set ADA=gcc-4.9.4 in make.conf"
+ die "ada compiler not available"
+ fi
+}
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
src_configure() {
local myConf=""
if use sqlite; then
@@ -46,6 +63,8 @@ src_configure() {
myConf="$myConf --without-sqlite"
fi
econf \
+ GNATCHOP="${GNATCHOP}" \
+ GNATMAKE="${GNATMAKE}" \
$(use_with gmp) \
$(use_with iconv) \
$(use_with postgresql) \
next reply other threads:[~2017-04-06 6:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-06 6:44 Alfredo Tupone [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-11-18 10:10 [gentoo-commits] repo/gentoo:master commit in: dev-ada/gnatcoll/files/, dev-ada/gnatcoll/ Alfredo Tupone
2018-11-14 21:45 Alfredo Tupone
2018-11-13 20:30 Alfredo Tupone
2018-11-11 11:01 Alfredo Tupone
2018-11-10 8:35 Alfredo Tupone
2017-11-25 15:11 Alfredo Tupone
2017-06-24 16:45 Alfredo Tupone
2017-04-24 21:04 Alfredo Tupone
2017-04-05 9:27 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=1491461075.53a82b45cf0a1594164e11175cdde9341ac7e5dd.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