1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 PYTHON_MODNAME="pysawsim"
8 SUPPORT_PYTHON_ABIS="1"
9 RESTRICT_PYTHON_ABIS="3.*"
11 inherit eutils distutils
13 if [[ ${PV} == "9999" ]] ; then
16 EGIT_REPO_URI="git://tremily.us/${PN}.git http://http-git.tremily.us/${PN}.git"
19 SRC_URI="http://git.tremily.us/?p=${PN}.git;a=snapshot;h=v${PV};sf=tgz"
22 DESCRIPTION="sawsim force spectroscopy simulator"
23 HOMEPAGE="http://blog.tremily.us/posts/${PN}/"
27 KEYWORDS="~x86 ~amd64"
30 RDEPEND="dev-lang/python
35 mpi? ( dev-python/mpi4py )
36 pbs? ( sys-cluster/pbs-python )"
45 if [[ ${PV} == "9999" ]] ; then
54 notangle -Rmakefile src/sawsim.nw | sed 's/ /\t/' > Makefile
55 assert "Failed to generate Makefile"
60 emake all_bin || die "couldn't build binary targets"
62 emake all_doc || die "couldn't build documentation"
69 doexe bin/sawsim bin/k_model_utils bin/tension_model_utils || die "install failed"
70 dodoc README || die "dodoc failed"
72 dodoc doc/sawsim.pdf || die "couldn't install manual"