summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2012-03-06 15:31:19 +0000
committerJustin Lecher <jlec@gentoo.org>2012-03-06 15:31:19 +0000
commit6ab373145104b030bf5a27e0fac60c55e507da6e (patch)
tree353fb126f898b96b65e49f2fecad7d3e90e3cae5 /sci-chemistry/coot
parent[bump] dev-perl/Email-Sender-0.110.5 (diff)
downloadhistorical-6ab373145104b030bf5a27e0fac60c55e507da6e.tar.gz
historical-6ab373145104b030bf5a27e0fac60c55e507da6e.tar.bz2
historical-6ab373145104b030bf5a27e0fac60c55e507da6e.zip
Adding pre release version from svn
Package-Manager: portage-2.2.0_alpha90/cvs/Linux x86_64
Diffstat (limited to 'sci-chemistry/coot')
-rw-r--r--sci-chemistry/coot/ChangeLog14
-rw-r--r--sci-chemistry/coot/Manifest26
-rw-r--r--sci-chemistry/coot/coot-0.6.2-r1.ebuild12
-rw-r--r--sci-chemistry/coot/coot-0.7_pre4040.ebuild170
-rw-r--r--sci-chemistry/coot/files/coot-0.7_pre4040-clipper-config.patch17
-rw-r--r--sci-chemistry/coot/files/coot-0.7_pre4040-gl.patch10
-rw-r--r--sci-chemistry/coot/files/coot-0.7_pre4040-goocanvas.patch25
-rw-r--r--sci-chemistry/coot/files/coot-0.7_pre4040-libpng-1.5.patch29
-rw-r--r--sci-chemistry/coot/files/coot-0.7_pre4040-mmdb-config.patch18
-rw-r--r--sci-chemistry/coot/files/coot-0.7_pre4040-ssm.patch56
-rw-r--r--sci-chemistry/coot/files/coot-0.7_pre4040-test.patch16
11 files changed, 373 insertions, 20 deletions
diff --git a/sci-chemistry/coot/ChangeLog b/sci-chemistry/coot/ChangeLog
index 76d80d4a687d..957c8f24cffd 100644
--- a/sci-chemistry/coot/ChangeLog
+++ b/sci-chemistry/coot/ChangeLog
@@ -1,6 +1,16 @@
# ChangeLog for sci-chemistry/coot
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/coot/ChangeLog,v 1.50 2011/10/23 20:07:55 ssuominen Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/coot/ChangeLog,v 1.51 2012/03/06 15:31:19 jlec Exp $
+
+*coot-0.7_pre4040 (06 Mar 2012)
+
+ 06 Mar 2012; Justin Lecher <jlec@gentoo.org> coot-0.6.2-r1.ebuild,
+ +coot-0.7_pre4040.ebuild, +files/coot-0.7_pre4040-clipper-config.patch,
+ +files/coot-0.7_pre4040-gl.patch, +files/coot-0.7_pre4040-goocanvas.patch,
+ +files/coot-0.7_pre4040-libpng-1.5.patch,
+ +files/coot-0.7_pre4040-mmdb-config.patch, +files/coot-0.7_pre4040-ssm.patch,
+ +files/coot-0.7_pre4040-test.patch:
+ Adding pre release version from svn
23 Oct 2011; Samuli Suominen <ssuominen@gentoo.org>
-files/0.6.1-libpng14.patch, -coot-0.6.1.ebuild:
diff --git a/sci-chemistry/coot/Manifest b/sci-chemistry/coot/Manifest
index 76ab9533ee3b..4872f7e38622 100644
--- a/sci-chemistry/coot/Manifest
+++ b/sci-chemistry/coot/Manifest
@@ -1,5 +1,5 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
+Hash: SHA512
AUX 0.6.2-clipper-config.patch 431 RMD160 7a00939760bc4c062bbde1a65f53b9556b93c3bc SHA1 0d72c4c898fd29802c74d237b54f715444922956 SHA256 9ae9129e733d845ad2e4dd505bc5e0987147fc3a5e5dd2457b5857643809db2f
AUX 0.6.2-gl.patch 383 RMD160 6460e87e4da57ff845f96f072dec1354ed117bee SHA1 00bc0bbfc7d4fb00ebc8477941469bef2ed6b670 SHA256 9d47a6cf2d0c7644b945f88acdc7af146df4f9a5a8f883a0e72e1bc8ccf8b380
@@ -7,20 +7,26 @@ AUX 0.6.2-libpng15.patch 1396 RMD160 a7295bf9b312df0f19f82aec3f9458b4d7881606 SH
AUX 0.6.2-mmdb-config.patch 432 RMD160 8418198b08d15af9ee5d80b15ea46bb9efd2b973 SHA1 3e6f5c888b476d8d37da4effa67a8053784a7a3c SHA256 41484424f2f7f61b0555c893a51884d02f7bd471e70c4c0903c8740dcc273f77
AUX 0.6.2-ssm.patch 1276 RMD160 8c7eef0034efc2c57bd774fe8ebb1bd0ba9c7aa2 SHA1 8812f35fba16a45b21ecce5243fd26d6105e29e3 SHA256 42f1098b0d56f85125293ca24410061e7a9bee10c94ba6e9fd3496439368bf75
AUX 0.6.2-test.patch 457 RMD160 1a3e0956d8b7f051fdd964524c0ba9eabf8c2aca SHA1 a8f9584be09cc58e7cb55801115e9649b05aa910 SHA256 494ef09e407c3047145c250c70b90c7679a1c5b9f84c57a680e40580bd980397
+AUX coot-0.7_pre4040-clipper-config.patch 431 RMD160 7a00939760bc4c062bbde1a65f53b9556b93c3bc SHA1 0d72c4c898fd29802c74d237b54f715444922956 SHA256 9ae9129e733d845ad2e4dd505bc5e0987147fc3a5e5dd2457b5857643809db2f
+AUX coot-0.7_pre4040-gl.patch 383 RMD160 6460e87e4da57ff845f96f072dec1354ed117bee SHA1 00bc0bbfc7d4fb00ebc8477941469bef2ed6b670 SHA256 9d47a6cf2d0c7644b945f88acdc7af146df4f9a5a8f883a0e72e1bc8ccf8b380
+AUX coot-0.7_pre4040-goocanvas.patch 702 RMD160 9b26975eb658f15dfd806e47be9c11bcb7f850db SHA1 37bb70847ced34b754fe7cf5fea878b93bb6ed12 SHA256 162b21a3afb2d523df315ec021faf7a6497eb3b4fe00f90f601527fe1c22621a
+AUX coot-0.7_pre4040-libpng-1.5.patch 1396 RMD160 a7295bf9b312df0f19f82aec3f9458b4d7881606 SHA1 dfa904f324398cc4c7169ec223fb1cec9e72f482 SHA256 e1a1a172f92702aab5921943201baeba36643f9c5bbf1aa40151c4d4dd9dfee6
+AUX coot-0.7_pre4040-mmdb-config.patch 479 RMD160 8026b5420940726547200e51db7ce82d7706702c SHA1 e1b1c9ea87fdb2fa5d6c7301d397986d6a9afc4a SHA256 0b7d61f9c5f9664672286e82a790d4dea1673ed1537ef62b59142ced97685d82
+AUX coot-0.7_pre4040-ssm.patch 1276 RMD160 8c7eef0034efc2c57bd774fe8ebb1bd0ba9c7aa2 SHA1 8812f35fba16a45b21ecce5243fd26d6105e29e3 SHA256 42f1098b0d56f85125293ca24410061e7a9bee10c94ba6e9fd3496439368bf75
+AUX coot-0.7_pre4040-test.patch 457 RMD160 1a3e0956d8b7f051fdd964524c0ba9eabf8c2aca SHA1 a8f9584be09cc58e7cb55801115e9649b05aa910 SHA256 494ef09e407c3047145c250c70b90c7679a1c5b9f84c57a680e40580bd980397
DIST coot-0.6.2.tar.gz 13597123 RMD160 707eb3df47681a011f42874210b940329a748bc7 SHA1 46b663125cef4c01387330d144e49acb0b0b5709 SHA256 d2f55db4f75c721d120ea33a4ca42c1abf246dff29a75b7f189e604e32709e78
+DIST coot-0.7_pre4040.tar.xz 12318188 RMD160 cb92e4192ce8ede97b38791cd05e958205fca363 SHA1 b3b8c5260b6d67d401085756b0532dc76df0ffe6 SHA256 c1ca06199da2b1531cdff7ecc08b336b8d50d265b3c8ed9d37da656f6c4abf8a
DIST greg-data-0.6.2.tar.gz 8044588 RMD160 065acee98384540d0c2ffaf2511dfd1aa400b11c SHA1 92cec24dab594d8024f41047af2bf6760e9e7d00 SHA256 c9fedf6e1fa60fda178753bbfb539671c274f64d4daca2b63ab49c59bd4c5856
-EBUILD coot-0.6.2-r1.ebuild 4219 RMD160 8b72c7448aae3040e560cd3844c720648e33801b SHA1 8beb6b3d74975b883c65492e9fb72636f4c5e3a6 SHA256 061496180fb395bf803af9e40dc86e8142870337d4a0913226e0082135307101
+DIST greg-data-0.7_pre4040.tar.gz 8046573 RMD160 66219ccad8edf27088959a4d5e5a4d3d74452524 SHA1 2c9cf8edde7eaf3b623758022ccc1c29bcc9c1fc SHA256 c343ef4a5e4d70c5f1e5af70a7d26d8b66f579c11b208019256bf6478ddb309c
+EBUILD coot-0.6.2-r1.ebuild 4186 RMD160 3101a6d8f3c047875b2b6b14f98e5bf21f7847ca SHA1 c64c755a5ec3c6d7061273402b3cbd8d5ee18b67 SHA256 562ef504e61946a6d477a999461abae6cb989c6ad10dd6ed5a7f6aac75750452
EBUILD coot-0.6.2.ebuild 4137 RMD160 9db72443a58fc996cc93870578beabec20364e78 SHA1 04ea15f0b045f8cb8d158fed84600b2ec6c2bb89 SHA256 7e1b4547c5c8eedb081991b30c3dbc2fc1abd29e73a193fcc3027f2b93445319
-MISC ChangeLog 7353 RMD160 d9f936a6a603356d1318babcdc10fa1963f5dabf SHA1 98107221517c4423c0d0530b92b2bd7c8ee8b141 SHA256 4d5b54ecb95d9e0f1c44980176197b42e5eca09f3af6ce35f9ac39159569e93c
+EBUILD coot-0.7_pre4040.ebuild 4288 RMD160 1bdd561f17bd9acd78200a58447587d7488fd75f SHA1 e81352cfc0145eb3b84ebb6b2886b7236c7e998c SHA256 c580ecab1be49107716d3aa0bbeb23e796c96e884a42f76481dfd40380eecda9
+MISC ChangeLog 7802 RMD160 465cbeff59c40d30eb3f7d1ecdad5c0972432309 SHA1 b0890d996ca5de7718b8dc25840bfd493879372c SHA256 5c17a4f43dd5424a2d20c170e4e6647631e66720ba6bacdd36fd75ba336db195
MISC metadata.xml 167 RMD160 ea4003a55d6e2079381a540c441fc59cde29025a SHA1 3bc6dc4dd68f7de22828138e62aa117387b1765d SHA256 f313eeec4ebffac500b57a98a225e32c77489fc826a50494749b6cdeec28e3e8
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
-iQEcBAEBAgAGBQJOpHPtAAoJEEdUh39IaPFNdPMH/3Oc633XaBvgGQhMegu+frrF
-PQzGw2upzLnBLEUC2+7nwPmvK/WWM21qa6vXIvJxW8hVJwVDPJmb/mX7k5nyqfQi
-NmyyCl9kWZ0FCa9eoJhZcnQThui7VcIO6K2flarNatmYf9m+3lpAy2T6g8JdN5kY
-Oe6CucfdWnTzc/p/eyVOkSzdZ2V6FS52rPzai1OuEep5CQXSr0aYB871EL/E3Qcl
-CBNfvmKVnZgyLjaHUNAEHw4BSvloVu5K1EYPf5PO3owd71OTFudaNGXniKgChGdS
-mvMJjIElTQT7xf8JmgGzE2l2QnvELIhSLJKmwaVm0Ezcb+YlCFErmonD8ZOrByI=
-=Jj4L
+iEYEAREKAAYFAk9WLc0ACgkQgAnW8HDreRbdSACeP9dH2j5qstpfClfhYJD0gcXn
+nTQAn11xBZFCXMvxFVZ83fQ3Gur0w/E/
+=Z3Fo
-----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
index 077441b0e84a..be31a70d7af9 100644
--- a/sci-chemistry/coot/coot-0.6.2-r1.ebuild
+++ b/sci-chemistry/coot/coot-0.6.2-r1.ebuild
@@ -1,11 +1,13 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 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.2 2011/10/07 09:37:25 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/coot/coot-0.6.2-r1.ebuild,v 1.3 2012/03/06 15:31:19 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})
@@ -86,12 +88,6 @@ PATCHES=(
"${FILESDIR}"/${PV}-libpng15.patch
)
-src_prepare() {
- autotools-utils_src_prepare
-
- eautoreconf
-}
-
src_configure() {
# All the --with's are used to activate various parts.
# Yes, this is broken behavior.
diff --git a/sci-chemistry/coot/coot-0.7_pre4040.ebuild b/sci-chemistry/coot/coot-0.7_pre4040.ebuild
new file mode 100644
index 000000000000..519ac27bad9f
--- /dev/null
+++ b/sci-chemistry/coot/coot-0.7_pre4040.ebuild
@@ -0,0 +1,170 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/coot/coot-0.7_pre4040.ebuild,v 1.1 2012/03/06 15:31:19 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://www.biop.ox.ac.uk/coot/"
+SRC_URI="
+ http://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz
+ 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-20090520
+ >=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/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 )"
+
+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}-gl.patch
+ "${FILESDIR}"/${P}-mmdb-config.patch
+ "${FILESDIR}"/${P}-test.patch
+ "${FILESDIR}"/${P}-ssm.patch
+ "${FILESDIR}"/${P}-libpng-1.5.patch
+ )
+
+src_prepare() {
+ autotools-utils_src_prepare
+
+ cat >> src/svn-revision.cc <<- EOF
+ extern "C" {
+ int svn_revision() {
+ return ${ESVN_WC_REVISION:-0};
+ }
+ }
+ EOF
+}
+
+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
+ 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/files/coot-0.7_pre4040-clipper-config.patch b/sci-chemistry/coot/files/coot-0.7_pre4040-clipper-config.patch
new file mode 100644
index 000000000000..311b5e88d84e
--- /dev/null
+++ b/sci-chemistry/coot/files/coot-0.7_pre4040-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_pre4040-gl.patch b/sci-chemistry/coot/files/coot-0.7_pre4040-gl.patch
new file mode 100644
index 000000000000..bbd858c646df
--- /dev/null
+++ b/sci-chemistry/coot/files/coot-0.7_pre4040-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/coot-0.7_pre4040-goocanvas.patch b/sci-chemistry/coot/files/coot-0.7_pre4040-goocanvas.patch
new file mode 100644
index 000000000000..ce0d4a00abba
--- /dev/null
+++ b/sci-chemistry/coot/files/coot-0.7_pre4040-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_pre4040-libpng-1.5.patch b/sci-chemistry/coot/files/coot-0.7_pre4040-libpng-1.5.patch
new file mode 100644
index 000000000000..bddd251698de
--- /dev/null
+++ b/sci-chemistry/coot/files/coot-0.7_pre4040-libpng-1.5.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/coot-0.7_pre4040-mmdb-config.patch b/sci-chemistry/coot/files/coot-0.7_pre4040-mmdb-config.patch
new file mode 100644
index 000000000000..b3b66ab65786
--- /dev/null
+++ b/sci-chemistry/coot/files/coot-0.7_pre4040-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_pre4040-ssm.patch b/sci-chemistry/coot/files/coot-0.7_pre4040-ssm.patch
new file mode 100644
index 000000000000..c801da72410a
--- /dev/null
+++ b/sci-chemistry/coot/files/coot-0.7_pre4040-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/coot-0.7_pre4040-test.patch b/sci-chemistry/coot/files/coot-0.7_pre4040-test.patch
new file mode 100644
index 000000000000..8cb79e65d767
--- /dev/null
+++ b/sci-chemistry/coot/files/coot-0.7_pre4040-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) {