summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2010-07-06 11:18:46 +0000
committerJustin Lecher <jlec@gentoo.org>2010-07-06 11:18:46 +0000
commitd33a839c6319d58947cfdfdb50ee1616486ca44e (patch)
tree41d749674bf7d2faa283cff16deb1d1b69d3df63 /sci-chemistry/oasis/oasis-4.0-r2.ebuild
parentppc64 stable wrt #323501 (diff)
downloadgentoo-2-d33a839c6319d58947cfdfdb50ee1616486ca44e.tar.gz
gentoo-2-d33a839c6319d58947cfdfdb50ee1616486ca44e.tar.bz2
gentoo-2-d33a839c6319d58947cfdfdb50ee1616486ca44e.zip
Use FFLAGS instead of CFLAGS for compilation, Xarthisius on irc
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sci-chemistry/oasis/oasis-4.0-r2.ebuild')
-rw-r--r--sci-chemistry/oasis/oasis-4.0-r2.ebuild72
1 files changed, 72 insertions, 0 deletions
diff --git a/sci-chemistry/oasis/oasis-4.0-r2.ebuild b/sci-chemistry/oasis/oasis-4.0-r2.ebuild
new file mode 100644
index 000000000000..cbbbe3fe73ea
--- /dev/null
+++ b/sci-chemistry/oasis/oasis-4.0-r2.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/oasis/oasis-4.0-r2.ebuild,v 1.1 2010/07/06 11:18:46 jlec Exp $
+
+EAPI="3"
+
+inherit eutils fortran multilib
+
+FORTRANC="ifc gfortran"
+MY_P="${PN}${PV}_Linux"
+
+DESCRIPTION="A direct-method program for SAD/SIR phasing"
+HOMEPAGE="http://cryst.iphy.ac.cn/Project/protein/protein-I.html"
+SRC_URI="http://dev.gentooexperimental.org/~jlec/distfiles/${MY_P}.zip"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+LICENSE="ccp4 oasis"
+IUSE="examples +minimal"
+
+RDEPEND="
+ ${RDEPEND}
+ sci-chemistry/ccp4-apps
+ sci-chemistry/pymol
+ sci-libs/mmdb
+ sci-visualization/gnuplot
+ !minimal? (
+ sci-chemistry/solve-resolve-bin
+ sci-chemistry/arp-warp-bin
+ )"
+DEPEND="sci-libs/ccp4-libs"
+
+S="${WORKDIR}"/${MY_P}
+
+src_prepare() {
+ rm bin/{fnp2fp,gnuplot,oasis4-0,seq} || die
+ epatch "${FILESDIR}"/${PV}-makefile.patch
+}
+
+src_compile() {
+ emake \
+ -C src \
+ F77="${FORTRANC}" \
+ CFLAGS="${FFLAGS}" \
+ CCP4_LIB="${EPREFIX}/usr/$(get_libdir)" \
+ Linux || die
+}
+
+src_install() {
+ exeinto /usr/libexec/ccp4/bin/
+ doexe src/{${PN},fnp2fp} || die
+ dosym ../libexec/ccp4/bin/${PN} /usr/bin/${PN}
+ dosym ../libexec/ccp4/bin/fnp2fp /usr/bin/fnp2fp
+
+ exeinto /usr/$(get_libdir)/${PN}
+ doexe bin/*.*sh || die
+
+ dohtml bin/html/* || die
+ dosym ../share/doc/${PF}/html /usr/$(get_libdir)/${PN}/html
+ chmod 755 "${ED}"/usr/$(get_libdir)/${PN}/html/*.{csh,awk} || die
+
+ if use examples; then
+ insinto /usr/share/${PN}
+ doins -r examples || die
+ fi
+
+ cat >> "${T}"/25oasis <<- EOF
+ oasisbin="${EPREFIX}/usr/$(get_libdir)/${PN}"
+ EOF
+
+ doenvd "${T}"/25oasis
+}