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

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

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

Revision 1.1 Revision 1.3
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2008 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/Attic/gsl-1.10.ebuild,v 1.1 2007/10/10 13:22:40 bicatali Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sci-libs/gsl/Attic/gsl-1.10.ebuild,v 1.3 2008/01/02 16:51:43 armin76 Exp $
4 4
5inherit eutils flag-o-matic toolchain-funcs autotools 5inherit eutils flag-o-matic toolchain-funcs autotools
6 6
7DESCRIPTION="The GNU Scientific Library" 7DESCRIPTION="The GNU Scientific Library"
8HOMEPAGE="http://www.gnu.org/software/gsl/" 8HOMEPAGE="http://www.gnu.org/software/gsl/"
9SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" 9SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
10 10
11LICENSE="GPL-3" 11LICENSE="GPL-3"
12SLOT="0" 12SLOT="0"
13KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" 13KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
14IUSE="cblas" 14IUSE="cblas"
15 15
16RDEPEND="app-admin/eselect-cblas 16RDEPEND="app-admin/eselect-cblas
17 cblas? ( virtual/cblas )" 17 cblas? ( virtual/cblas )"
18 18
63pkg_postinst() { 63pkg_postinst() {
64 local p=cblas 64 local p=cblas
65 local current_lib=$(eselect ${p} show | cut -d' ' -f2) 65 local current_lib=$(eselect ${p} show | cut -d' ' -f2)
66 if [[ ${current_lib} == ${ESELECT_PROF} || -z ${current_lib} ]]; then 66 if [[ ${current_lib} == ${ESELECT_PROF} || -z ${current_lib} ]]; then
67 # work around eselect bug #189942 67 # work around eselect bug #189942
68 local configfile="${ROOT}"/etc/env.d/${p}/lib/config 68 local configfile="${ROOT}"/etc/env.d/${p}/$(get_libdir)/config
69 [[ -e ${configfile} ]] && rm -f ${configfile} 69 [[ -e ${configfile} ]] && rm -f ${configfile}
70 eselect ${p} set ${ESELECT_PROF} 70 eselect ${p} set ${ESELECT_PROF}
71 elog "${p} has been eselected to ${ESELECT_PROF}" 71 elog "${p} has been eselected to ${ESELECT_PROF}"
72 else 72 else
73 elog "Current eselected ${p} is ${current_lib}" 73 elog "Current eselected ${p} is ${current_lib}"

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20