public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-mathematics/giac/
Date: Sun, 10 Aug 2014 08:05:06 +0000 (UTC)	[thread overview]
Message-ID: <1407601688.0ad0380dbf0cb537b121adbe6e6fcf8ba0a2e080.jlec@gentoo> (raw)

commit:     0ad0380dbf0cb537b121adbe6e6fcf8ba0a2e080
Author:     Dominik Schmidt <das1993 <AT> hotmail <DOT> com>
AuthorDate: Sat Aug  9 07:36:33 2014 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sat Aug  9 16:28:08 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=0ad0380d

sci-mathematics/giac: Ebuild fix

FLTK paths added to CPPFLAGS and LDFLAGS.
The code invokes fltk-config, which breaks crosscompileability.

---
 sci-mathematics/giac/ChangeLog         |  3 +++
 sci-mathematics/giac/giac-1.1.0.ebuild | 16 ++++++++++++++++
 2 files changed, 19 insertions(+)

diff --git a/sci-mathematics/giac/ChangeLog b/sci-mathematics/giac/ChangeLog
index 5635167..40d2c71 100644
--- a/sci-mathematics/giac/ChangeLog
+++ b/sci-mathematics/giac/ChangeLog
@@ -2,6 +2,9 @@
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  09 Aug 2014; Dominik Schmidt <das1993@hotmail.com>
+  Fixed fltk handling
+
   21 Jun 2014; Jonathan-Christofer Demay <jcdemay@gmail.com>
   -giac-1.0.0.ebuild, +giac-1.1.0.ebuild:
   version bump

diff --git a/sci-mathematics/giac/giac-1.1.0.ebuild b/sci-mathematics/giac/giac-1.1.0.ebuild
index 4b2232c..4993db4 100644
--- a/sci-mathematics/giac/giac-1.1.0.ebuild
+++ b/sci-mathematics/giac/giac-1.1.0.ebuild
@@ -13,6 +13,9 @@ SLOT="0"
 KEYWORDS="~x86 ~amd64"
 IUSE="doc examples fltk"
 
+AUTOTOOLS_IN_SOURCE_BUILD=true
+inherit autotools-utils flag-o-matic
+
 RDEPEND=">=dev-libs/gmp-3
 		>=sys-libs/readline-4.2
 		fltk? ( >=x11-libs/fltk-1.1.9 )
@@ -32,6 +35,19 @@ src_prepare(){
 	fi
 }
 
+src_configure(){
+	if use fltk
+	then
+		append-cppflags -I$(fltk-config --includedir)
+		append-lfs-flags
+		append-libs $(fltk-config --ldflags | sed -e 's/\(-L\S*\)\s.*/\1/')
+	fi
+	local myeconfargs=(
+		user_enable fltk gui
+	)
+        autotools-utils_src_configure || die "configuring failed"
+}
+
 src_install() {
 	emake install DESTDIR="${D}" || die "emake install failed"
 	mv ${D}/usr/bin/{aide,giac-help}


             reply	other threads:[~2014-08-11 21:11 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-10  8:05 Justin Lecher [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-01-28 19:11 [gentoo-commits] proj/sci:master commit in: sci-mathematics/giac/ Andrew Ammerlaan
2016-11-23  9:46 Marius Brehler
2015-02-08 21:07 Christoph Junghans
2014-09-16 17:01 Christoph Junghans
2014-09-02 21:19 Jauhien Piatlicki
2014-08-19 21:51 Christoph Junghans
2014-08-19 21:51 Christoph Junghans
2014-08-19 21:51 Christoph Junghans
2014-08-19 21:51 Christoph Junghans
2014-08-10  8:05 Justin Lecher
2014-08-10  8:05 Justin Lecher
2014-08-10  8:05 Justin Lecher
2013-01-14 14:10 Jonathan-Christofer Demay
2012-02-06 14:35 Jonathan-Christofer Demay
2011-06-25 17:22 Justin Lecher
2011-05-16 10:33 Jonathan-Christofer Demay
2011-05-12  5:12 Jonathan-Christofer Demay
2011-05-12  3:18 Jonathan-Christofer Demay

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=1407601688.0ad0380dbf0cb537b121adbe6e6fcf8ba0a2e080.jlec@gentoo \
    --to=jlec@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