diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2009-09-30 18:55:09 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2009-09-30 18:55:09 +0000 |
commit | d1045224f97643c4229db521c1306467a9b9f4a3 (patch) | |
tree | 52ef778a929869547351f0c587b050d5650c983b /dev-python/pygsl | |
parent | Adding snapshot from current 2.5 'gruntster' branch, which works with (diff) | |
download | gentoo-2-d1045224f97643c4229db521c1306467a9b9f4a3.tar.gz gentoo-2-d1045224f97643c4229db521c1306467a9b9f4a3.tar.bz2 gentoo-2-d1045224f97643c4229db521c1306467a9b9f4a3.zip |
Added a patch to compile with gsl >= 1.13, thanks Kacper Kowalik, closing bug #286605
(Portage version: 2.2_rc42/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/pygsl')
-rw-r--r-- | dev-python/pygsl/ChangeLog | 7 | ||||
-rw-r--r-- | dev-python/pygsl/files/pygsl-0.9.4-obsolete-units.patch | 50 | ||||
-rw-r--r-- | dev-python/pygsl/pygsl-0.9.4.ebuild | 7 |
3 files changed, 62 insertions, 2 deletions
diff --git a/dev-python/pygsl/ChangeLog b/dev-python/pygsl/ChangeLog index c99a53077c28..b03ff1362529 100644 --- a/dev-python/pygsl/ChangeLog +++ b/dev-python/pygsl/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/pygsl # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pygsl/ChangeLog,v 1.10 2009/09/04 20:20:56 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/pygsl/ChangeLog,v 1.11 2009/09/30 18:55:08 bicatali Exp $ + + 30 Sep 2009; Sébastien Fabbro <bicatali@gentoo.org> pygsl-0.9.4.ebuild, + +files/pygsl-0.9.4-obsolete-units.patch: + Added a patch to compile with gsl >= 1.13, thanks Kacper Kowalik, closing + bug #286605 04 Sep 2009; Patrick Lauer <patrick@gentoo.org> -pygsl-0.9.3.ebuild: Remove old diff --git a/dev-python/pygsl/files/pygsl-0.9.4-obsolete-units.patch b/dev-python/pygsl/files/pygsl-0.9.4-obsolete-units.patch new file mode 100644 index 000000000000..5f047e6a3fe6 --- /dev/null +++ b/dev-python/pygsl/files/pygsl-0.9.4-obsolete-units.patch @@ -0,0 +1,50 @@ +--- pygsl-0.9.4.orig/src/const_cgs_array.c 2005-04-27 09:53:37.000000000 +0200 ++++ pygsl-0.9.4/src/const_cgs_array.c 2009-09-28 17:37:26.981970170 +0200 +@@ -14,10 +14,10 @@ + {"mass_neutron",GSL_CONST_CGS_MASS_NEUTRON,"g"}, + {"rydberg",GSL_CONST_CGS_RYDBERG,"g cm^2 / s^2"}, + {"boltzmann",GSL_CONST_CGS_BOLTZMANN,"g cm^2 / K s^2"}, +-{"bohr_magneton",GSL_CONST_CGS_BOHR_MAGNETON,"A cm^2"}, +-{"nuclear_magneton",GSL_CONST_CGS_NUCLEAR_MAGNETON,"A cm^2"}, +-{"electron_magnetic_moment",GSL_CONST_CGS_ELECTRON_MAGNETIC_MOMENT,"A cm^2"}, +-{"proton_magnetic_moment",GSL_CONST_CGS_PROTON_MAGNETIC_MOMENT,"A cm^2"}, ++/*{"bohr_magneton",GSL_CONST_CGS_BOHR_MAGNETON,"A cm^2"},*/ ++/*{"nuclear_magneton",GSL_CONST_CGS_NUCLEAR_MAGNETON,"A cm^2"},*/ ++/*{"electron_magnetic_moment",GSL_CONST_CGS_ELECTRON_MAGNETIC_MOMENT,"A cm^2"},*/ ++/*{"proton_magnetic_moment",GSL_CONST_CGS_PROTON_MAGNETIC_MOMENT,"A cm^2"},*/ + {"molar_gas",GSL_CONST_CGS_MOLAR_GAS,"g cm^2 / K mol s^2"}, + {"standard_gas_volume",GSL_CONST_CGS_STANDARD_GAS_VOLUME,"cm^3 / mol"}, + {"minute",GSL_CONST_CGS_MINUTE,"s"}, +@@ -76,9 +76,9 @@ + {"psi",GSL_CONST_CGS_PSI,"g / cm s^2"}, + {"poise",GSL_CONST_CGS_POISE,"g / cm s"}, + {"stokes",GSL_CONST_CGS_STOKES,"cm^2 / s"}, +-{"faraday",GSL_CONST_CGS_FARADAY,"A s / mol"}, +-{"electron_charge",GSL_CONST_CGS_ELECTRON_CHARGE,"A s"}, +-{"gauss",GSL_CONST_CGS_GAUSS,"g / A s^2"}, ++/*{"faraday",GSL_CONST_CGS_FARADAY,"A s / mol"},*/ ++/*{"electron_charge",GSL_CONST_CGS_ELECTRON_CHARGE,"A s"},*/ ++/*{"gauss",GSL_CONST_CGS_GAUSS,"g / A s^2"},*/ + {"stilb",GSL_CONST_CGS_STILB,"cd / cm^2"}, + {"lumen",GSL_CONST_CGS_LUMEN,"cd sr"}, + {"lux",GSL_CONST_CGS_LUX,"cd sr / cm^2"}, +@@ -87,7 +87,7 @@ + {"lambert",GSL_CONST_CGS_LAMBERT,"cd sr / cm^2"}, + {"footlambert",GSL_CONST_CGS_FOOTLAMBERT,"cd sr / cm^2"}, + {"curie",GSL_CONST_CGS_CURIE,"1 / s"}, +-{"roentgen",GSL_CONST_CGS_ROENTGEN,"A s / g"}, ++/*{"roentgen",GSL_CONST_CGS_ROENTGEN,"A s / g"},*/ + {"rad",GSL_CONST_CGS_RAD,"cm^2 / s^2"}, + {"solar_mass",GSL_CONST_CGS_SOLAR_MASS,"g"}, + {"bohr_radius",GSL_CONST_CGS_BOHR_RADIUS,"cm"}, +--- pygsl-0.9.4.orig/src/const_cgsm_array.c 2006-12-21 13:20:15.000000000 +0100 ++++ pygsl-0.9.4/src/const_cgsm_array.c 2009-09-28 17:37:49.301970158 +0200 +@@ -77,7 +77,7 @@ + {"stokes",GSL_CONST_CGSM_STOKES,"cm^2 / s"}, + {"faraday",GSL_CONST_CGSM_FARADAY,"abamp s / mol"}, + {"electron_charge",GSL_CONST_CGSM_ELECTRON_CHARGE,"abamp s"}, +-{"gauss",GSL_CONST_CGSM_GAUSS,"g / abamp s^2"}, ++/*{"gauss",GSL_CONST_CGSM_GAUSS,"g / abamp s^2"},*/ + {"stilb",GSL_CONST_CGSM_STILB,"cd / cm^2"}, + {"lumen",GSL_CONST_CGSM_LUMEN,"cd sr"}, + {"lux",GSL_CONST_CGSM_LUX,"cd sr / cm^2"}, diff --git a/dev-python/pygsl/pygsl-0.9.4.ebuild b/dev-python/pygsl/pygsl-0.9.4.ebuild index 9ad72c56588c..52df5f6bf33f 100644 --- a/dev-python/pygsl/pygsl-0.9.4.ebuild +++ b/dev-python/pygsl/pygsl-0.9.4.ebuild @@ -1,7 +1,8 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pygsl/pygsl-0.9.4.ebuild,v 1.2 2009/04/06 14:39:59 ranger Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/pygsl/pygsl-0.9.4.ebuild,v 1.3 2009/09/30 18:55:08 bicatali Exp $ +EAPI=2 inherit distutils DESCRIPTION="A Python interface for the GNU scientific library (gsl)." @@ -17,6 +18,10 @@ DEPEND="sci-libs/gsl dev-python/numpy" RDEPEND="${DEPEND}" +src_prepare() { + has_version '>=sci-libs/gsl-1.13' && epatch "${FILESDIR}"/${P}-obsolete-units.patch +} + src_test() { cd "${S}/tests" PYTHONPATH=$(ls -d ../build/lib*) "${python}" run_test.py || die "tests failed" |