summaryrefslogtreecommitdiff
path: root/sci-chemistry/platon
diff options
context:
space:
mode:
Diffstat (limited to 'sci-chemistry/platon')
-rw-r--r--sci-chemistry/platon/Manifest5
-rw-r--r--sci-chemistry/platon/metadata.xml8
-rw-r--r--sci-chemistry/platon/platon-20151001.ebuild72
3 files changed, 85 insertions, 0 deletions
diff --git a/sci-chemistry/platon/Manifest b/sci-chemistry/platon/Manifest
new file mode 100644
index 000000000000..de4eee31b1c3
--- /dev/null
+++ b/sci-chemistry/platon/Manifest
@@ -0,0 +1,5 @@
+DIST platon-20151001.tar.gz 12076455 SHA256 0f693de9b8ef601bc502d56a203c851ee350185e0816ede4b1b4d154917fa5b2 SHA512 fc93e4c425c25ddc9ae634c82b63e95c5ce99bcbada43976478a58783e3b369f082e08e2ee24ff7d9ebe2d9d2d730cd42f6361276a53bed9edd0c0476cfb5148 WHIRLPOOL 458e6a263958473bf39d460524fb98963e701d96050db5c622a6cb934796271bb45313526614b3bd28ce372e7bd6a60d76cb6aaa8e80d1e18d7fdc436a03b702
+EBUILD platon-20151001.ebuild 1746 SHA256 d442002449d7f3bcad14f40edb2cedbe19081017971eaa3b822f8cc239d499e0 SHA512 7f9eba83b8287737f0a0552948917ab0469bca08b99425aebbb6475e547cdbaf682269c867001cc9b081af7c4d4a0eab2b6a77ef4ff60cbbcd63b82958e58c4c WHIRLPOOL 656547e0be0d7a2aea7036c3b881e26c461780c7810492c7de7ed9a29df5ea6e62731329e281ff7b1ae2bd728935fad43835a79561dee4c063a733b8370d7307
+MISC ChangeLog 3085 SHA256 231eaa03a8dde3445a639edc8c06a68dcbd2855ef25de4b5a9944259b103a9f9 SHA512 79e9ac3451ba321195df912119e4261b4a974fb56f987a5d651ed5ae6ceeeee7f63f4368f2149ba92bcea1576af3740e3fe3757895ba63a0af202ec2de631aaf WHIRLPOOL 27e5334c4661e9c3150ef1760b057b162a04950375b5f04b7ad2179223e6408789ba30dce2e98b2cd7c8f4a9cf6fe715e426017e24033547f0e97bf5f1375d58
+MISC ChangeLog-2015 4965 SHA256 d7e865d1e5ecba50d1a722d0233afb44012ad66f1db7899f18814718d7b0c412 SHA512 5dd3ddcbb9517b52fd6513266ab88332f6e8282d2c106029b221791df831c4fe15f97959d2ceef16faf0b0a8d929ec578cfffcf89f7a81d989a432bb15cd608e WHIRLPOOL bfaf5a6a223abea78fa40c4684d9593ffd512455dc502f5711f6e0f23b9f43522e5433640db21bd469a07c52960725d590faf5f33ade4889723547b5b4e998fb
+MISC metadata.xml 265 SHA256 88fc04c2e3102afd870cfa235e90f0a80b4ebbb032780d7501ff6c6b654c96a2 SHA512 470f6c178e88c4e83afa46d5e901a45fc2427a779ae832df7fa2d6e25e9e8b4ce77cd3a8fe191e6242d6df3b673f0de6b4f90f1e147aa8b8dd566f18163cc73a WHIRLPOOL ba08ab5455155b3c0c24ed2ec94129b3538b4be93069560166150ee59c57bb197c7b513c5a934e47c138aaf9bd34a4a3a8b63c815e34e2a5435af8056a09961d
diff --git a/sci-chemistry/platon/metadata.xml b/sci-chemistry/platon/metadata.xml
new file mode 100644
index 000000000000..da36ecbfcd6a
--- /dev/null
+++ b/sci-chemistry/platon/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-chemistry@gentoo.org</email>
+ <name>Gentoo Chemistry Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/sci-chemistry/platon/platon-20151001.ebuild b/sci-chemistry/platon/platon-20151001.ebuild
new file mode 100644
index 000000000000..7fcfb6bfc853
--- /dev/null
+++ b/sci-chemistry/platon/platon-20151001.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils fortran-2 flag-o-matic multilib toolchain-funcs
+
+DESCRIPTION="Versatile, SHELX-97 compatible, multipurpose crystallographic tool"
+HOMEPAGE="http://www.cryst.chem.uu.nl/platon/"
+SRC_URI="http://www.cryst.chem.uu.nl/xraysoft/unix/${PN}.tar.gz -> ${P}.tar.gz"
+
+SLOT="0"
+LICENSE="free-noncomm"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+IUSE="examples"
+
+# Can't do libf2c dependent on whether <gcc-4 is selected for the build,
+# so we must always require it
+RDEPEND="x11-libs/libX11"
+DEPEND="${RDEPEND}"
+
+RESTRICT="mirror"
+
+S="${WORKDIR}/${PN}"
+
+pkg_nofetch() {
+ elog "If there is a digest mismatch, please file a bug"
+ elog "at https://bugs.gentoo.org/ -- a version bump"
+ elog "is probably required."
+}
+
+src_unpack() {
+ default
+ cd "${S}" || die
+ gunzip platon.f.gz xdrvr.c.gz || die
+}
+
+src_compile() {
+ # easy to ICE, at least on gcc 4.3
+ strip-flags
+
+ COMMAND="$(tc-getCC) -c ${CFLAGS} xdrvr.c"
+ echo ${COMMAND}
+ ${COMMAND} || die "Compilation of xdrvr.c failed"
+ COMMAND="$(tc-getFC) -c ${FFLAGS:- -O2} -fno-second-underscore platon.f"
+ echo ${COMMAND}
+ ${COMMAND} || die "Compilation of platon.f failed"
+ COMMAND="$(tc-getFC) -o platon ${LDFLAGS} platon.o xdrvr.o -lX11 ${F2C}"
+ echo ${COMMAND}
+ ${COMMAND} || die "Linking failed"
+}
+
+src_install() {
+ dobin platon
+
+ for bin in pluton s cifchk helena stidy; do
+ dosym platon /usr/bin/${bin}
+ done
+
+ insinto /usr/$(get_libdir)/platon
+ doins check.def
+
+ echo "CHECKDEF=\"${EPREFIX}/usr/$(get_libdir)/platon/check.def\"" > "${T}"/env.d
+ newenvd "${T}"/env.d 50platon
+
+ dodoc README.*
+
+ if use examples; then
+ insinto /usr/share/${PN}
+ doins -r TEST
+ fi
+}