# ChangeLog for sci-chemistry/platon
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/platon/ChangeLog,v 1.5 2006/08/05 05:14:56 dberkholz Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/platon/ChangeLog,v 1.6 2006/08/07 04:02:40 dberkholz Exp $
+
+*platon-20060717 (07 Aug 2006)
+
+ 07 Aug 2006; Donnie Berkholz <dberkholz@gentoo.org>;
+ +platon-20060717.ebuild:
+ (#137734) Bump.
05 Aug 2006; Donnie Berkholz <dberkholz@gentoo.org>; metadata.xml:
Remove myself as maintainer, anyone feel free to work on this, although I'll
DIST platon-20060621.tar.gz 6691191 RMD160 8fb36d1029d980fbe7e5b3d5d77cfb332b80024a SHA1 d14d123d4a5e9b69510c57bdf2f21b37bcd338d5 SHA256 32b2ac1cc35f66486662f8822dc430f7e16c8664a1e7ef024bb35d1082205337
+DIST platon-20060717.tar.gz 6693503 RMD160 22618cd9fd80f3b2b74efe40f6df19ed6e9ed71a SHA1 8620905184da0a5f0c6220e71c3c2f7828a53483 SHA256 4c2ca3966f5cb66e951844682f4dc15e498f1d36923a894140f0b5f4a5d32516
EBUILD platon-20060621.ebuild 1959 RMD160 0f919372776fa40c9bb2542504f747aab62460e4 SHA1 49eed4d7c007fb519777f22a6b35c58ceaf3dfac SHA256 fa5929a48b65a4173f983a80b329784de1227a50da4d0e0d4eca3c991b67ddce
MD5 f6730b6901ad3c80da4eac9803e04c50 platon-20060621.ebuild 1959
RMD160 0f919372776fa40c9bb2542504f747aab62460e4 platon-20060621.ebuild 1959
SHA256 fa5929a48b65a4173f983a80b329784de1227a50da4d0e0d4eca3c991b67ddce platon-20060621.ebuild 1959
-MISC ChangeLog 1174 RMD160 2e3e397f7d374c67f6f3c7934a31d36bed38d18c SHA1 19094f6bac3d637d2e3b291752395b84e5371a2d SHA256 e35506d13b3f7ab14669a1726596d6471680a98b3df5cccd213372b3df903db1
-MD5 711729d31000b10f9777ccc2d46b7609 ChangeLog 1174
-RMD160 2e3e397f7d374c67f6f3c7934a31d36bed38d18c ChangeLog 1174
-SHA256 e35506d13b3f7ab14669a1726596d6471680a98b3df5cccd213372b3df903db1 ChangeLog 1174
+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 1307 RMD160 59a982a3db0ff144c316b4ed1b73e252cf313446 SHA1 3f26b38348efe1433059ee46327785046da6f941 SHA256 4040f4e0bb7cc317dfeb948147858342489e0703fbccb038d7ead33ddd7cc2ac
+MD5 04e37d72d829d083340cc22f7dca60bc ChangeLog 1307
+RMD160 59a982a3db0ff144c316b4ed1b73e252cf313446 ChangeLog 1307
+SHA256 4040f4e0bb7cc317dfeb948147858342489e0703fbccb038d7ead33ddd7cc2ac ChangeLog 1307
MISC metadata.xml 156 RMD160 dc078172bfebcb25d69bdf8731714f9cce9d3e36 SHA1 da2b240a255820145b7c83a5c48e45b96b7e9ee6 SHA256 5d22100902db7507a5b5493dd4a66cdb08025faf80a2c0b75e6392315c47f900
MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156
RMD160 dc078172bfebcb25d69bdf8731714f9cce9d3e36 metadata.xml 156
MD5 f00947015cf7ba267a51e0768200276c files/digest-platon-20060621 250
RMD160 a59c57006fdabe5fd312ca1303980c8a088487f1 files/digest-platon-20060621 250
SHA256 433d855213ac5bdc1d0f155a42603e71a29ac391d60505224d8a630c097cd51d files/digest-platon-20060621 250
+MD5 0d92bbe3ff7639b9cfb1ca227121a0f7 files/digest-platon-20060717 250
+RMD160 242e7ae042f2607faf573801ac25434ca9758ccd files/digest-platon-20060717 250
+SHA256 37dbaae6dcd7fdd6ee2dcfb9dc0a5d1536d4414153f1f075b55a81fa77b4b78d files/digest-platon-20060717 250
--- /dev/null
+MD5 bbf3ed9ddffbfac8901a160fd47a886c platon-20060717.tar.gz 6693503
+RMD160 22618cd9fd80f3b2b74efe40f6df19ed6e9ed71a platon-20060717.tar.gz 6693503
+SHA256 4c2ca3966f5cb66e951844682f4dc15e498f1d36923a894140f0b5f4a5d32516 platon-20060717.tar.gz 6693503
--- /dev/null
+# Copyright 1999-2006 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 $
+
+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
+}