summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2013-09-18 09:21:10 +0000
committerJustin Lecher <jlec@gentoo.org>2013-09-18 09:21:10 +0000
commita65f9014fbe0815131fee0d69c3508feabc7cec7 (patch)
treecafe76364a2caff82c3ed092b587d760f1152e77 /sci-chemistry/coot
parentFix coreutils dep to be build-time. (diff)
downloadhistorical-a65f9014fbe0815131fee0d69c3508feabc7cec7.tar.gz
historical-a65f9014fbe0815131fee0d69c3508feabc7cec7.tar.bz2
historical-a65f9014fbe0815131fee0d69c3508feabc7cec7.zip
sci-chemistry/coot: Drop old
Package-Manager: portage-2.2.6/cvs/Linux x86_64 Manifest-Sign-Key: 0xB9D4F231BD1558AB!
Diffstat (limited to 'sci-chemistry/coot')
-rw-r--r--sci-chemistry/coot/ChangeLog6
-rw-r--r--sci-chemistry/coot/Manifest34
-rw-r--r--sci-chemistry/coot/coot-0.6.2-r1.ebuild166
-rw-r--r--sci-chemistry/coot/coot-0.6.2.ebuild162
4 files changed, 20 insertions, 348 deletions
diff --git a/sci-chemistry/coot/ChangeLog b/sci-chemistry/coot/ChangeLog
index c49a862b9628..9f54695f0d92 100644
--- a/sci-chemistry/coot/ChangeLog
+++ b/sci-chemistry/coot/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sci-chemistry/coot
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/coot/ChangeLog,v 1.60 2013/09/15 08:31:02 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/coot/ChangeLog,v 1.61 2013/09/18 09:21:09 jlec Exp $
+
+ 18 Sep 2013; Justin Lecher <jlec@gentoo.org> -coot-0.6.2.ebuild,
+ -coot-0.6.2-r1.ebuild:
+ Drop old
15 Sep 2013; Agostino Sarubbo <ago@gentoo.org> coot-0.7.ebuild:
Stable for x86, wrt bug #477166
diff --git a/sci-chemistry/coot/Manifest b/sci-chemistry/coot/Manifest
index d3e9bf6322f7..86a47e251718 100644
--- a/sci-chemistry/coot/Manifest
+++ b/sci-chemistry/coot/Manifest
@@ -11,32 +11,28 @@ AUX coot-0.7-clipper-config.patch 431 SHA256 9ae9129e733d845ad2e4dd505bc5e098714
AUX coot-0.7-goocanvas.patch 702 SHA256 162b21a3afb2d523df315ec021faf7a6497eb3b4fe00f90f601527fe1c22621a SHA512 e083513ea21777c7db05ec59340b57ce70aad5f7acbf93545cee53ce7d595218804531aabf6bcc6d5a2ec72fe5528228478538a52cd61d020e5632f6dfed9b53 WHIRLPOOL 7a99136387924c292e3ea155082706b02f3633740d072c3c35dd26022bb7559397b2574d6707c000f0264e0704be266ae085fe25b25e99adacbb92c683a706de
AUX coot-0.7-mmdb-config.patch 479 SHA256 0b7d61f9c5f9664672286e82a790d4dea1673ed1537ef62b59142ced97685d82 SHA512 a124943644761ed18e9906655e616c657f8e1a3930ff3fe11cc73f04456c6562a6c240c5bad887ffc26a49798bcd6ec3f40ce967fd06932bcc55ae5795f62433 WHIRLPOOL ceacb033bc7a87449f1dce6d5e3a09d90cd10f4445515622864df8f09c23000421680e6c13dbf1885d867901fbc38553d9008a0307085070b70ca4f30566319f
AUX coot-0.7-ssm.patch 1276 SHA256 42f1098b0d56f85125293ca24410061e7a9bee10c94ba6e9fd3496439368bf75 SHA512 20ea4f2fa82858b67ce55fba1e07c5e1caae92df30050b96c95a8f8fdc467bdcecfcd2cef89fd6a406135f18a2d8bc0de4eedeca9a5c97680be3484a8eddac5e WHIRLPOOL 91aee135f0c1a73d74fe26bf38a2ccb5d9b082733fd4c70eef0c04385c829dae5bfe075ed0248f4634dbd366ef5acb4be574a302ac008723d11524fa28b60b30
-DIST coot-0.6.2.tar.gz 13597123 SHA256 d2f55db4f75c721d120ea33a4ca42c1abf246dff29a75b7f189e604e32709e78 SHA512 d19357a446c0654be286410d33a96aa961f53a3ed87745fe4454a601662ca58463e5f7eb782bf5bc5540c681abccf205c265351cb64a64f851f5e41fad0c433c WHIRLPOOL c4f57d8235f9bfa3db50ef9616424c8eb041c6fca136572e775339436e3f188763df12014cd484ebb32697a3962c456f05b6a99d79478344c34844444b37f097
DIST coot-0.7.1.tar.gz 16663581 SHA256 2310d48f7581283ee20eeb355d5fcef90e8d36bc032684b7b47f7c61e89ea0a9 SHA512 dad758b227231543cacd9b34ca00a0bff18bdc208c10529bbf2e504db9f17a3f1bbf610a52c21fe6046e443222667a3703dc962241debff87058ac041bbcec2e WHIRLPOOL 7c57f1161016a74449a9fee1202ada82044d17d957002c67c59f2eb9776f676eb525b605a1973b9bc479e15b40df5478e3b3fad9594433fee73bfc544d5d6b52
DIST coot-0.7.tar.gz 16172237 SHA256 e3d61d326ee906eb77081a6f646024cc6c5c92281f9508da3086fb937fb05aa2 SHA512 27fe0485240adcb7f370cf2daf116d8ea1c8e80e297c0975f1b2d2f78d4a5cd9314e06537e680993d465ef551ceba46a2b402c63acfabcbf599cca6bdb8f843f WHIRLPOOL cc919a7ec3731cfd482bb906c7fd9dc98d9ce2ba2f6bbaa91facf5e5195e27b3fe3f0e03e93668a1524bc2b2306ec23951e1db5033315ed1f26456768a5ac2a7
-DIST greg-data-0.6.2.tar.gz 8044588 SHA256 c9fedf6e1fa60fda178753bbfb539671c274f64d4daca2b63ab49c59bd4c5856
DIST greg-data-0.7.1.tar.gz 8142259 SHA256 6f3e1c1bc540c8355583ce2e1807cc9f6a2f7b466384382a843942f96b1d31a1 SHA512 6ce97b72f3f984c0d2dc1eb4a259412761736bfaec23867eba46919b6c6444698dc0b0e717c1a095aa713b2a4726d4229aed5964d89a74f7c1f2aa058f4891bf WHIRLPOOL 65db8c976f481a765e1301526cc7af6939ceb4c1cc26f3c1d5e628512a9c34bc4a10e8380d10ab4773976def9b3e07cf84b2cdc1da821750118c405b2f8b34d4
DIST greg-data-0.7.tar.gz 8202091 SHA256 b82743b1d3c2d3acaa4adb4901368d46e0638733364963ad62044f79111f21f7 SHA512 71ab00869df074660103b824130776ceeaad398b1df8bbc30c9fc41660cc08a66998a406c5cfc93f4605cc5052aae414bd79b6e6de2ae46acd9c6997dbd5361b WHIRLPOOL 87deff25e864f55b316f432b9a9b595e23352720d08257e2b69bbe7946bf8ab5d1fcc9d13205354a0edd3fbea89422952df5f6fa0c05f9707167b544494b2c14
-EBUILD coot-0.6.2-r1.ebuild 4434 SHA256 5f1d74adc5666945b3f3339db5329fb6f0959f7846d49ffdc0087063e85e3fac SHA512 f995318c37e7463601d05a5bfeb9398cdd3bb19bdedf16f9a22fd4599cde43e0eb54db7b49c31390957e1f7fb9bbee086ae9cc00ccc0fa153cecdee9f77aad50 WHIRLPOOL 81e8e31475f94d1ac0a4370241889ef5c10647939c7a271a648be191de3c0c0ec3495eeaea8b45d03445e3ec9fa9acb1d456bca7f3e44f2deb5364537aff8da3
-EBUILD coot-0.6.2.ebuild 4331 SHA256 8b97c9b0eb5f5df2e0caf7d6c54e1bff5d711cbc4fd75bb76a97b3bd63420e72 SHA512 1b6092014e42c29257c1479d5f1f22ce700848cc1aba13b6e64b85e8dd07ae8f02dac6fa5949e1829c6b2867732fa4522cdd82a97dd2c0e83f80c3262bcb50fe WHIRLPOOL 2acbeabcedd928b1a7f4a1c1de4056a6e9770cea8d2cd312c2548a38f817f35f2c6afbef936fa9c309c809b037821c00a415c381f8e354bc5842629f20fd44ea
EBUILD coot-0.7.1-r1.ebuild 4481 SHA256 af5b3ae7d380ab9a9ac5d3a8f2bdad5300ec0e34acf1aac28b0d94b1886e14fc SHA512 3d4d3469ed0350f8a43cdbf04146d54d88601bbbf968c9d741f48f2afe286018a1904149d5c12ee2d94ff2e8223f615ed4ad3b04872b07f4075c06114e8dc47f WHIRLPOOL 162400d0e8d8b1420fa2a893476f4eeb7851a4fc5cf9da52b02b916fa12148c46ad6cb0bb200a24a2ae8f2876e66c45ca85dd91816552196ed45e96546eb2588
EBUILD coot-0.7.ebuild 4306 SHA256 4e26dfce590c6520df271c37b8c6cf7a8f4dc0708c3f1bf33e13b69e85c72531 SHA512 7bbbbee6af7c87b84ab5e4a32fb8cd047c48719fa25960e38feafdb81931f6026a7d119952e3f29c59a6461bb079fa23d025f2595c1e46c6aa540ab9bb7295ea WHIRLPOOL c323e7beb11015b4549090a1dcb1dbd0c42fd819e51a8a6fda81e18ceaaaab037f3c22df06a81f32e29ca253582582f68d47d055a258cc00500d90396833132d
-MISC ChangeLog 9887 SHA256 3f0bc1684b3be10bff4db9eca50967de4c158efad3b3d2d28e0ab97efb217846 SHA512 6bb7bc61e848187900309146ddfe49d0cc887a6cd8b1979fa28c1858bd56fa8a7e3cc2122977b1661545b77a36c8371dc6dabf73a0747ec5a8d67d49711fd85a WHIRLPOOL 8962c497f2c4ec82bd8f4dfd0f16ff94213b3b0ebb59044af94b6b09e1f3c9df9b031b4dc0b30a599031d732fd0230fac396e1078cee10ee7780560d7fd7e1f5
+MISC ChangeLog 9992 SHA256 ddbd6e25b02b5c8af79ec753ea9cb10d0d8b44ca6c955011c7b2ecd666bde4b1 SHA512 5a7c6c23ca9e1e23e3038566fdf5bd07cf934af75859c19fc7bdc543965cd319d5f06302caea79c48359c5429edfe1d820e30821a5f2862946515e9e44cb7a0f WHIRLPOOL 8e36ced228ae91969f1801d5073ad21020805cf0865c4f15a45b2c4ab3ce2fa58e0fa6cab8fb0a544e52d1541011aff1f925e8c8a41ec5d85a10a0000747e42b
MISC metadata.xml 168 SHA256 705462092174cd3e2e3ec1557a28108a746b7351f803d8ca6d1b925b3111c3ff SHA512 f0073fb277e20adb7781aa6ea7f8237bc2d350f0aa43f0f0cca33e02cf52b8fc117bd984c11721ac519a2637ea145976148ac1aba7335dc74c42f7b9531cbed3 WHIRLPOOL 07dd7a302e695440f5033889e5b20cada57beedf17ad33f95d45fb5c39da98bf206eaff13334c20c1c08140a9c5e6041341d29c58efc5ca59b112b60e1662318
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.20 (GNU/Linux)
+Version: GnuPG v2.0.21 (GNU/Linux)
-iQIcBAEBCgAGBQJSNXBDAAoJELp701BxlEWfGxcP/R1Uq1p69r/CKuPl7y+gJgB6
-g61Mk5xA/4tb6P434QiaI81TKKVXo8yPQ0R/e3wioR5PoXKW9NDDkmdq1vbdIQvP
-jOn64elSWK3Ki/yr36jb3jy4ff4aBgjVwdvsTVv2k/6z9IoOHlstEIBIrqE4h/9F
-CWnoMxANkzqiFCPJEzERIWD2DDRegrFaZ6s9ntITz5JLGzgab3bNcTr0bEZsfkCB
-J2YOYScwb9XQqRqm7NGZ9ZTIFqAmd60wFmjEMtbI8OH8c2iRcN0tDwYKpJ/s0qOW
-HLq7sJJwleFaQNYZUMHoLkHdbZENtns+a1bwCMZAhlra5kRy98JCoELumZwlC5+q
-bacWkdhD/JZsiaaMkfdzXZ1ORE/sBAFXuWB3i2H93m5FOOL9b7je3gd5fsxNiQkG
-Hf14kfvTYLVsCeGSvmGlimd0DB/V9CL58vetFQEOZnLcecrF6wcDPwX5eThCQa4F
-UKwuYLKohz0QcMtwKq053eAc8wgyoVa+/4MOvMnpmKcq2XGV+mEBKIndN3i7VWI9
-1e1L5LNZHlh7H5haBKbCfPGc+VYm97qS7M7+ebdL+cXsvGRo2vAfAQEAZmKPlLuP
-W4x70GYdidy+evczqlNV7/C2iZ8v47p9OhYVrlMvR6MbtVdM1O4CA0bwUNT1glSj
-ntUnE0C1VyegXT7qfvYj
-=ZVcy
+iQIcBAEBCgAGBQJSOXCGAAoJELnU8jG9FVirSsoP/1f67xXEvmAj/zC5EKTeUtqi
+gdq5UpVEghL/wKmiAl8JDihh0qQjOEV9bLAGsOsrwPEOL1zBDfAN//KNde745poL
+AGMkyCtO8HBjckJ11rjIGip6goejqdwlh4wCvRF1tQzqx1Th27nhfGFa5G2qHnXM
+RWBEaMsWLrcGnOH/dSxMBquK9JbeSEGwWvCT/FwsKS9GPwJVkfWZD3k8ltuGfo2S
+HJFCdFaC68uJ51qkMQPsOCrOZoKMW5ll6866ar/3rSk2BGC3UjjJlOm6Uv3PiJT7
+XcNClwWn0sW1DWWe5DXb7IkIYH/exXVTtRy82N9D3CjllZvWo6f7sCYL6hldZmBx
+y5y92MtWtQEcnD1+5F/uRd+V5ahoXeLhjqxu1jjaUeOl3j091PgtzE5ofD6TchtY
+qv+uAmBREUj85lSbNj2ahX66fLWuicyGPT5otMwFRFTr/6dbOsJTH9lZIhMYD9yE
+riZpmXQK0czE/rgF9l+Xg3j5gurrNEVMzjfc8BIGJGYtRSayIQuLJXaxolnyOrYU
+TBxwUIUvujIRt8eB4r9Jo34pZwDxcMZ62xDbyBxgM4LpDSxxFblRd/qDfmAVfNXA
+iOGCWNhw+xZDSpYAlgUQpCtJ+4b9R526315hazTP+5bNWsha81RTvJLFMD5SAogK
+SjxXsMySHBKZDhGeMm6v
+=q8Aw
-----END PGP SIGNATURE-----
diff --git a/sci-chemistry/coot/coot-0.6.2-r1.ebuild b/sci-chemistry/coot/coot-0.6.2-r1.ebuild
deleted file mode 100644
index ce8397bd45d5..000000000000
--- a/sci-chemistry/coot/coot-0.6.2-r1.ebuild
+++ /dev/null
@@ -1,166 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/coot/coot-0.6.2-r1.ebuild,v 1.6 2013/08/26 07:52:29 jlec Exp $
-
-EAPI=3
-
-PYTHON_DEPEND="2"
-
-AUTOTOOLS_AUTORECONF="true"
-
-inherit autotools-utils flag-o-matic 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
- sci-libs/ssm
- <sci-libs/monomer-db-1
- sci-chemistry/reduce
- <sci-chemistry/refmac-5.6
- sci-chemistry/probe"
-
-XDEPS="
- gnome-base/libgnomecanvas
- gnome-base/librsvg:2
- media-libs/libpng
- media-libs/freeglut
- x11-libs/gtk+:2
- x11-libs/gtkglext"
-
-SCHEMEDEPS="
- dev-scheme/net-http
- dev-scheme/guile-gui
- >=dev-scheme/guile-lib-0.1.6
- dev-scheme/guile-www
- >=x11-libs/guile-gtk-2.1"
-
-RDEPEND="
- ${SCIDEPS}
- ${XDEPS}
- ${SCHEMEDEPS}
- dev-python/pygtk:2
- >=dev-libs/gmp-4.2.2-r2
- >=net-misc/curl-7.19.6
- net-dns/libidn"
-DEPEND="${RDEPEND}
- dev-lang/swig
- sys-devel/bc
- test? ( dev-scheme/greg )"
-
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- if use openmp; then
- tc-has-openmp || die "Please use an OPENMP capable compiler"
- has_version '<sys-devel/libtool-2.4-r2' && append-ldflags $(no-as-needed)
- fi
- python_set_active_version 2
-}
-
-PATCHES=(
- "${FILESDIR}"/${PV}-clipper-config.patch
- "${FILESDIR}"/${PV}-mmdb-config.patch
- "${FILESDIR}"/${PV}-gl.patch
- "${FILESDIR}"/${PV}-test.patch
- "${FILESDIR}"/${PV}-ssm.patch
- "${FILESDIR}"/${PV}-libpng15.patch
- )
-
-src_prepare() {
- sed \
- -e "s:AM_COOT_SYS_BUILD_TYPE:COOT_SYS_BUILD_TYPE=Gentoo-Linux-$(PYTHON)-gtk2 ; AC_MSG_RESULT([\$COOT_SYS_BUILD_TYPE]); AC_SUBST(COOT_SYS_BUILD_TYPE):g" \
- -i configure.in || die
-
- autotools-utils_src_prepare
-}
-
-src_configure() {
- # All the --with's are used to activate various parts.
- # Yes, this is broken behavior.
- local myeconfargs=(
- --includedir='${prefix}/include/coot'
- --with-gtkcanvas-prefix="${EPREFIX}/usr"
- --with-gtkgl-prefix="${EPREFIX}/usr"
- --with-guile
- --with-python="${EPREFIX}/usr"
- --with-guile-gtk
- --with-gtk2
- --with-pygtk
- $(use_enable openmp)
- )
- autotools-utils_src_configure
-}
-
-src_compile() {
- autotools-utils_src_compile
- python_convert_shebangs $(python_get_version) "${S}"/src/coot_gtk2.py
- cp "${S}"/src/coot_gtk2.py python/coot.py || die
-}
-
-src_test() {
- source "${EPREFIX}/etc/profile.d/40ccp4.setup.sh"
- mkdir "${T}"/coot_test
-
- export COOT_STANDARD_RESIDUES="${S}/standard-residues.pdb"
- export COOT_SCHEME_DIR="${S}/scheme/"
- export COOT_RESOURCES_FILE="${S}/cootrc"
- export COOT_PIXMAPS_DIR="${S}/pixmaps"
- export COOT_DATA_DIR="${S}"
- export COOT_PYTHON_DIR="${S}/python"
- export PYTHONPATH="${COOT_PYTHON_DIR}:${PYTHONPATH}"
- export PYTHONHOME="${EPREFIX}"/usr
- export CCP4_SCR="${T}"/coot_test
- export CLIBD_MON="${EPREFIX}/usr/share/ccp4/data/monomers/"
- export SYMINFO="${S}/syminfo.lib"
-
- export COOT_TEST_DATA_DIR="${WORKDIR}"/data/greg-data
-
- cat > 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
-}
diff --git a/sci-chemistry/coot/coot-0.6.2.ebuild b/sci-chemistry/coot/coot-0.6.2.ebuild
deleted file mode 100644
index f17d1f5542cb..000000000000
--- a/sci-chemistry/coot/coot-0.6.2.ebuild
+++ /dev/null
@@ -1,162 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/coot/coot-0.6.2.ebuild,v 1.13 2013/08/26 07:52:29 jlec Exp $
-
-EAPI=3
-
-PYTHON_DEPEND="2"
-
-inherit autotools base eutils flag-o-matic 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 test"
-
-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
- sci-libs/ssm
- <sci-libs/monomer-db-1
- sci-chemistry/reduce
- <sci-chemistry/refmac-5.6
- sci-chemistry/probe"
-
-XDEPS="
- gnome-base/libgnomecanvas
- gnome-base/librsvg:2
- media-libs/libpng
- media-libs/freeglut
- x11-libs/gtk+:2
- x11-libs/gtkglext"
-
-SCHEMEDEPS="
- dev-scheme/net-http
- dev-scheme/guile-gui
- >=dev-scheme/guile-lib-0.1.6
- dev-scheme/guile-www
- >=x11-libs/guile-gtk-2.1"
-
-RDEPEND="
- ${SCIDEPS}
- ${XDEPS}
- ${SCHEMEDEPS}
- dev-python/pygtk:2
- >=dev-libs/gmp-4.2.2-r2
- >=net-misc/curl-7.19.6
- net-dns/libidn"
-DEPEND="${RDEPEND}
- dev-lang/swig
- sys-devel/bc
- test? ( dev-scheme/greg )"
-
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- if use openmp; then
- tc-has-openmp || die "Please use an OPENMP capable compiler"
- has_version '<sys-devel/libtool-2.4-r2' && append-ldflags $(no-as-needed)
- fi
- python_set_active_version 2
-}
-
-PATCHES=(
- "${FILESDIR}"/${PV}-clipper-config.patch
- "${FILESDIR}"/${PV}-mmdb-config.patch
- "${FILESDIR}"/${PV}-gl.patch
- "${FILESDIR}"/${PV}-test.patch
- "${FILESDIR}"/${PV}-ssm.patch
- "${FILESDIR}"/${PV}-libpng15.patch
- )
-
-src_prepare() {
- sed \
- -e "s:AM_COOT_SYS_BUILD_TYPE:COOT_SYS_BUILD_TYPE=Gentoo-Linux-$(PYTHON)-gtk2 ; AC_MSG_RESULT([\$COOT_SYS_BUILD_TYPE]); AC_SUBST(COOT_SYS_BUILD_TYPE):g" \
- -i configure.in || die
-
- base_src_prepare
-
- eautoreconf
-}
-
-src_configure() {
- # All the --with's are used to activate various parts.
- # Yes, this is broken behavior.
- econf \
- --includedir='${prefix}/include/coot' \
- --with-gtkcanvas-prefix="${EPREFIX}/usr" \
- --with-gtkgl-prefix="${EPREFIX}/usr" \
- --with-guile \
- --with-python="${EPREFIX}/usr" \
- --with-guile-gtk \
- --with-gtk2 \
- --with-pygtk \
- $(use_enable openmp)
-}
-
-src_compile() {
- emake || die "emake failed"
- python_convert_shebangs $(python_get_version) src/coot_gtk2.py
- cp "${S}"/src/coot_gtk2.py python/coot.py || die
-}
-
-src_test() {
- source "${EPREFIX}/etc/profile.d/40ccp4.setup.sh"
- mkdir "${T}"/coot_test
-
- export COOT_STANDARD_RESIDUES="${S}/standard-residues.pdb"
- export COOT_SCHEME_DIR="${S}/scheme/"
- export COOT_RESOURCES_FILE="${S}/cootrc"
- export COOT_PIXMAPS_DIR="${S}/pixmaps"
- export COOT_DATA_DIR="${S}"
- export COOT_PYTHON_DIR="${S}/python"
- export PYTHONPATH="${COOT_PYTHON_DIR}:${PYTHONPATH}"
- export PYTHONHOME="${EPREFIX}"/usr
- export CCP4_SCR="${T}"/coot_test
- export CLIBD_MON="${EPREFIX}/usr/share/ccp4/data/monomers/"
- export SYMINFO="${S}/syminfo.lib"
-
- export COOT_TEST_DATA_DIR="${WORKDIR}"/data/greg-data
-
- cat > 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
-}