diff options
author | Markus Dittrich <markusle@gentoo.org> | 2008-06-11 22:51:13 +0000 |
---|---|---|
committer | Markus Dittrich <markusle@gentoo.org> | 2008-06-11 22:51:13 +0000 |
commit | 05e9f7f76b35a0481cba477691742f45085c76eb (patch) | |
tree | f98d855099dbbddad75e51c05b5117d5fa57024c /sci-astronomy | |
parent | Added fix for gcc-4.3 (bug #225923), dropped old version (diff) | |
download | historical-05e9f7f76b35a0481cba477691742f45085c76eb.tar.gz historical-05e9f7f76b35a0481cba477691742f45085c76eb.tar.bz2 historical-05e9f7f76b35a0481cba477691742f45085c76eb.zip |
Fixed typo in ebuild and added gcc-4.3 patch (#225797).
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'sci-astronomy')
-rw-r--r-- | sci-astronomy/orsa/ChangeLog | 8 | ||||
-rw-r--r-- | sci-astronomy/orsa/Manifest | 7 | ||||
-rw-r--r-- | sci-astronomy/orsa/files/orsa-0.7.0-gcc4.3.patch | 102 | ||||
-rw-r--r-- | sci-astronomy/orsa/orsa-0.6.1.ebuild | 6 | ||||
-rw-r--r-- | sci-astronomy/orsa/orsa-0.7.0.ebuild | 25 |
5 files changed, 129 insertions, 19 deletions
diff --git a/sci-astronomy/orsa/ChangeLog b/sci-astronomy/orsa/ChangeLog index 6a3f0b6b064e..14cb37d3de42 100644 --- a/sci-astronomy/orsa/ChangeLog +++ b/sci-astronomy/orsa/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sci-astronomy/orsa -# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/orsa/ChangeLog,v 1.14 2006/10/25 18:37:45 markusle Exp $ +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/orsa/ChangeLog,v 1.15 2008/06/11 22:51:12 markusle Exp $ + + 11 Jun 2008; Markus Dittrich <markusle@gentoo.org> orsa-0.6.1.ebuild, + orsa-0.7.0.ebuild, +files/orsa-0.7.0-gcc4.3.patch: + Fixed typo in ebuild and added gcc-4.3 patch (#225797). *orsa-0.7.0 (25 Oct 2006) diff --git a/sci-astronomy/orsa/Manifest b/sci-astronomy/orsa/Manifest index 92b1e3aa8e79..fedd2e557508 100644 --- a/sci-astronomy/orsa/Manifest +++ b/sci-astronomy/orsa/Manifest @@ -1,9 +1,10 @@ AUX orsa-0.6.1-as-needed.patch 545 RMD160 9190649748195e0bbbd482cde8642d9817e032e7 SHA1 e413cf51fd4a866a6518808ca7e95750db811e7d SHA256 e7a5e8a09c776d1d0ccf83b93c2988efddc4b46c27cd377e359977e575e428de AUX orsa-0.6.1-gcc4.patch 3873 RMD160 8b938a18a38c3fb1f156d411da2f3ff7c418d21f SHA1 12dee125eae58b22a4d34de6caf809b654832856 SHA256 23a3ef50e200e357ee8edfce02a038c58a3aa264e9c497095e7be3334caeb8cf +AUX orsa-0.7.0-gcc4.3.patch 3747 RMD160 7dbf489223291fbdf596e7d14a30fb9244573939 SHA1 648875a261a1ecd0804dc8acaf2ddbe610aeb776 SHA256 4df60403e4e724a7acb6d72c6ba659fdcc7d55366561e2ad0e3f73903a65df3f AUX orsa-0.7.0-gcc41.patch 3850 RMD160 885ad2a529aec481359032ead3170656688703cd SHA1 471461f37f58ba9d61224e692ad90be623d5e1ce SHA256 1eb151a4c40da4eb68a49cc4da5e1cee195e2988982ca62632516d56559aa8b2 DIST orsa-0.6.1.tar.gz 763872 RMD160 ad9de4bc511719bbb7ec936a76dfc692bddbf26f SHA1 d60b1c55b7ce241ac4c3cc03180134a0bfd3f046 SHA256 cf87cf675edb75dcf3a57108f79128691c625cc9122c99474403845cf89d1282 DIST orsa-0.7.0.tar.gz 746444 RMD160 12bdaebf4b5730535a07247da9ca992f72fa9fe5 SHA1 cb604710717d88a71d2c525b7802c7f4e7c62a7f SHA256 959abd0f9ed4311cf28a31d088b8afecd50674bd0d9a8360ac4a5c2752f22879 -EBUILD orsa-0.6.1.ebuild 1795 RMD160 96cbdd3c127eebee204c39f9f5683dc46a84c85a SHA1 e0d60eb112057f86e12cbf13de2928a2aa57ceea SHA256 cc4a7cb5b9680f2aff31f5c22a778f84df385ad4a7df85e63ab7f52835d6ceef -EBUILD orsa-0.7.0.ebuild 1894 RMD160 593d07569bef32bac29b8530b763f735341eb9e6 SHA1 24cd083aae3709cf803254a6504ae8d90dbf16cd SHA256 b23f1b38f389ff2f530ad1e2743822328606d67ab3da820b16c6a5154a87892e -MISC ChangeLog 3948 RMD160 543d314c4ff0859f0634811bf81b06e11fa4e977 SHA1 b3df1a66411e194e4db028ad0037826544204861 SHA256 be989a3837dd4d79a81dcf7233cbbe2f47860214bf9c1a1a6a0ef0b87467fb2c +EBUILD orsa-0.6.1.ebuild 1798 RMD160 bb3a77310f67458df004944597dfb519c154a52a SHA1 73366d921c955f2f1188fce76efe47032a163ec3 SHA256 fe7a2ea6e4d661a036eeafc615d9ccdab84af4717564fcb39e60020d932b42a4 +EBUILD orsa-0.7.0.ebuild 1994 RMD160 ed4f071593d164190db119868634c5d7bcdbb294 SHA1 8ee70a4af86daad7086c24134039cb124021d51e SHA256 9d32f1217e4ec3fc8721f97fe490ee2cbfc8e052652a6c42085cf44e35cc6a28 +MISC ChangeLog 4132 RMD160 7f387d3e62ec06d8e7e2942685076341b8341600 SHA1 975f21021631045ac731bea3838d9e1913a44ee8 SHA256 14456e412733eaf538eec25b61f337cff18a0fcd52560592c0117a5e178312cd MISC metadata.xml 156 RMD160 dc078172bfebcb25d69bdf8731714f9cce9d3e36 SHA1 da2b240a255820145b7c83a5c48e45b96b7e9ee6 SHA256 5d22100902db7507a5b5493dd4a66cdb08025faf80a2c0b75e6392315c47f900 diff --git a/sci-astronomy/orsa/files/orsa-0.7.0-gcc4.3.patch b/sci-astronomy/orsa/files/orsa-0.7.0-gcc4.3.patch new file mode 100644 index 000000000000..050a339ed2bb --- /dev/null +++ b/sci-astronomy/orsa/files/orsa-0.7.0-gcc4.3.patch @@ -0,0 +1,102 @@ +diff -Naur orsa-0.7.0/src/liborsa/orsa_coord.cc orsa-0.7.0.new/src/liborsa/orsa_coord.cc +--- orsa-0.7.0/src/liborsa/orsa_coord.cc 2004-09-21 15:44:20.000000000 -0400 ++++ orsa-0.7.0.new/src/liborsa/orsa_coord.cc 2008-06-11 06:40:39.000000000 -0400 +@@ -26,6 +26,7 @@ + + #include <cmath> + #include <iostream> ++#include <cstdlib> + + using namespace std; + +diff -Naur orsa-0.7.0/src/liborsa/orsa_file.cc orsa-0.7.0.new/src/liborsa/orsa_file.cc +--- orsa-0.7.0/src/liborsa/orsa_file.cc 2005-01-10 20:01:11.000000000 -0500 ++++ orsa-0.7.0.new/src/liborsa/orsa_file.cc 2008-06-11 06:44:22.000000000 -0400 +@@ -27,6 +27,8 @@ + #include <iostream> + + #include <ctype.h> ++#include <cstring> ++#include <algorithm> + + #include "orsa_common.h" + #include "orsa_units.h" +@@ -1126,7 +1128,7 @@ + + Vector LocationFile::ObsPos(const string obscode, const Date &date) { + +- std::list<std::string>::iterator it_find = find(codes.begin(),codes.end(),obscode); ++ std::list<std::string>::iterator it_find = std::find(codes.begin(),codes.end(),obscode); + if (it_find == codes.end()) { + ORSA_ERROR("obscode %s not found in file %s",obscode.c_str(),GetFileName().c_str()); + return Vector(); +diff -Naur orsa-0.7.0/src/liborsa/orsa_file_jpl.cc orsa-0.7.0.new/src/liborsa/orsa_file_jpl.cc +--- orsa-0.7.0/src/liborsa/orsa_file_jpl.cc 2005-01-04 21:25:06.000000000 -0500 ++++ orsa-0.7.0.new/src/liborsa/orsa_file_jpl.cc 2008-06-11 06:44:35.000000000 -0400 +@@ -27,6 +27,7 @@ + #include "orsa_secure_math.h" + + #include <cstdio> ++#include <cstring> + + #include "sdncal.h" + #include "jpleph.h" +diff -Naur orsa-0.7.0/src/liborsa/orsa_interaction.cc orsa-0.7.0.new/src/liborsa/orsa_interaction.cc +--- orsa-0.7.0/src/liborsa/orsa_interaction.cc 2005-01-04 17:31:25.000000000 -0500 ++++ orsa-0.7.0.new/src/liborsa/orsa_interaction.cc 2008-06-11 06:41:24.000000000 -0400 +@@ -28,6 +28,7 @@ + #include "orsa_error.h" + + #include <cmath> ++#include <cstring> + #include <iostream> + + using namespace std; +diff -Naur orsa-0.7.0/src/liborsa/orsa_interaction_tree.cc orsa-0.7.0.new/src/liborsa/orsa_interaction_tree.cc +--- orsa-0.7.0/src/liborsa/orsa_interaction_tree.cc 2004-10-01 20:04:30.000000000 -0400 ++++ orsa-0.7.0.new/src/liborsa/orsa_interaction_tree.cc 2008-06-11 06:41:42.000000000 -0400 +@@ -27,6 +27,7 @@ + #include "orsa_universe.h" + + #include <iostream> ++#include <cstring> + #include <list> + #include <stack> + #include <map> +diff -Naur orsa-0.7.0/src/liborsa/orsa_units.h orsa-0.7.0.new/src/liborsa/orsa_units.h +--- orsa-0.7.0/src/liborsa/orsa_units.h 2005-01-04 22:54:27.000000000 -0500 ++++ orsa-0.7.0.new/src/liborsa/orsa_units.h 2008-06-11 06:37:55.000000000 -0400 +@@ -28,6 +28,7 @@ + #include <cmath> + #include <string> + #include <cstdio> ++#include <cstdlib> + + #include "orsa_secure_math.h" + #include "orsa_coord.h" +@@ -181,7 +182,7 @@ + inline static double __int_pow__(const double x, const int p) { + if (p == 0) return 1.0; + double _pow = x; +- const unsigned int max_k = static_cast<unsigned int>(std::abs(p)); ++ const unsigned int max_k = static_cast<unsigned int>(abs(p)); + for (unsigned int k=1; k < max_k; ++k) { + _pow *= x; + } +diff -Naur orsa-0.7.0/src/libxorsa/xorsa_plot_area.h orsa-0.7.0.new/src/libxorsa/xorsa_plot_area.h +--- orsa-0.7.0/src/libxorsa/xorsa_plot_area.h 2005-01-04 21:25:06.000000000 -0500 ++++ orsa-0.7.0.new/src/libxorsa/xorsa_plot_area.h 2008-06-11 06:47:20.000000000 -0400 +@@ -57,7 +57,13 @@ + } + } + ++#ifdef __cplusplus ++extern "C" { ++#endif + extern char *MonthNameShort[13]; // sdncal.h ++#ifdef __cplusplus ++} ++#endif + + void FineDate(QString & label, const orsa::UniverseTypeAwareTime & t, bool=true); + void FineDate_HMS(QString & label, const orsa::UniverseTypeAwareTime & t); diff --git a/sci-astronomy/orsa/orsa-0.6.1.ebuild b/sci-astronomy/orsa/orsa-0.6.1.ebuild index 8fd806d6ab46..e8181d8afe72 100644 --- a/sci-astronomy/orsa/orsa-0.6.1.ebuild +++ b/sci-astronomy/orsa/orsa-0.6.1.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/orsa/orsa-0.6.1.ebuild,v 1.9 2006/10/25 16:01:19 markusle Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/orsa/orsa-0.6.1.ebuild,v 1.10 2008/06/11 22:51:12 markusle Exp $ inherit base flag-o-matic qt3 @@ -67,7 +67,7 @@ src_compile() { } src_install() { - make install DESTDIR=${D} || die "install failed" + make install DESTDIR="${D}" || die "install failed" dodoc AUTHORS ChangeLog INSTALL NEWS README THANKS dodoc src/test/* } diff --git a/sci-astronomy/orsa/orsa-0.7.0.ebuild b/sci-astronomy/orsa/orsa-0.7.0.ebuild index 2b962c9800d9..a9b90d5ad179 100644 --- a/sci-astronomy/orsa/orsa-0.7.0.ebuild +++ b/sci-astronomy/orsa/orsa-0.7.0.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/orsa/orsa-0.7.0.ebuild,v 1.1 2006/10/25 18:37:45 markusle Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/orsa/orsa-0.7.0.ebuild,v 1.2 2008/06/11 22:51:12 markusle Exp $ -inherit qt3 flag-o-matic +inherit qt3 flag-o-matic multilib DESCRIPTION="Celestial orbit reconstruction, simulation and analysis" HOMEPAGE="http://orsa.sourceforge.net/" @@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~x86 ~ppc" +KEYWORDS="~x86 ~ppc ~amd64" IUSE="opengl qt3 mpi ginac cln gsl fftw xinerama threads static" DEPEND=">=sys-libs/readline-4.2 @@ -18,15 +18,16 @@ DEPEND=">=sys-libs/readline-4.2 fftw? ( =sci-libs/fftw-2.1* ) gsl? ( >=sci-libs/gsl-1.5 ) qt3? ( $(qt_min_version 3.3) ) - mpi? ( sys-cluster/lam-mpi ) + mpi? ( sys-cluster/openmpi ) ginac? ( >=sci-mathematics/ginac-1.2.0 ) cln? ( >=sci-libs/cln-1.1.6 )" src_unpack() { unpack ${A} - cd ${S} + cd "${S}" epatch "${FILESDIR}"/${P}-gcc41.patch epatch "${FILESDIR}"/${PN}-0.6.1-as-needed.patch + epatch "${FILESDIR}"/${P}-gcc4.3.patch } src_compile() { @@ -35,12 +36,14 @@ src_compile() { use ginac || myconf="--with-ginac-prefix=/no/such/file" use gsl || myconf="${myconf} --with-gsl-prefix=/no/such/file" use cln || myconf="${myconf} --with-cln-prefix=/no/such/file" - use fftw || sed -i -e 's/have_fftw=yes/have_fftw=no/' configure \ - die "sed to fix fftw failed" + if use fftw; then + sed -i -e 's/have_fftw=yes/have_fftw=no/' configure \ + || die "sed to fix fftw failed" + fi use qt3 || myconf="${myconf} --with-qt-dir=/no/such/file" if use mpi; then - sed -e 's/\(orsa_LDADD = .*\)/\1 -llammpi++ -lmpi -llam -lpthread -lutil/' \ - -i src/orsa/Makefile || die "sed to fix MPI failed" + sed -e "s|\(orsa_LDADD = .*\)|\1 /usr/$(get_libdir)/libmpi.la /usr/$(get_libdir)/libmpi_cxx.la|" \ + -i src/orsa/Makefile.in || die "sed to fix MPI failed" fi econf \ @@ -56,7 +59,7 @@ src_compile() { } src_install() { - make DESTDIR=${D} install || die "make install failed" + make DESTDIR="${D}" install || die "make install failed" dodoc AUTHORS COPYRIGHT DEVELOPERS TODO THANKS insinto /usr/share/${P}/test doins src/test/*.{cc,h,fft,ggo} || die "Failed to install tests" |