diff options
author | Donnie Berkholz <spyderous@gentoo.org> | 2005-12-16 06:46:21 +0000 |
---|---|---|
committer | Donnie Berkholz <spyderous@gentoo.org> | 2005-12-16 06:46:21 +0000 |
commit | 3cf757c7a27fa69543c04abfd7db27a71bdd5e0e (patch) | |
tree | 431cfe06d9bc8d2ad331572413c66ad438c349cb /sci-chemistry/eden/eden-5.3.ebuild | |
parent | Stable on x86; bug #115177 (diff) | |
download | gentoo-2-3cf757c7a27fa69543c04abfd7db27a71bdd5e0e.tar.gz gentoo-2-3cf757c7a27fa69543c04abfd7db27a71bdd5e0e.tar.bz2 gentoo-2-3cf757c7a27fa69543c04abfd7db27a71bdd5e0e.zip |
A crystallographic real-space electron-density refinement and optimization program.
(Portage version: 2.0.53)
Diffstat (limited to 'sci-chemistry/eden/eden-5.3.ebuild')
-rw-r--r-- | sci-chemistry/eden/eden-5.3.ebuild | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/sci-chemistry/eden/eden-5.3.ebuild b/sci-chemistry/eden/eden-5.3.ebuild new file mode 100644 index 000000000000..70f673e0a0bd --- /dev/null +++ b/sci-chemistry/eden/eden-5.3.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/eden/eden-5.3.ebuild,v 1.1 2005/12/16 06:46:21 spyderous Exp $ + +inherit eutils multilib toolchain-funcs + +MY_P="${PN}_V${PV}" +DESCRIPTION="A crystallographic real-space electron-density refinement and optimization program" +HOMEPAGE="http://www.edencrystallography.org/" +SRC_URI="http://www.edencrystallography.org/${MY_P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="double-precision" +RDEPEND="=sci-libs/fftw-2* + sci-libs/gsl" +DEPEND="${RDEPEND}" +S="${WORKDIR}/${PN}" +SRC="${S}/source" + +src_unpack() { + unpack ${A} + + epatch ${FILESDIR}/makefile-fixes.patch + + sed -i \ + -e "s:^\(FFTW.*=\).*:\1 ${ROOT}usr:g" \ + -e "s:^\(LIB.*=.*\$(FFTW)/\).*:\1$(get_libdir):g" \ + -e "s:^\(BIN.*=\).*:\1 ${D}usr/bin:g" \ + -e "s:^\(CFLAGS.*=\).*:\1 ${CFLAGS}:g" \ + ${SRC}/Makefile + + if ! use double-precision; then + sed -i -e "s:^\(DOUBLESWITCH.*=\).*:\1 OFF:g" ${SRC}/Makefile + EXE="seden" + else + EXE="deden" + fi +} + +src_compile() { + cd ${SRC} + emake CC=$(tc-getCC) || die "emake failed" +} + +src_install() { + local EDENHOME="/usr/lib/eden" + + cd ${SRC} + dodir /usr/bin + make install || die "install failed" + + cd ${S} + dodir ${EDENHOME}/python + exeinto ${EDENHOME}/python + doexe python/* + + dodir ${EDENHOME}/help + insinto ${EDENHOME}/help + doins help/* + + dodir ${EDENHOME}/tools + insinto ${EDENHOME}/tools + doins tools/* + + dodoc manual/UserManual.pdf + +cat << EOF > ${T}/eden +#!/bin/bash +export EDENHOME="${EDENHOME}" +${EXE} \$* +EOF + + dobin ${T}/eden + +cat << EOF > ${T}/ieden +#!/bin/bash +export EDENHOME="${EDENHOME}" +\${EDENHOME}/python/eden.py +EOF + + dobin ${T}/ieden +} |