# ChangeLog for sci-chemistry/platon
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/platon/ChangeLog,v 1.9 2007/04/24 08:30:13 je_fro Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/platon/ChangeLog,v 1.10 2007/04/26 01:44:07 je_fro Exp $
+
+*platon-20070425 (26 Apr 2007)
+
+ 26 Apr 2007; Jeff Gardner <je_fro@gentoo.org> +platon-20070425.ebuild:
+ Version bump wrt bug #155351.
24 Apr 2007; Jeff Gardner <je_fro@gentoo.org>
files/digest-platon-20060717, Manifest:
DIST platon-20060717.tar.gz 6818796 RMD160 b147e41437edabe741fa0b13c4a7acc0a8ef5fc2 SHA1 775202da0d11902d3fb355660e3c442fbd0447aa SHA256 364eece14916449a974e1c953543c4171c8b2d06b333c6b904ca76fbbb33850f
-EBUILD platon-20060717.ebuild 1959 RMD160 17fed75de6e35208842a5b9399b81e77903db12d SHA1 2e2e55925c1e8d139c3bc5a56506b887190a68c7 SHA256 67c47041a85d555485c6003949a4016df8b84e89d4a207005fffd18033c0668b
-MD5 330b373a9219494b4746068dfd278a87 platon-20060717.ebuild 1959
-RMD160 17fed75de6e35208842a5b9399b81e77903db12d platon-20060717.ebuild 1959
-SHA256 67c47041a85d555485c6003949a4016df8b84e89d4a207005fffd18033c0668b platon-20060717.ebuild 1959
-MISC ChangeLog 1653 RMD160 e78d473b3468df769ba44b960061e1d828f4c111 SHA1 67c05b7f125724d486362d76d30974cdecfbd6bc SHA256 d28de9af994bdaf8e70c8ce110435694b3beb104c34b6a409e3f38973f1b353c
-MD5 cb69c11f68864541fc0a705815a97bf3 ChangeLog 1653
-RMD160 e78d473b3468df769ba44b960061e1d828f4c111 ChangeLog 1653
-SHA256 d28de9af994bdaf8e70c8ce110435694b3beb104c34b6a409e3f38973f1b353c ChangeLog 1653
+DIST platon-20070425.tar.gz 6818796 RMD160 b147e41437edabe741fa0b13c4a7acc0a8ef5fc2 SHA1 775202da0d11902d3fb355660e3c442fbd0447aa SHA256 364eece14916449a974e1c953543c4171c8b2d06b333c6b904ca76fbbb33850f
+EBUILD platon-20060717.ebuild 1956 RMD160 f9a962d7b876df5178332007b7baa24055efcb7e SHA1 eeab5e3bc057c5025bfbd252edda16495707d41b SHA256 5fccdc2dfe3b26f98d6ca9cebb77788ef74f13c82b07f8b7585211605bf7afd4
+MD5 4738247e83641de8d5be165be4ebcc1d platon-20060717.ebuild 1956
+RMD160 f9a962d7b876df5178332007b7baa24055efcb7e platon-20060717.ebuild 1956
+SHA256 5fccdc2dfe3b26f98d6ca9cebb77788ef74f13c82b07f8b7585211605bf7afd4 platon-20060717.ebuild 1956
+EBUILD platon-20070425.ebuild 1956 RMD160 3516baae91ba4c13322a07a9f8a457b7a6eeb8b5 SHA1 7e72d58f317f11329ab1b0d2e975be83b6131619 SHA256 3855ed20cb17c2be2d94517a88e95d47bade2cf164b48fd1a64eb67de39e1f62
+MD5 5110fa65f8e5ef2f57f0eacec663b9d4 platon-20070425.ebuild 1956
+RMD160 3516baae91ba4c13322a07a9f8a457b7a6eeb8b5 platon-20070425.ebuild 1956
+SHA256 3855ed20cb17c2be2d94517a88e95d47bade2cf164b48fd1a64eb67de39e1f62 platon-20070425.ebuild 1956
+MISC ChangeLog 1792 RMD160 34491f73f838794777692353ad5f59b8e7a3ff49 SHA1 f5f49258fb80dff5aada40779cdc98595f91f0ac SHA256 9bfbbf03fb7a09273aa03dfe1d501e3fd07eabf2691988f7020741a44143e738
+MD5 073a35fd6f3a6743f96aae9a20be36a6 ChangeLog 1792
+RMD160 34491f73f838794777692353ad5f59b8e7a3ff49 ChangeLog 1792
+SHA256 9bfbbf03fb7a09273aa03dfe1d501e3fd07eabf2691988f7020741a44143e738 ChangeLog 1792
MISC metadata.xml 166 RMD160 4452298fd03e7c9395d1182bfe69d60a14144af6 SHA1 cb0b513473c0348f4f6f6cd9a132e4884155fddb SHA256 84c92b49702daf95eace8d2765215cbd8650da4ef776f9f700b5ce3785dec852
MD5 43628e9f5743b5c3b018a82669a76bc7 metadata.xml 166
RMD160 4452298fd03e7c9395d1182bfe69d60a14144af6 metadata.xml 166
MD5 0d6bb5c4d9331393d1bca3e4ef515d15 files/digest-platon-20060717 250
RMD160 b995eddaec78e78096f4147c76d156a7d53f879d files/digest-platon-20060717 250
SHA256 614b83406fd045c41f603a822f9d05430ec3b7e9b02221613e1178fa6b2f0ac5 files/digest-platon-20060717 250
+MD5 af7fb2202e3a5dae45a8df54831f2e90 files/digest-platon-20070425 250
+RMD160 036f14a12d07b534370d64ef1e23ee9a503d603e files/digest-platon-20070425 250
+SHA256 7880e1b35857f9cc68d0f0492f96bb23fa686528b974e8e45cd9e2563a578fa0 files/digest-platon-20070425 250
--- /dev/null
+MD5 599c1fa6493f8a073e3d84fe3e2292a5 platon-20070425.tar.gz 6818796
+RMD160 b147e41437edabe741fa0b13c4a7acc0a8ef5fc2 platon-20070425.tar.gz 6818796
+SHA256 364eece14916449a974e1c953543c4171c8b2d06b333c6b904ca76fbbb33850f platon-20070425.tar.gz 6818796
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/platon/platon-20060717.ebuild,v 1.1 2006/08/07 04:02:40 dberkholz Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/platon/platon-20060717.ebuild,v 1.2 2007/04/26 01:44:07 je_fro Exp $
inherit fortran toolchain-funcs
--- /dev/null
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/platon/platon-20070425.ebuild,v 1.1 2007/04/26 01:44:07 je_fro Exp $
+
+inherit fortran toolchain-funcs
+
+FORTRAN="g77 gfortran"
+DESCRIPTION="Versatile, SHELX-97 compatible, multipurpose crystallographic tool"
+HOMEPAGE="http://www.cryst.chem.uu.nl/platon/"
+SRC_URI="${P}.tar.gz"
+RESTRICT="fetch"
+LICENSE="free-noncomm"
+SLOT="0"
+KEYWORDS="~ppc ~x86"
+IUSE=""
+# Can't do libf2c dependent on whether <gcc-4 is selected for the build,
+# so we must always require it
+RDEPEND="|| ( x11-libs/libX11 virtual/x11 )
+ dev-libs/libf2c"
+DEPEND="${RDEPEND}"
+S="${WORKDIR}/${PN}"
+
+pkg_nofetch() {
+ einfo "Download ${A/-${PV}} from ${HOMEPAGE},"
+ einfo "rename it to ${A} and place it"
+ einfo "in ${DISTDIR}."
+ einfo "If there is a digest mismatch, please file a bug"
+ einfo "at https://bugs.gentoo.org/ -- a version bump"
+ einfo "is probably required."
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ gunzip platon.f.Z xdrvr.c.gz
+}
+
+src_compile() {
+ local F2C
+ # Needs signal_ and system_, which g77 and libf2c provide,
+ # but gfortran does not
+ if [[ ${FORTRANC} != g77 ]]; then
+ F2C="-lf2c"
+ fi
+
+ COMMAND="$(tc-getCC) -c ${CFLAGS} xdrvr.c"
+ echo ${COMMAND}
+ ${COMMAND} || die "Compilation of xdrvr.c failed"
+ COMMAND="${FORTRANC} -c ${FFLAGS:- -O2} -fno-second-underscore platon.f"
+ echo ${COMMAND}
+ ${COMMAND} || die "Compilation of platon.f failed"
+ COMMAND="${FORTRANC} -o platon ${LDFLAGS} platon.o xdrvr.o -lX11 ${F2C}"
+ echo ${COMMAND}
+ ${COMMAND} || die "Linking failed"
+}
+
+src_install() {
+ dobin platon
+
+ dosym platon /usr/bin/pluton
+ dosym platon /usr/bin/s
+ dosym platon /usr/bin/cifchk
+ dosym platon /usr/bin/helena
+ dosym platon /usr/bin/stidy
+
+ insinto /usr/lib/platon
+ doins check.def
+
+ echo "CHECKDEF=\"/usr/lib/platon/check.def\"" > ${T}/env.d
+ newenvd ${T}/env.d 50platon
+
+ dodoc README.* VALIDATION.DOC
+}