# ChangeLog for sci-chemistry/ghemical
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ghemical/ChangeLog,v 1.3 2005/01/04 16:02:11 phosphan Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ghemical/ChangeLog,v 1.4 2005/01/04 16:32:19 phosphan Exp $
+
+*ghemical-1.01 (04 Jan 2005)
+
+ 04 Jan 2005; Patrick Kursawe <phosphan@gentoo.org> +files/gcc3.4-r1.patch,
+ +ghemical-1.01.ebuild:
+ Version bump
04 Jan 2005; Patrick Kursawe <phosphan@gentoo.org> +files/gcc3.4.patch,
ghemical-1.00.ebuild:
MD5 7eee9f49213553ee1ee395ec0d8c2384 ghemical-1.00.ebuild 1169
-MD5 605bf18d27a39277565f181822f195bf ChangeLog 1542
+MD5 bbff2d1aa187874c26b9d4451e8a78c4 ghemical-1.01.ebuild 1173
+MD5 96b1636ec1fe41b97cf72cdcdf0514e4 ChangeLog 1690
MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156
MD5 fefd85f432335b478759ce408d355480 files/digest-ghemical-1.00 63
+MD5 ed929c4b181d11c1d2ab2e2fdfc65614 files/digest-ghemical-1.01 63
+MD5 d33b8f1ad096b3c68d0edcec13f0caaf files/gcc3.4-r1.patch 350
MD5 bdb8f7d12899a6cae19b4d7ff183c752 files/gcc3.4.patch 1112
--- /dev/null
+MD5 41f7b6ce38b4a1be9a9cf00d7d068b4a ghemical-1.01.tgz 2790798
--- /dev/null
+diff -ru src-old/graphics/objects.h src/graphics/objects.h
+--- src-old/graphics/objects.h 2005-01-04 16:21:49.000000000 +0100
++++ src/graphics/objects.h 2005-01-04 12:26:57.000000000 +0100
+@@ -177,7 +177,7 @@
+ {
+ protected:
+
+- friend obj_loc_data * dummy_object::GetLocDataRW(void) const;
++ friend class dummy_object;
+
+ obj_loc_data * data;
+
--- /dev/null
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ghemical/ghemical-1.01.ebuild,v 1.1 2005/01/04 16:32:19 phosphan Exp $
+
+inherit eutils
+
+DESCRIPTION="Ghemical supports both quantum-mechanics (semi-empirical and ab initio) models and molecular mechanics models (there is an experimental Tripos 5.2-like force field for organic molecules). Also a tool for reduced protein models is included. Geometry optimization, molecular dynamics and a large set of visualization tools are currently available."
+HOMEPAGE="http://www.uku.fi/~thassine/ghemical/"
+SRC_URI="http://www.uku.fi/~thassine/ghemical/download/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND="gnome-base/gnome-libs
+ dev-libs/libf2c
+ sci-chemistry/mpqc
+ =x11-libs/gtkglarea-1.2*
+ >=media-libs/glut-3.7
+ dev-libs/libxml
+ =gnome-base/libglade-0*"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/gcc3.4-r1.patch
+}
+
+src_compile() {
+ ./configure --prefix=/usr --enable-mpqc ||die
+ emake ||die
+}
+
+src_install() {
+ sed -e "s:^prefix=.*:prefix=${D}/usr:" -i Makefile
+ make install||die
+}