aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher (jlec) <jlec@j-schmitz.net>2009-09-13 20:15:10 +0200
committerJustin Lecher (jlec) <jlec@j-schmitz.net>2009-09-13 22:16:43 +0200
commitdbd65dad7c03a2aca0614fd49776b65a0deffe89 (patch)
treea3fcee68446078dd13684b0500cdf0869cb55e43 /sci-chemistry/coot/files
parentprelimary src_test fix (diff)
downloadsci-dbd65dad7c03a2aca0614fd49776b65a0deffe89.tar.gz
sci-dbd65dad7c03a2aca0614fd49776b65a0deffe89.tar.bz2
sci-dbd65dad7c03a2aca0614fd49776b65a0deffe89.zip
src_test is working on coot
Diffstat (limited to 'sci-chemistry/coot/files')
-rw-r--r--sci-chemistry/coot/files/9999-test-rama.patch76
1 files changed, 60 insertions, 16 deletions
diff --git a/sci-chemistry/coot/files/9999-test-rama.patch b/sci-chemistry/coot/files/9999-test-rama.patch
index 9693dda5e..d2b43cf8c 100644
--- a/sci-chemistry/coot/files/9999-test-rama.patch
+++ b/sci-chemistry/coot/files/9999-test-rama.patch
@@ -1,18 +1,62 @@
-Index: ligand/test-ligand.cc
+#Index: ligand/test-ligand.cc
+#===================================================================
+#--- ligand/test-ligand.cc (revision 2297)
+#+++ ligand/test-ligand.cc (working copy)
+#@@ -324,10 +324,16 @@
+#
+# void rotamer_tables() {
+#
+#- std::string dir = "../../coot/rama-data";
+#+ std::string tables_dir = PKGDATADIR;
+#+ // For binary installers, they use the environment variable:
+#+ char *env = getenv("COOT_DATA_DIR");
+#+ if (env)
+#+ tables_dir = std::string(env);
+#+
+#+ tables_dir += "/rama-data";
+#+
+# coot::rotamer_probability_tables tables;
+#- tables.fill_tables(dir);
+#-
+#+ tables.fill_tables(tables_dir);
+# }
+#
+# int main(int argc, char **argv) {
+#Index: src/graphics-info.h
+#===================================================================
+#--- src/graphics-info.h (revision 2297)
+#+++ src/graphics-info.h (working copy)
+#@@ -798,12 +798,11 @@
+# // guess we shall rather use COOT_DATA_DIR and only as fallback PKGDATADIR?!
+# // maybe only for windows!?
+# std::string tables_dir = PKGDATADIR;
+#-#ifdef WINDOWS_MINGW
+#+
+# char *data_dir = getenv("COOT_DATA_DIR");
+#- if (data_dir) {
+#- tables_dir = data_dir;
+#- }
+#-#endif // MINGW
+#+ if (data_dir)
+#+ tables_dir = data_dir;
+#+
+# tables_dir += "/rama-data";
+# rot_prob_tables.set_tables_dir(tables_dir);
+#
+Index: src/graphics-info.h
===================================================================
---- ligand/test-ligand.cc (revision 2293)
-+++ ligand/test-ligand.cc (working copy)
-@@ -324,9 +324,11 @@
-
- void rotamer_tables() {
-
-- std::string dir = "../../coot/rama-data";
-+ std::string tables_dir = COOT_DATA_DIR;
-+ tables_dir += "/rama-data";
-+
- coot::rotamer_probability_tables tables;
-- tables.fill_tables(dir);
-+ tables.fill_tables(tables_dir);
-
- }
+--- src/graphics-info.h (revision 2296)
++++ src/graphics-info.h (working copy)
+@@ -798,12 +798,10 @@
+ // guess we shall rather use COOT_DATA_DIR and only as fallback PKGDATADIR?!
+ // maybe only for windows!?
+ std::string tables_dir = PKGDATADIR;
+-#ifdef WINDOWS_MINGW
+ char *data_dir = getenv("COOT_DATA_DIR");
+ if (data_dir) {
+ tables_dir = data_dir;
+ }
+-#endif // MINGW
+ tables_dir += "/rama-data";
+ rot_prob_tables.set_tables_dir(tables_dir);