diff options
Diffstat (limited to 'sci-chemistry/reduce/reduce-3.14.080821.ebuild')
-rw-r--r-- | sci-chemistry/reduce/reduce-3.14.080821.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/sci-chemistry/reduce/reduce-3.14.080821.ebuild b/sci-chemistry/reduce/reduce-3.14.080821.ebuild new file mode 100644 index 000000000000..824ee735ef0f --- /dev/null +++ b/sci-chemistry/reduce/reduce-3.14.080821.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils toolchain-funcs + +MY_P="${PN}.${PV}.src" + +DESCRIPTION="Adds hydrogens to a Protein Data Bank (PDB) molecule structure file" +HOMEPAGE="http://kinemage.biochem.duke.edu/software/reduce.php" +SRC_URI="http://kinemage.biochem.duke.edu/downloads/software/reduce31/${MY_P}.tgz" + +LICENSE="richardson" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +RDEPEND="" +DEPEND="${RDEPEND} + app-arch/unzip" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch \ + "${FILESDIR}"/3.13.080428-LDFLAGS.patch \ + "${FILESDIR}"/${PV}-CFLAGS.patch +} + +src_compile() { + DICT_DIR="/usr/share/reduce" + DICT_FOLD="reduce_het_dict.txt" + DICT_FNEW="reduce_wwPDB_het_dict.txt" + + emake clean + emake \ + CC="$(tc-getCC)" \ + CXX="$(tc-getCXX)" \ + OPT="${CXXFLAGS}" \ + DICT_HOME="${EPREFIX}/${DICT_DIR}/${DICT_FNEW}" \ + DICT_OLD="${EPREFIX}/${DICT_DIR}/${DICT_FOLD}" +} + +src_install() { + dobin "${S}"/reduce_src/reduce + insinto ${DICT_DIR} + doins "${S}"/${DICT_FOLD} "${S}"/${DICT_FNEW} + dodoc README.usingReduce.txt +} |