summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2010-05-22 10:04:30 +0000
committerJustin Lecher <jlec@gentoo.org>2010-05-22 10:04:30 +0000
commit2ee858f34fdd0bda4196cfd875d19e0dcc67454a (patch)
treec326c1ce63f8559e18efb5e3611007fc49b432ad /sci-chemistry/oasis
parentFixes for bug 314053 (diff)
downloadgentoo-2-2ee858f34fdd0bda4196cfd875d19e0dcc67454a.tar.gz
gentoo-2-2ee858f34fdd0bda4196cfd875d19e0dcc67454a.tar.bz2
gentoo-2-2ee858f34fdd0bda4196cfd875d19e0dcc67454a.zip
Fixes for bug 314053
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sci-chemistry/oasis')
-rw-r--r--sci-chemistry/oasis/ChangeLog7
-rw-r--r--sci-chemistry/oasis/oasis-4.0-r1.ebuild70
2 files changed, 76 insertions, 1 deletions
diff --git a/sci-chemistry/oasis/ChangeLog b/sci-chemistry/oasis/ChangeLog
index da9037166fd1..1b60f3c3da40 100644
--- a/sci-chemistry/oasis/ChangeLog
+++ b/sci-chemistry/oasis/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-chemistry/oasis
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/oasis/ChangeLog,v 1.4 2010/04/25 11:29:53 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/oasis/ChangeLog,v 1.5 2010/05/22 10:04:30 jlec Exp $
+
+*oasis-4.0-r1 (22 May 2010)
+
+ 22 May 2010; Justin Lecher <jlec@gentoo.org> +oasis-4.0-r1.ebuild:
+ Fixes for bug 314053
05 Apr 2010; Justin Lecher <jlec@gentoo.org> oasis-4.0.ebuild:
Keyworded for ~x86-linux ~amd64-linux, tested by me
diff --git a/sci-chemistry/oasis/oasis-4.0-r1.ebuild b/sci-chemistry/oasis/oasis-4.0-r1.ebuild
new file mode 100644
index 000000000000..36d0c60a3d83
--- /dev/null
+++ b/sci-chemistry/oasis/oasis-4.0-r1.ebuild
@@ -0,0 +1,70 @@
+# 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-r1.ebuild,v 1.1 2010/05/22 10:04:30 jlec Exp $
+
+EAPI="3"
+
+inherit eutils multilib toolchain-funcs
+
+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="$(tc-getFC)" \
+ 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
+
+ insinto /usr/$(get_libdir)/${PN}/html
+ doins bin/html/* || die
+ 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
+}