/[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.2
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 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.2 2007/10/11 16:55:45 bicatali 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/"
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.2

  ViewVC Help
Powered by ViewVC 1.1.20