/[gentoo-x86]/sci-libs/gsl/gsl-1.14.ebuild
Gentoo

Diff of /sci-libs/gsl/gsl-1.14.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.9 Revision 1.11
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2015 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/sci-libs/gsl/gsl-1.14.ebuild,v 1.9 2012/05/04 08:22:52 jdhore Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sci-libs/gsl/gsl-1.14.ebuild,v 1.11 2015/03/31 20:16:02 ulm Exp $
4 4
5EAPI="3" 5EAPI="3"
6 6
7inherit eutils flag-o-matic autotools 7inherit autotools eutils flag-o-matic toolchain-funcs
8 8
9DESCRIPTION="The GNU Scientific Library" 9DESCRIPTION="The GNU Scientific Library"
10HOMEPAGE="http://www.gnu.org/software/gsl/" 10HOMEPAGE="http://www.gnu.org/software/gsl/"
11SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" 11SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
12 12
15KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x86-solaris" 15KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x86-solaris"
16IUSE="cblas-external" 16IUSE="cblas-external"
17 17
18RDEPEND="cblas-external? ( virtual/cblas )" 18RDEPEND="cblas-external? ( virtual/cblas )"
19DEPEND="${RDEPEND} 19DEPEND="${RDEPEND}
20 app-admin/eselect-cblas 20 app-eselect/eselect-cblas
21 virtual/pkgconfig" 21 virtual/pkgconfig"
22 22
23pkg_setup() { 23pkg_setup() {
24 ESELECT_PROF="gsl" 24 ESELECT_PROF="gsl"
25 # prevent to use external cblas from a previously installed gsl 25 # prevent to use external cblas from a previously installed gsl
45 fi 45 fi
46} 46}
47 47
48src_configure() { 48src_configure() {
49 if use cblas-external; then 49 if use cblas-external; then
50 export CBLAS_LIBS="$(pkg-config --libs cblas)" 50 export CBLAS_LIBS="$($(tc-getPKG_CONFIG) --libs cblas)"
51 export CBLAS_CFLAGS="$(pkg-config --cflags cblas)" 51 export CBLAS_CFLAGS="$($(tc-getPKG_CONFIG) --cflags cblas)"
52 fi 52 fi
53 econf $(use_with cblas-external cblas) 53 econf $(use_with cblas-external cblas)
54} 54}
55 55
56src_install() { 56src_install() {

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20