# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/coot/coot-0.7.ebuild,v 1.7 2014/10/12 11:33:45 jlec Exp $ EAPI=4 PYTHON_DEPEND="2" AUTOTOOLS_AUTORECONF="true" inherit autotools-utils python toolchain-funcs versionator MY_S2_PV=$(replace_version_separator 2 - ${PV}) MY_S2_P=${PN}-${MY_S2_PV/pre1/pre-1} MY_S_P=${MY_S2_P}-${PR/r/revision-} MY_PV=${PV} MY_P=${PN}-${MY_PV} DESCRIPTION="Crystallographic Object-Oriented Toolkit for model building, completion and validation" HOMEPAGE="http://www2.mrc-lmb.cam.ac.uk/personal/pemsley/coot/" SRC_URI=" http://www.biop.ox.ac.uk/coot/software/source/releases/${MY_P}.tar.gz test? ( http://dev.gentoo.org/~jlec/distfiles/greg-data-${PV}.tar.gz )" SLOT="0" LICENSE="GPL-3" KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" IUSE="+openmp static-libs test" AUTOTOOLS_IN_SOURCE_BUILD=1 SCIDEPS=" >=sci-libs/ccp4-libs-6.1 sci-libs/clipper >=sci-libs/coot-data-2 >=sci-libs/gsl-1.3 >=sci-libs/mmdb-1.23:0 sci-libs/ssm command-line-greg.scm <<- EOF (use-modules (ice-9 greg)) (set! greg-tools (list "greg-tests")) (set! greg-debug #t) (set! greg-verbose 5) (let ((r (greg-test-run))) (if r (coot-real-exit 0) (coot-real-exit 1))) EOF einfo "Running test with following paths ..." einfo "COOT_STANDARD_RESIDUES $COOT_STANDARD_RESIDUES" einfo "COOT_SCHEME_DIR $COOT_SCHEME_DIR" einfo "COOT_RESOURCES_FILE $COOT_RESOURCES_FILE" einfo "COOT_PIXMAPS_DIR $COOT_PIXMAPS_DIR" einfo "COOT_DATA_DIR $COOT_DATA_DIR" einfo "COOT_PYTHON_DIR $COOT_PYTHON_DIR" einfo "PYTHONPATH $PYTHONPATH" einfo "PYTHONHOME $PYTHONHOME" einfo "CCP4_SCR ${CCP4_SCR}" einfo "CLIBD_MON ${CLIBD_MON}" einfo "SYMINFO ${SYMINFO}" "${S}"/src/coot-real --no-graphics --script command-line-greg.scm || die "${S}"/src/coot-real --no-graphics --script python-tests/coot_unittest.py || die }