diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /sci-chemistry/coot | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sci-chemistry/coot')
-rw-r--r-- | sci-chemistry/coot/Manifest | 6 | ||||
-rw-r--r-- | sci-chemistry/coot/coot-0.7.1-r1.ebuild | 167 | ||||
-rw-r--r-- | sci-chemistry/coot/coot-0.7.2.ebuild | 165 | ||||
-rw-r--r-- | sci-chemistry/coot/coot-0.7.ebuild | 159 | ||||
-rw-r--r-- | sci-chemistry/coot/files/0.6.2-clipper-config.patch | 17 | ||||
-rw-r--r-- | sci-chemistry/coot/files/0.6.2-gl.patch | 10 | ||||
-rw-r--r-- | sci-chemistry/coot/files/0.6.2-libpng15.patch | 29 | ||||
-rw-r--r-- | sci-chemistry/coot/files/0.6.2-mmdb-config.patch | 18 | ||||
-rw-r--r-- | sci-chemistry/coot/files/0.6.2-ssm.patch | 56 | ||||
-rw-r--r-- | sci-chemistry/coot/files/0.6.2-test.patch | 16 | ||||
-rw-r--r-- | sci-chemistry/coot/files/coot-0.7-clipper-config.patch | 17 | ||||
-rw-r--r-- | sci-chemistry/coot/files/coot-0.7-goocanvas.patch | 25 | ||||
-rw-r--r-- | sci-chemistry/coot/files/coot-0.7-mmdb-config.patch | 18 | ||||
-rw-r--r-- | sci-chemistry/coot/files/coot-0.7-ssm.patch | 56 | ||||
-rw-r--r-- | sci-chemistry/coot/metadata.xml | 5 |
15 files changed, 764 insertions, 0 deletions
diff --git a/sci-chemistry/coot/Manifest b/sci-chemistry/coot/Manifest new file mode 100644 index 000000000000..3b897f1a8159 --- /dev/null +++ b/sci-chemistry/coot/Manifest @@ -0,0 +1,6 @@ +DIST coot-0.7.1.tar.gz 16663581 SHA256 2310d48f7581283ee20eeb355d5fcef90e8d36bc032684b7b47f7c61e89ea0a9 SHA512 dad758b227231543cacd9b34ca00a0bff18bdc208c10529bbf2e504db9f17a3f1bbf610a52c21fe6046e443222667a3703dc962241debff87058ac041bbcec2e WHIRLPOOL 7c57f1161016a74449a9fee1202ada82044d17d957002c67c59f2eb9776f676eb525b605a1973b9bc479e15b40df5478e3b3fad9594433fee73bfc544d5d6b52 +DIST coot-0.7.2.tar.gz 16859099 SHA256 67fbb702559be850f3198c11038fa2c25c692ef8a284e88bbf6a0e941cf3dadd SHA512 84ced967ab661a36ae61a529c1e7fdef121283795fe2300946277c8ba0724724a0190806434257cae01302542efd628cb57d0f35f24968b061cb04faf43daefa WHIRLPOOL ef379156fdfafc275fa953c01b81a06bf75dbf51cc84d6669fa92aef4449e507f45429ad599b455ca3b6b53f9944116adfe42e7ef50e2c56396624f3b5ea5f79 +DIST coot-0.7.tar.gz 16172237 SHA256 e3d61d326ee906eb77081a6f646024cc6c5c92281f9508da3086fb937fb05aa2 SHA512 27fe0485240adcb7f370cf2daf116d8ea1c8e80e297c0975f1b2d2f78d4a5cd9314e06537e680993d465ef551ceba46a2b402c63acfabcbf599cca6bdb8f843f WHIRLPOOL cc919a7ec3731cfd482bb906c7fd9dc98d9ce2ba2f6bbaa91facf5e5195e27b3fe3f0e03e93668a1524bc2b2306ec23951e1db5033315ed1f26456768a5ac2a7 +DIST greg-data-0.7.1.tar.gz 8142259 SHA256 6f3e1c1bc540c8355583ce2e1807cc9f6a2f7b466384382a843942f96b1d31a1 SHA512 6ce97b72f3f984c0d2dc1eb4a259412761736bfaec23867eba46919b6c6444698dc0b0e717c1a095aa713b2a4726d4229aed5964d89a74f7c1f2aa058f4891bf WHIRLPOOL 65db8c976f481a765e1301526cc7af6939ceb4c1cc26f3c1d5e628512a9c34bc4a10e8380d10ab4773976def9b3e07cf84b2cdc1da821750118c405b2f8b34d4 +DIST greg-data-0.7.2.tar.gz 8142259 SHA256 6f3e1c1bc540c8355583ce2e1807cc9f6a2f7b466384382a843942f96b1d31a1 SHA512 6ce97b72f3f984c0d2dc1eb4a259412761736bfaec23867eba46919b6c6444698dc0b0e717c1a095aa713b2a4726d4229aed5964d89a74f7c1f2aa058f4891bf WHIRLPOOL 65db8c976f481a765e1301526cc7af6939ceb4c1cc26f3c1d5e628512a9c34bc4a10e8380d10ab4773976def9b3e07cf84b2cdc1da821750118c405b2f8b34d4 +DIST greg-data-0.7.tar.gz 8202091 SHA256 b82743b1d3c2d3acaa4adb4901368d46e0638733364963ad62044f79111f21f7 SHA512 71ab00869df074660103b824130776ceeaad398b1df8bbc30c9fc41660cc08a66998a406c5cfc93f4605cc5052aae414bd79b6e6de2ae46acd9c6997dbd5361b WHIRLPOOL 87deff25e864f55b316f432b9a9b595e23352720d08257e2b69bbe7946bf8ab5d1fcc9d13205354a0edd3fbea89422952df5f6fa0c05f9707167b544494b2c14 diff --git a/sci-chemistry/coot/coot-0.7.1-r1.ebuild b/sci-chemistry/coot/coot-0.7.1-r1.ebuild new file mode 100644 index 000000000000..c55da6705209 --- /dev/null +++ b/sci-chemistry/coot/coot-0.7.1-r1.ebuild @@ -0,0 +1,167 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +AUTOTOOLS_AUTORECONF="true" + +inherit autotools-utils python-single-r1 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://www2.mrc-lmb.cam.ac.uk/Personal/pemsley/coot/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" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +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 + sci-libs/monomer-db + sci-chemistry/reduce + sci-chemistry/refmac + sci-chemistry/probe" + +XDEPS=" + gnome-base/libgnomecanvas + gnome-base/librsvg:2 + media-libs/libpng + media-libs/freeglut + x11-libs/gtk+:2 + x11-libs/goocanvas:0 + 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} + ${PYTHON_DEPS} + dev-python/pygtk:2[${PYTHON_USEDEP}] + >=dev-libs/gmp-4.2.2-r2 + >=net-misc/curl-7.19.6 + net-dns/libidn" +DEPEND="${RDEPEND} + >=sys-devel/libtool-2.4-r2 + 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" + fi + python-single-r1_pkg_setup +} + +PATCHES=( + "${FILESDIR}"/${PN}-0.7-clipper-config.patch + "${FILESDIR}"/${PN}-0.7-goocanvas.patch + "${FILESDIR}"/${PN}-0.7-mmdb-config.patch + "${FILESDIR}"/${PN}-0.7-ssm.patch + ) + +src_prepare() { + sed \ + -e "s:AM_COOT_SYS_BUILD_TYPE:COOT_SYS_BUILD_TYPE=Gentoo-Linux-${EPYTHON}-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-goocanvas-prefix="${EPREFIX}/usr" + --with-guile + --with-python="${EPREFIX}/usr" + --with-guile-gtk + --with-gtk2 + --with-pygtk + $(use_enable openmp) + ) + autotools-utils_src_configure +} + +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}"/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 +} + +src_install() { + autotools-utils_src_install + insinto /usr/share/${PN} + doins syminfo.lib +} diff --git a/sci-chemistry/coot/coot-0.7.2.ebuild b/sci-chemistry/coot/coot-0.7.2.ebuild new file mode 100644 index 000000000000..54e430017fc2 --- /dev/null +++ b/sci-chemistry/coot/coot-0.7.2.ebuild @@ -0,0 +1,165 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +AUTOTOOLS_AUTORECONF="true" + +inherit autotools-utils python-single-r1 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://www2.mrc-lmb.cam.ac.uk/Personal/pemsley/coot/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" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +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 + sci-libs/monomer-db + sci-chemistry/reduce + sci-chemistry/refmac + sci-chemistry/probe" + +XDEPS=" + gnome-base/libgnomecanvas + gnome-base/librsvg:2 + media-libs/libpng + media-libs/freeglut + x11-libs/gtk+:2 + x11-libs/goocanvas:0 + 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} + ${PYTHON_DEPS} + dev-python/pygtk:2[${PYTHON_USEDEP}] + >=dev-libs/gmp-4.2.2-r2 + >=net-misc/curl-7.19.6 + net-dns/libidn" +DEPEND="${RDEPEND} + >=sys-devel/libtool-2.4-r2 + 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" + fi + python-single-r1_pkg_setup +} + +PATCHES=( + "${FILESDIR}"/${PN}-0.7-clipper-config.patch + "${FILESDIR}"/${PN}-0.7-goocanvas.patch + "${FILESDIR}"/${PN}-0.7-mmdb-config.patch + ) + +src_prepare() { + sed \ + -e "s:AM_COOT_SYS_BUILD_TYPE:COOT_SYS_BUILD_TYPE=Gentoo-Linux-${EPYTHON}-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-goocanvas-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 + 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}"/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.7.ebuild b/sci-chemistry/coot/coot-0.7.ebuild new file mode 100644 index 000000000000..2922f57bfe37 --- /dev/null +++ b/sci-chemistry/coot/coot-0.7.ebuild @@ -0,0 +1,159 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 + <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/goocanvas:0 + 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} + >=sys-devel/libtool-2.4-r2 + 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" + fi + python_set_active_version 2 + python_pkg_setup +} + +PATCHES=( + "${FILESDIR}"/${P}-clipper-config.patch + "${FILESDIR}"/${P}-goocanvas.patch + "${FILESDIR}"/${P}-mmdb-config.patch + "${FILESDIR}"/${P}-ssm.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-goocanvas-prefix="${EPREFIX}/usr" + --with-guile + --with-python="${EPREFIX}/usr" + --with-guile-gtk + --with-gtk2 + --with-pygtk + $(use_enable openmp) + ) + autotools-utils_src_configure +} + +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/files/0.6.2-clipper-config.patch b/sci-chemistry/coot/files/0.6.2-clipper-config.patch new file mode 100644 index 000000000000..311b5e88d84e --- /dev/null +++ b/sci-chemistry/coot/files/0.6.2-clipper-config.patch @@ -0,0 +1,17 @@ + macros/clipper.m4 | 3 +++ + 1 files changed, 3 insertions(+), 0 deletions(-) + +diff --git a/macros/clipper.m4 b/macros/clipper.m4 +index 0bf087a..d0e8b6b 100644 +--- a/macros/clipper.m4 ++++ b/macros/clipper.m4 +@@ -98,6 +98,9 @@ case $ac_cv_build_alias in + ;; + esac + ++CLIPPER_CXXFLAGS=`clipper-config --cflags` ++CLIPPER_LDOPTS=`clipper-config --libs` ++ + AC_MSG_CHECKING([for Clipper]) + + LIBS="$save_LIBS $CLIPPER_LDOPTS" diff --git a/sci-chemistry/coot/files/0.6.2-gl.patch b/sci-chemistry/coot/files/0.6.2-gl.patch new file mode 100644 index 000000000000..bbd858c646df --- /dev/null +++ b/sci-chemistry/coot/files/0.6.2-gl.patch @@ -0,0 +1,10 @@ +Index: coot-surface/Makefile.am +=================================================================== +--- coot-surface/Makefile.am (revision 3478) ++++ coot-surface/Makefile.am (working copy) +@@ -29,4 +29,4 @@ + + libcoot_surface_la_LIBADD = \ + $(top_builddir)/surface/libccp4mg-surface.la \ +- $(GLUT_LIBS) $(CLIPPER_LIBS) $(MMDB_LIBS) ++ $(GLUT_LIBS) $(CLIPPER_LIBS) $(MMDB_LIBS) -lGL diff --git a/sci-chemistry/coot/files/0.6.2-libpng15.patch b/sci-chemistry/coot/files/0.6.2-libpng15.patch new file mode 100644 index 000000000000..bddd251698de --- /dev/null +++ b/sci-chemistry/coot/files/0.6.2-libpng15.patch @@ -0,0 +1,29 @@ +--- ccp4mg-utils/ppmutil.cc ++++ ccp4mg-utils/ppmutil.cc +@@ -2494,15 +2494,21 @@ + + pixels = new unsigned char[width*height*colourspace]; + ++ png_colorp palette; ++ int num_trans; ++#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >=4 ++ png_bytep trans_alpha; ++#endif ++ + for (int i=0; i<height; i++){ + if(color_type==PNG_COLOR_TYPE_PALETTE){ + for (int j=0; j<width; j++){ +- pixels[i*width*colourspace+j*colourspace] = png_ptr->palette[row_pointers[i][j]].red; +- pixels[i*width*colourspace+j*colourspace+1] = png_ptr->palette[row_pointers[i][j]].green; +- pixels[i*width*colourspace+j*colourspace+2] = png_ptr->palette[row_pointers[i][j]].blue; +- if(row_pointers[i][j]<png_ptr->num_trans){ ++ pixels[i*width*colourspace+j*colourspace] = palette[row_pointers[i][j]].red; ++ pixels[i*width*colourspace+j*colourspace+1] = palette[row_pointers[i][j]].green; ++ pixels[i*width*colourspace+j*colourspace+2] = palette[row_pointers[i][j]].blue; ++ if(row_pointers[i][j]<num_trans){ + #if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >=4 +- pixels[i*width*colourspace+j*colourspace+3] = png_ptr->trans_alpha[row_pointers[i][j]]; ++ pixels[i*width*colourspace+j*colourspace+3] = trans_alpha[row_pointers[i][j]]; + #else + pixels[i*width*colourspace+j*colourspace+3] = png_ptr->trans[row_pointers[i][j]]; + #endif diff --git a/sci-chemistry/coot/files/0.6.2-mmdb-config.patch b/sci-chemistry/coot/files/0.6.2-mmdb-config.patch new file mode 100644 index 000000000000..1d7cbd452f7b --- /dev/null +++ b/sci-chemistry/coot/files/0.6.2-mmdb-config.patch @@ -0,0 +1,18 @@ + macros/mmdb.m4 | 4 ++++ + 1 files changed, 4 insertions(+), 0 deletions(-) + +diff --git a/macros/mmdb.m4 b/macros/mmdb.m4 +index b477597..d05cf66 100644 +--- a/macros/mmdb.m4 ++++ b/macros/mmdb.m4 +@@ -86,6 +86,10 @@ else + ac_MMDB_LDOPTS="-lmmdb -lm" + fi + ++PKG_CHECK_MODULES([MMDB],[mmdb >= 1.2]) ++ac_MMDB_LDOPTS="${MMDB_LIBS}" ++ac_MMDB_CXXFLAGS="${MMDB_CFLAGS}" ++ + AC_MSG_CHECKING([for MMDB]) + + LIBS="$save_LIBS $ac_MMDB_LDOPTS" diff --git a/sci-chemistry/coot/files/0.6.2-ssm.patch b/sci-chemistry/coot/files/0.6.2-ssm.patch new file mode 100644 index 000000000000..c801da72410a --- /dev/null +++ b/sci-chemistry/coot/files/0.6.2-ssm.patch @@ -0,0 +1,56 @@ + macros/mmdb-ssm.m4 | 42 +----------------------------------------- + 1 files changed, 1 insertions(+), 41 deletions(-) + +diff --git a/macros/mmdb-ssm.m4 b/macros/mmdb-ssm.m4 +index 1937a16..6ef547c 100644 +--- a/macros/mmdb-ssm.m4 ++++ b/macros/mmdb-ssm.m4 +@@ -22,47 +22,7 @@ + AC_DEFUN([AM_WITH_MMDBSSM], + [AC_PROVIDE([AM_USE_MMDBSSM]) + +- +-AC_ARG_WITH(ssmlib-prefix, +- AC_HELP_STRING( [--with-ssmlib-prefix=PFX], [Prefix where SSMLib has been installed] ), +- [ with_ssmlib_prefix="$withval" ], +- with_ssmlib_prefix="") +- +-AC_MSG_CHECKING([for SSMLib]) +- +-if test x$with_ssmlib_prefix != x; then +- +- MMDBSSM_CXXFLAGS="-DHAVE_SSMLIB" +- MMDBSSM_LIBS="-L$with_ssmlib_prefix/$acl_libdirstem -lssm" +- +-ac_mmdb_dirs=' +-. +-include +-include/ssm +-include/mmdb +-lib +-src +-lib/src +-lib/src/mmdb' +- +- for ac_dir in $ac_mmdb_dirs; do +- if test -r "$with_ssmlib_prefix/$ac_dir/ssm_superpose.h"; then +- ac_MMDBSSM_CXXFLAGS="-I$with_ssmlib_prefix/$ac_dir" +- break +- fi +- done +- +- MMDBSSM_CXXFLAGS="$MMDBSSM_CXXFLAGS $ac_MMDBSSM_CXXFLAGS" +- +-else +- +- MMDBSSM_CXXFLAGS="" +- MMDBSSM_LIBS="" +- with_ssmlib_prefix=no +- +-fi +- +-AC_MSG_RESULT([$with_ssmlib_prefix]) ++PKG_CHECK_MODULES([MMDBSSM],[ssm]) + + AC_SUBST(MMDBSSM_CXXFLAGS) + AC_SUBST(MMDBSSM_LIBS) diff --git a/sci-chemistry/coot/files/0.6.2-test.patch b/sci-chemistry/coot/files/0.6.2-test.patch new file mode 100644 index 000000000000..8cb79e65d767 --- /dev/null +++ b/sci-chemistry/coot/files/0.6.2-test.patch @@ -0,0 +1,16 @@ + src/testing.cc | 4 +++- + 1 files changed, 3 insertions(+), 1 deletions(-) + +diff --git a/src/testing.cc b/src/testing.cc +index f767bf6..097b9b9 100644 +--- a/src/testing.cc ++++ b/src/testing.cc +@@ -86,6 +86,8 @@ std::string greg_test(const std::string &file_name) { + const char *c = getenv("COOT_TEST_DATA_DIR"); + if (c) { + dd = c; ++ dd += "/"; ++ dd += file_name; + } else { + const char *d = getenv("HOME"); + if (d) { diff --git a/sci-chemistry/coot/files/coot-0.7-clipper-config.patch b/sci-chemistry/coot/files/coot-0.7-clipper-config.patch new file mode 100644 index 000000000000..311b5e88d84e --- /dev/null +++ b/sci-chemistry/coot/files/coot-0.7-clipper-config.patch @@ -0,0 +1,17 @@ + macros/clipper.m4 | 3 +++ + 1 files changed, 3 insertions(+), 0 deletions(-) + +diff --git a/macros/clipper.m4 b/macros/clipper.m4 +index 0bf087a..d0e8b6b 100644 +--- a/macros/clipper.m4 ++++ b/macros/clipper.m4 +@@ -98,6 +98,9 @@ case $ac_cv_build_alias in + ;; + esac + ++CLIPPER_CXXFLAGS=`clipper-config --cflags` ++CLIPPER_LDOPTS=`clipper-config --libs` ++ + AC_MSG_CHECKING([for Clipper]) + + LIBS="$save_LIBS $CLIPPER_LDOPTS" diff --git a/sci-chemistry/coot/files/coot-0.7-goocanvas.patch b/sci-chemistry/coot/files/coot-0.7-goocanvas.patch new file mode 100644 index 000000000000..ce0d4a00abba --- /dev/null +++ b/sci-chemistry/coot/files/coot-0.7-goocanvas.patch @@ -0,0 +1,25 @@ +Index: macros/goo-canvas.m4 +=================================================================== +--- macros/goo-canvas.m4 (revision 3307) ++++ macros/goo-canvas.m4 (working copy) +@@ -56,9 +56,9 @@ + fi + fi + +-AC_MSG_CHECKING([for Goocanvas]) ++PKG_CHECK_MODULES(GOOCANVAS, goocanvas) + +-LIBS="$saved_LIBS $GOOCANVAS_LDOPTS $GTK_LIBS" ++LIBS="$saved_LIBS $GOOCANVAS_LIBS $GTK_LIBS" + CXXFLAGS="$saved_CXXFLAGS $GOOCANVAS_CFLAGS $GTK_CFLAGS" + # + # AC_TRY_LINK uses the c compiler (set by AC_LANG), so we will +@@ -76,7 +76,7 @@ + if test x$have_goocanvas = xyes; then + + GOOCANVAS_CFLAGS="$GOOCANVAS_CFLAGS" +- GOOCANVAS_LIBS="$GOOCANVAS_LDOPTS" ++ GOOCANVAS_LIBS="$GOOCANVAS_LIBS" + + ifelse([$1], , :, [$1]) + diff --git a/sci-chemistry/coot/files/coot-0.7-mmdb-config.patch b/sci-chemistry/coot/files/coot-0.7-mmdb-config.patch new file mode 100644 index 000000000000..b3b66ab65786 --- /dev/null +++ b/sci-chemistry/coot/files/coot-0.7-mmdb-config.patch @@ -0,0 +1,18 @@ +Index: macros/mmdb.m4 +=================================================================== +--- macros/mmdb.m4 (revision 3579) ++++ macros/mmdb.m4 (working copy) +@@ -86,8 +86,12 @@ + ac_MMDB_LDOPTS="-lmmdb -lm" + fi + +-AC_MSG_CHECKING([for MMDB]) ++PKG_CHECK_MODULES([MMDB],[mmdb >= 1.2]) ++ac_MMDB_LDOPTS="${MMDB_LIBS}" ++ac_MMDB_CXXFLAGS="${MMDB_CFLAGS}" + ++AC_MSG_CHECKING([for CISPEP in MMDB]) ++ + LIBS="$save_LIBS $ac_MMDB_LDOPTS" + CXXFLAGS="$save_CXXFLAGS $ac_MMDB_CXXFLAGS" + # diff --git a/sci-chemistry/coot/files/coot-0.7-ssm.patch b/sci-chemistry/coot/files/coot-0.7-ssm.patch new file mode 100644 index 000000000000..c801da72410a --- /dev/null +++ b/sci-chemistry/coot/files/coot-0.7-ssm.patch @@ -0,0 +1,56 @@ + macros/mmdb-ssm.m4 | 42 +----------------------------------------- + 1 files changed, 1 insertions(+), 41 deletions(-) + +diff --git a/macros/mmdb-ssm.m4 b/macros/mmdb-ssm.m4 +index 1937a16..6ef547c 100644 +--- a/macros/mmdb-ssm.m4 ++++ b/macros/mmdb-ssm.m4 +@@ -22,47 +22,7 @@ + AC_DEFUN([AM_WITH_MMDBSSM], + [AC_PROVIDE([AM_USE_MMDBSSM]) + +- +-AC_ARG_WITH(ssmlib-prefix, +- AC_HELP_STRING( [--with-ssmlib-prefix=PFX], [Prefix where SSMLib has been installed] ), +- [ with_ssmlib_prefix="$withval" ], +- with_ssmlib_prefix="") +- +-AC_MSG_CHECKING([for SSMLib]) +- +-if test x$with_ssmlib_prefix != x; then +- +- MMDBSSM_CXXFLAGS="-DHAVE_SSMLIB" +- MMDBSSM_LIBS="-L$with_ssmlib_prefix/$acl_libdirstem -lssm" +- +-ac_mmdb_dirs=' +-. +-include +-include/ssm +-include/mmdb +-lib +-src +-lib/src +-lib/src/mmdb' +- +- for ac_dir in $ac_mmdb_dirs; do +- if test -r "$with_ssmlib_prefix/$ac_dir/ssm_superpose.h"; then +- ac_MMDBSSM_CXXFLAGS="-I$with_ssmlib_prefix/$ac_dir" +- break +- fi +- done +- +- MMDBSSM_CXXFLAGS="$MMDBSSM_CXXFLAGS $ac_MMDBSSM_CXXFLAGS" +- +-else +- +- MMDBSSM_CXXFLAGS="" +- MMDBSSM_LIBS="" +- with_ssmlib_prefix=no +- +-fi +- +-AC_MSG_RESULT([$with_ssmlib_prefix]) ++PKG_CHECK_MODULES([MMDBSSM],[ssm]) + + AC_SUBST(MMDBSSM_CXXFLAGS) + AC_SUBST(MMDBSSM_LIBS) diff --git a/sci-chemistry/coot/metadata.xml b/sci-chemistry/coot/metadata.xml new file mode 100644 index 000000000000..51fdedab1b38 --- /dev/null +++ b/sci-chemistry/coot/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>sci-chemistry</herd> +</pkgmetadata> |