public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in sci-libs/gsl: ChangeLog gsl-1.11.ebuild gsl-1.8.ebuild
@ 2008-03-31  9:51 Sebastien Fabbro (bicatali)
  0 siblings, 0 replies; only message in thread
From: Sebastien Fabbro (bicatali) @ 2008-03-31  9:51 UTC (permalink / raw
  To: gentoo-commits

bicatali    08/03/31 09:51:37

  Modified:             ChangeLog
  Added:                gsl-1.11.ebuild
  Removed:              gsl-1.8.ebuild
  Log:
  Version bump. Removed icc test since it now compiles and tests are fine
  (Portage version: 2.1.4.4)

Revision  Changes    Path
1.43                 sci-libs/gsl/ChangeLog

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gsl/ChangeLog?rev=1.43&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gsl/ChangeLog?rev=1.43&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gsl/ChangeLog?r1=1.42&r2=1.43

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sci-libs/gsl/ChangeLog,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- ChangeLog	9 Jan 2008 16:15:02 -0000	1.42
+++ ChangeLog	31 Mar 2008 09:51:36 -0000	1.43
@@ -1,6 +1,12 @@
 # ChangeLog for sci-libs/gsl
 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/gsl/ChangeLog,v 1.42 2008/01/09 16:15:02 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/gsl/ChangeLog,v 1.43 2008/03/31 09:51:36 bicatali Exp $
+
+*gsl-1.11 (31 Mar 2008)
+
+  31 Mar 2008; Sébastien Fabbro <bicatali@gentoo.org> -gsl-1.8.ebuild,
+  +gsl-1.11.ebuild:
+  Version bump. Removed icc test since it now compiles and tests are fine
 
   09 Jan 2008; Jeroen Roovers <jer@gentoo.org> gsl-1.9-r1.ebuild,
   gsl-1.10.ebuild:



1.1                  sci-libs/gsl/gsl-1.11.ebuild

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gsl/gsl-1.11.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gsl/gsl-1.11.ebuild?rev=1.1&content-type=text/plain

Index: gsl-1.11.ebuild
===================================================================
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/gsl/gsl-1.11.ebuild,v 1.1 2008/03/31 09:51:36 bicatali Exp $

inherit eutils flag-o-matic toolchain-funcs autotools

DESCRIPTION="The GNU Scientific Library"
HOMEPAGE="http://www.gnu.org/software/gsl/"
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE="cblas"

RDEPEND="app-admin/eselect-cblas
	cblas? ( virtual/cblas )"

DEPEND="${RDEPEND}
	dev-util/pkgconfig"

#pkg_setup() {
#	# icc-10.0.026 did not pass rng tests (last check: gsl-1.10)
#	if [[ $(tc-getCC) == icc ]]; then
#		eerror "icc known to fail tests. Revert to safer compiler and re-emerge."
#		die "gsl does not work when compiled with icc"
#	fi
#}

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}"/gsl-cblas.patch
	eautoreconf
}

src_compile() {
	# could someone check if they are still needed?
	replace-cpu-flags k6 k6-2 k6-3 i586
	filter-flags -ffast-math
	local myconf=
	use cblas && myconf="--with-cblas=$(pkg-config --libs cblas)"
	econf "${myconf}"|| die "econf failed"
	emake || die "emake failed"
}

src_install() {
	emake install DESTDIR="${D}" || die "emake install failed."
	dodoc AUTHORS BUGS ChangeLog NEWS README SUPPORT \
		THANKS TODO || die "dodoc failed"

	# take care of pkgconfig file for cblas implementation.
	sed -e "s/@LIBDIR@/$(get_libdir)/" \
		-e "s/@PV@/${PV}/" \
		"${FILESDIR}"/cblas.pc.in > cblas.pc \
		|| die "sed cblas.pc failed"
	insinto /usr/$(get_libdir)/blas/gsl
	doins cblas.pc || die "installing cblas.pc failed"
	ESELECT_PROF=gsl
	eselect cblas add $(get_libdir) "${FILESDIR}"/eselect.cblas.gsl ${ESELECT_PROF}
}

pkg_postinst() {
	local p=cblas
	local current_lib=$(eselect ${p} show | cut -d' ' -f2)
	if [[ ${current_lib} == ${ESELECT_PROF} || -z ${current_lib} ]]; then
		# work around eselect bug #189942
		local configfile="${ROOT}"/etc/env.d/${p}/$(get_libdir)/config
		[[ -e ${configfile} ]] && rm -f ${configfile}
		eselect ${p} set ${ESELECT_PROF}
		elog "${p} has been eselected to ${ESELECT_PROF}"
	else
		elog "Current eselected ${p} is ${current_lib}"
		elog "To use ${p} ${ESELECT_PROF} implementation, you have to issue (as root):"
		elog "\t eselect ${p} set ${ESELECT_PROF}"
	fi
}



-- 
gentoo-commits@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-31  9:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-31  9:51 [gentoo-commits] gentoo-x86 commit in sci-libs/gsl: ChangeLog gsl-1.11.ebuild gsl-1.8.ebuild Sebastien Fabbro (bicatali)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox