added patch to compile with gcc-3.2
authorHannes Mehnert <hannes@gentoo.org>
Wed, 23 Oct 2002 16:18:43 +0000 (16:18 +0000)
committerHannes Mehnert <hannes@gentoo.org>
Wed, 23 Oct 2002 16:18:43 +0000 (16:18 +0000)
app-sci/kemistry/ChangeLog
app-sci/kemistry/files/kemistry-0.6-gcc3.2.patch [new file with mode: 0644]
app-sci/kemistry/kemistry-0.6.ebuild

index 0c034244f3530500a4a8c91907a7841b5ded75fb..7bae9d5cff48d702efd725980319c2402d56eec2 100644 (file)
@@ -1,6 +1,9 @@
 # ChangeLog for app-sci/kemistry
 # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-sci/kemistry/ChangeLog,v 1.1 2002/10/23 15:06:03 hannes Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-sci/kemistry/ChangeLog,v 1.2 2002/10/23 16:18:43 hannes Exp $
+
+  23 Oct 2002; Hannes Mehnert <hannes@gentoo.org> kemistry-0.6.ebuild,
+  files/kemistry-0.6-gcc3.2.patch: patched source to compile with gcc-3.2
 
 *kemistry-0.6 (23 Oct 2002)
 
diff --git a/app-sci/kemistry/files/kemistry-0.6-gcc3.2.patch b/app-sci/kemistry/files/kemistry-0.6-gcc3.2.patch
new file mode 100644 (file)
index 0000000..b4ea309
--- /dev/null
@@ -0,0 +1,55 @@
+--- /var/tmp/portage/kemistry-0.6/work/kemistry/kdrawchem/ioiface.cpp.orig     2002-08-20 16:22:21.000000000 +0200
++++ /var/tmp/portage/kemistry-0.6/work/kemistry/kdrawchem/ioiface.cpp  2002-10-23 17:41:48.000000000 +0200
+@@ -14,8 +14,8 @@
+  *   (at your option) any later version.                                   *
+  *                                                                         *
+  ***************************************************************************/
+-#include <vector>
+-#include <map>
++#include <vector.h>
++#include <map.h>
+ #include <algorithm>
+ 
+ #include "ioiface.h"
+--- /var/tmp/portage/kemistry-0.6/work/kemistry/kdrawchem/kdrawchemdoc.cpp.orig        2002-08-20 16:22:21.000000000 +0200
++++ /var/tmp/portage/kemistry-0.6/work/kemistry/kdrawchem/kdrawchemdoc.cpp     2002-10-23 17:37:40.000000000 +0200
+@@ -30,6 +30,7 @@
+ #include "kdrawchem.h"
+ #include "kdrawchemview.h"
+ #include <mol.h>
++#include <fstream.h>
+ 
+ 
+ QList<KDrawChemView> *KDrawChemDoc::pViewList = 0L;
+--- /var/tmp/portage/kemistry-0.6/work/kemistry/kembabel/kembabel-openbabel.cpp.orig   2002-08-21 13:50:09.000000000 +0200
++++ /var/tmp/portage/kemistry-0.6/work/kemistry/kembabel/kembabel-openbabel.cpp        2002-10-23 17:47:47.000000000 +0200
+@@ -36,7 +36,7 @@
+ #include <qcheckbox.h>
+ #include <qradiobutton.h>
+ 
+-#include <fstream>
++#include <fstream.h>
+ 
+ #include "kembabel.h"
+ 
+--- /var/tmp/portage/kemistry-0.6/work/kemistry/openbabel/c3d.cpp.orig 2002-07-21 19:56:42.000000000 +0200
++++ /var/tmp/portage/kemistry-0.6/work/kemistry/openbabel/c3d.cpp      2002-10-23 17:14:48.000000000 +0200
+@@ -151,7 +151,7 @@
+     }
+ 
+   if (!natoms) return(false);
+-  divisor = pow(10.0,exponent);
++  divisor = pow((float)10.0,exponent);
+   mol.ReserveAtoms(natoms);
+ 
+   ttab.SetToType("INT");
+--- /var/tmp/portage/kemistry-0.6/work/kemistry/openbabel/gaussian.cpp.orig    2002-08-01 01:20:12.000000000 +0200
++++ /var/tmp/portage/kemistry-0.6/work/kemistry/openbabel/gaussian.cpp 2002-10-23 17:17:31.000000000 +0200
+@@ -23,7 +23,7 @@
+ bool WriteGaussianCart(ostream &ofs,OBMol &mol)
+ {
+   unsigned int i;
+-  unsigned int charge = 0;
++  int charge = 0;
+   unsigned int multiplicity = 0;
+   char buffer[BUFF_SIZE];
index 557e4010535d6aa33774733ff2ad472144ec0b89..71c4d30e88a724b58f695372ddca8590434b56df 100644 (file)
@@ -1,7 +1,8 @@
 # Copyright 1999-2002 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/app-sci/kemistry/kemistry-0.6.ebuild,v 1.1 2002/10/23 15:06:06 hannes Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-sci/kemistry/kemistry-0.6.ebuild,v 1.2 2002/10/23 16:18:43 hannes Exp $
 
+PATCHES="${FILESDIR}/${P}-gcc3.2.patch"
 inherit kde-base
 need-kde 3.0
 IUSE=""
@@ -12,4 +13,3 @@ DESCRIPTION="Kemistry--a set of chemistry related tools for KDE."
 SRC_URI="mirror://sourceforge/kemistry/${P}.tar.bz2"
 HOMEPAGE="http://kemistry.sourceforge.net"
 
-