1 |
Added patches from #212689, #232292 and #246414 to ebuilds for ghemical-2.95 and 2.98. |
2 |
--- |
3 |
sci-chemistry/ghemical/ChangeLog | 18 +++++ |
4 |
sci-chemistry/ghemical/Manifest | 12 +++ |
5 |
.../files/ghemical-2.95-g_threads-246414.patch | 26 +++++++ |
6 |
.../files/ghemical-2.95-import_export-212689.patch | 54 ++++++++++++++ |
7 |
.../ghemical-2.95-libf2c_config_test-232292.patch | 13 ++++ |
8 |
.../files/ghemical-2.98-import_export-212689.patch | 54 ++++++++++++++ |
9 |
.../ghemical-2.98-libf2c_config_test-232292.patch | 13 ++++ |
10 |
sci-chemistry/ghemical/files/ghemical-gcc43.patch | 14 ++++ |
11 |
sci-chemistry/ghemical/ghemical-2.95.ebuild | 74 ++++++++++++++++++++ |
12 |
sci-chemistry/ghemical/ghemical-2.98.ebuild | 74 ++++++++++++++++++++ |
13 |
sci-chemistry/ghemical/metadata.xml | 21 ++++++ |
14 |
11 files changed, 373 insertions(+), 0 deletions(-) |
15 |
create mode 100644 sci-chemistry/ghemical/ChangeLog |
16 |
create mode 100644 sci-chemistry/ghemical/Manifest |
17 |
create mode 100644 sci-chemistry/ghemical/files/ghemical-2.95-g_threads-246414.patch |
18 |
create mode 100644 sci-chemistry/ghemical/files/ghemical-2.95-import_export-212689.patch |
19 |
create mode 100644 sci-chemistry/ghemical/files/ghemical-2.95-libf2c_config_test-232292.patch |
20 |
create mode 100644 sci-chemistry/ghemical/files/ghemical-2.98-import_export-212689.patch |
21 |
create mode 100644 sci-chemistry/ghemical/files/ghemical-2.98-libf2c_config_test-232292.patch |
22 |
create mode 100644 sci-chemistry/ghemical/files/ghemical-gcc43.patch |
23 |
create mode 100644 sci-chemistry/ghemical/ghemical-2.95.ebuild |
24 |
create mode 100644 sci-chemistry/ghemical/ghemical-2.98.ebuild |
25 |
create mode 100644 sci-chemistry/ghemical/metadata.xml |
26 |
|
27 |
diff --git a/sci-chemistry/ghemical/ChangeLog b/sci-chemistry/ghemical/ChangeLog |
28 |
new file mode 100644 |
29 |
index 0000000..012896a |
30 |
--- /dev/null |
31 |
+++ b/sci-chemistry/ghemical/ChangeLog |
32 |
@@ -0,0 +1,18 @@ |
33 |
+# ChangeLog for sci-chemistry/ghemical |
34 |
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
35 |
+# $Header: $ |
36 |
+ |
37 |
+*ghemical-2.98 (06 Feb 2009) |
38 |
+*ghemical-2.95 (06 Feb 2009) |
39 |
+ |
40 |
+ 06 Feb 2009; Reinis Danne <rei4dan@×××××.com> |
41 |
+ +files/ghemical-2.95-g_threads-246414.patch, |
42 |
+ +files/ghemical-2.95-import_export-212689.patch, |
43 |
+ +files/ghemical-2.95-libf2c_config_test-232292.patch, |
44 |
+ +files/ghemical-2.98-import_export-212689.patch, |
45 |
+ +files/ghemical-2.98-libf2c_config_test-232292.patch, |
46 |
+ +files/ghemical-gcc43.patch, +metadata.xml, +ghemical-2.95.ebuild, |
47 |
+ +ghemical-2.98.ebuild: |
48 |
+ Added patches from #212689, #232292 and #246414 to ebuilds for |
49 |
+ ghemical-2.95 and 2.98. |
50 |
+ |
51 |
diff --git a/sci-chemistry/ghemical/Manifest b/sci-chemistry/ghemical/Manifest |
52 |
new file mode 100644 |
53 |
index 0000000..a281a40 |
54 |
--- /dev/null |
55 |
+++ b/sci-chemistry/ghemical/Manifest |
56 |
@@ -0,0 +1,12 @@ |
57 |
+AUX ghemical-2.95-g_threads-246414.patch 553 RMD160 d06e847c0c2f4c445b3e73b624cd81ccec4589b2 SHA1 d523d4e092aaa79581bffeb11283c685065117f0 SHA256 e5bf7ceed065218397b9611c24a390f0ed96ce485a29e945095092dbe38ef188 |
58 |
+AUX ghemical-2.95-import_export-212689.patch 1288 RMD160 abbbce698c8f2eff1e4c35224ccccd8e7411d20b SHA1 5edb4c1f951d0dc6724f78bf5b6a9a544f8c7be7 SHA256 fc487c38e8ac30c2936781aa194b57a2d7f5621ea9af484b7ab734b5dbd819bd |
59 |
+AUX ghemical-2.95-libf2c_config_test-232292.patch 321 RMD160 366614a65c978602af23d7d8ed3c4135bc226ef5 SHA1 cca2e3cc88ec4d38c4e55a5c3a368e0a62a5cd25 SHA256 3497cdf758fac1aa207f1bb7fca9621e2145402ca346bc5406fff49b6d570a33 |
60 |
+AUX ghemical-2.98-import_export-212689.patch 1288 RMD160 abbbce698c8f2eff1e4c35224ccccd8e7411d20b SHA1 5edb4c1f951d0dc6724f78bf5b6a9a544f8c7be7 SHA256 fc487c38e8ac30c2936781aa194b57a2d7f5621ea9af484b7ab734b5dbd819bd |
61 |
+AUX ghemical-2.98-libf2c_config_test-232292.patch 321 RMD160 366614a65c978602af23d7d8ed3c4135bc226ef5 SHA1 cca2e3cc88ec4d38c4e55a5c3a368e0a62a5cd25 SHA256 3497cdf758fac1aa207f1bb7fca9621e2145402ca346bc5406fff49b6d570a33 |
62 |
+AUX ghemical-gcc43.patch 403 RMD160 7ed2b8633e0ec98024e97417cd1751cea2a33a96 SHA1 bcb7336fddf379c202abc61a8423d5c9f9be8d91 SHA256 de2ed1a0190a5fb450c88217fa88c62b99c6243c3547776e0f806c1acd0b0630 |
63 |
+DIST ghemical-2.95.tar.gz 2062097 RMD160 866cb26b7980d9cdfc1f73ddc03240df583ded20 SHA1 ac9419292554103f2b9bc7be8dfc921906134351 SHA256 1083bd02aba1a73fe7008a2f23d1b974147ac95f34f7ef2f90d8d2f9a823e8cc |
64 |
+DIST ghemical-2.98.tar.gz 2065429 RMD160 836e1ec7a45615b58aa4a369d2fc21f5d599fbf4 SHA1 d4212aefe12b4d1f98ce6859e0f0d0a658c64a5d SHA256 2163b321df97698487017d32df77fdf4a9afb385b60f93145fd161a277c7ae82 |
65 |
+EBUILD ghemical-2.95.ebuild 1916 RMD160 c7a1581f426a168184f921b2eec056c3d0bb40f5 SHA1 e8d04b780e343e1415124e30a77d5f54db7e0bee SHA256 48f3967160544ba1cc7a3482d231799e87ef22c5791d0da8101f196878c496c0 |
66 |
+EBUILD ghemical-2.98.ebuild 1903 RMD160 c07a4268703e34f60a0a44d9349840c2e45afa79 SHA1 4094546e55523b25b27c0f916e6f468bf75b3659 SHA256 a34a7731d61fa9a2c66d4d73ec92a59780ccd04cac5ae9d26b591d80e7d760bc |
67 |
+MISC ChangeLog 677 RMD160 d2aa468f0f2e0661a23fcd9b15d220d08ef4f98d SHA1 857d6eeb3649eeaac8bb82c860d931449f56ff9f SHA256 c6abeb4834485ac321c5a32c6fe4c80785b45434ad8478dbc6727d0c7781a0ea |
68 |
+MISC metadata.xml 917 RMD160 5ada96e4b3d836e6525a5613076ea6da69e5daec SHA1 bcaf353e9ba29dfa292785049d643f798e46f24a SHA256 3400c4d52b6b7864856cca423c808bbec063fe565bf570411283d66af3771a70 |
69 |
diff --git a/sci-chemistry/ghemical/files/ghemical-2.95-g_threads-246414.patch b/sci-chemistry/ghemical/files/ghemical-2.95-g_threads-246414.patch |
70 |
new file mode 100644 |
71 |
index 0000000..7e2c594 |
72 |
--- /dev/null |
73 |
+++ b/sci-chemistry/ghemical/files/ghemical-2.95-g_threads-246414.patch |
74 |
@@ -0,0 +1,26 @@ |
75 |
+--- src/gtk_main.cpp.orig 2007-05-23 14:21:19.000000000 +0300 |
76 |
++++ src/gtk_main.cpp 2008-11-11 17:53:02.000000000 +0200 |
77 |
+@@ -33,6 +33,13 @@ |
78 |
+ |
79 |
+ int main(int argc, char ** argv) |
80 |
+ { |
81 |
++#ifdef ENABLE_THREADS |
82 |
++ |
83 |
++ g_thread_init(NULL); |
84 |
++ gdk_threads_init(); |
85 |
++ |
86 |
++#endif // ENABLE_THREADS |
87 |
++ |
88 |
+ GError * error = NULL; |
89 |
+ |
90 |
+ GOptionContext * option_context = g_option_context_new("- a GTK2 molecular modelling program"); |
91 |
+@@ -46,9 +53,6 @@ |
92 |
+ |
93 |
+ #ifdef ENABLE_THREADS |
94 |
+ |
95 |
+- g_thread_init(NULL); |
96 |
+- gdk_threads_init(); |
97 |
+- |
98 |
+ gdk_threads_enter(); |
99 |
+ |
100 |
+ #endif // ENABLE_THREADS |
101 |
diff --git a/sci-chemistry/ghemical/files/ghemical-2.95-import_export-212689.patch b/sci-chemistry/ghemical/files/ghemical-2.95-import_export-212689.patch |
102 |
new file mode 100644 |
103 |
index 0000000..b643eb6 |
104 |
--- /dev/null |
105 |
+++ b/sci-chemistry/ghemical/files/ghemical-2.95-import_export-212689.patch |
106 |
@@ -0,0 +1,54 @@ |
107 |
+--- src/project.cpp 2007-08-16 11:20:00.000000000 +0200 |
108 |
++++ src/project.cpp 2008-11-10 21:39:15.000000000 +0200 |
109 |
+@@ -307,6 +307,12 @@ |
110 |
+ ifstream ifile; |
111 |
+ ostringstream intermed; |
112 |
+ file_trans translator; |
113 |
++ |
114 |
++ // Store the current locale and switch to "C" |
115 |
++ |
116 |
++ static char my_num_locale[32] = "C"; |
117 |
++ strcpy(my_num_locale, setlocale(LC_NUMERIC, NULL)); |
118 |
++ setlocale(LC_NUMERIC, "C"); |
119 |
+ |
120 |
+ if (index == 0) // Automatic detection |
121 |
+ { |
122 |
+@@ -328,7 +334,13 @@ |
123 |
+ } |
124 |
+ |
125 |
+ istringstream interInput(intermed.str()); |
126 |
+- return ReadGPR((* this), interInput, false); |
127 |
++ bool retval = ReadGPR((* this), interInput, false); |
128 |
++ |
129 |
++ // Change back to the original locale |
130 |
++ |
131 |
++ setlocale(LC_NUMERIC, my_num_locale); |
132 |
++ |
133 |
++ return retval; |
134 |
+ } |
135 |
+ |
136 |
+ bool project::ExportFile(const char * filename, int index) |
137 |
+@@ -337,6 +349,12 @@ |
138 |
+ stringstream intermed; |
139 |
+ file_trans translator; |
140 |
+ |
141 |
++ // Store the current locale and switch to "C" |
142 |
++ |
143 |
++ static char my_num_locale[32] = "C"; |
144 |
++ strcpy(my_num_locale, setlocale(LC_NUMERIC, NULL)); |
145 |
++ setlocale(LC_NUMERIC, "C"); |
146 |
++ |
147 |
+ WriteGPR_v100((* this), intermed); // this is for openbabel-1.100.2 |
148 |
+ istringstream interInput(intermed.str()); |
149 |
+ |
150 |
+@@ -359,6 +377,10 @@ |
151 |
+ ofile.close(); |
152 |
+ } |
153 |
+ |
154 |
++ // Change back to the original locale |
155 |
++ |
156 |
++ setlocale(LC_NUMERIC, my_num_locale); |
157 |
++ |
158 |
+ return true; |
159 |
+ } |
160 |
+ |
161 |
diff --git a/sci-chemistry/ghemical/files/ghemical-2.95-libf2c_config_test-232292.patch b/sci-chemistry/ghemical/files/ghemical-2.95-libf2c_config_test-232292.patch |
162 |
new file mode 100644 |
163 |
index 0000000..c847e9e |
164 |
--- /dev/null |
165 |
+++ b/sci-chemistry/ghemical/files/ghemical-2.95-libf2c_config_test-232292.patch |
166 |
@@ -0,0 +1,13 @@ |
167 |
+--- configure.ac.orig 2008-07-17 22:34:51.000000000 -0400 |
168 |
++++ configure.ac 2008-07-17 22:35:56.000000000 -0400 |
169 |
+@@ -83,6 +83,9 @@ |
170 |
+ |
171 |
+ AC_CHECK_LIB(X11,XOpenDisplay,,[AC_MSG_ERROR([X11 library missing])]) |
172 |
+ |
173 |
++## Need libf2c for MOPAC |
174 |
++AC_CHECK_LIB(f2c,i_len) |
175 |
++ |
176 |
+ ## are the rest necessary??? |
177 |
+ |
178 |
+ AC_CHECK_LIB(Xmu,XmuDrawLogo) |
179 |
+ |
180 |
diff --git a/sci-chemistry/ghemical/files/ghemical-2.98-import_export-212689.patch b/sci-chemistry/ghemical/files/ghemical-2.98-import_export-212689.patch |
181 |
new file mode 100644 |
182 |
index 0000000..b643eb6 |
183 |
--- /dev/null |
184 |
+++ b/sci-chemistry/ghemical/files/ghemical-2.98-import_export-212689.patch |
185 |
@@ -0,0 +1,54 @@ |
186 |
+--- src/project.cpp 2007-08-16 11:20:00.000000000 +0200 |
187 |
++++ src/project.cpp 2008-11-10 21:39:15.000000000 +0200 |
188 |
+@@ -307,6 +307,12 @@ |
189 |
+ ifstream ifile; |
190 |
+ ostringstream intermed; |
191 |
+ file_trans translator; |
192 |
++ |
193 |
++ // Store the current locale and switch to "C" |
194 |
++ |
195 |
++ static char my_num_locale[32] = "C"; |
196 |
++ strcpy(my_num_locale, setlocale(LC_NUMERIC, NULL)); |
197 |
++ setlocale(LC_NUMERIC, "C"); |
198 |
+ |
199 |
+ if (index == 0) // Automatic detection |
200 |
+ { |
201 |
+@@ -328,7 +334,13 @@ |
202 |
+ } |
203 |
+ |
204 |
+ istringstream interInput(intermed.str()); |
205 |
+- return ReadGPR((* this), interInput, false); |
206 |
++ bool retval = ReadGPR((* this), interInput, false); |
207 |
++ |
208 |
++ // Change back to the original locale |
209 |
++ |
210 |
++ setlocale(LC_NUMERIC, my_num_locale); |
211 |
++ |
212 |
++ return retval; |
213 |
+ } |
214 |
+ |
215 |
+ bool project::ExportFile(const char * filename, int index) |
216 |
+@@ -337,6 +349,12 @@ |
217 |
+ stringstream intermed; |
218 |
+ file_trans translator; |
219 |
+ |
220 |
++ // Store the current locale and switch to "C" |
221 |
++ |
222 |
++ static char my_num_locale[32] = "C"; |
223 |
++ strcpy(my_num_locale, setlocale(LC_NUMERIC, NULL)); |
224 |
++ setlocale(LC_NUMERIC, "C"); |
225 |
++ |
226 |
+ WriteGPR_v100((* this), intermed); // this is for openbabel-1.100.2 |
227 |
+ istringstream interInput(intermed.str()); |
228 |
+ |
229 |
+@@ -359,6 +377,10 @@ |
230 |
+ ofile.close(); |
231 |
+ } |
232 |
+ |
233 |
++ // Change back to the original locale |
234 |
++ |
235 |
++ setlocale(LC_NUMERIC, my_num_locale); |
236 |
++ |
237 |
+ return true; |
238 |
+ } |
239 |
+ |
240 |
diff --git a/sci-chemistry/ghemical/files/ghemical-2.98-libf2c_config_test-232292.patch b/sci-chemistry/ghemical/files/ghemical-2.98-libf2c_config_test-232292.patch |
241 |
new file mode 100644 |
242 |
index 0000000..c847e9e |
243 |
--- /dev/null |
244 |
+++ b/sci-chemistry/ghemical/files/ghemical-2.98-libf2c_config_test-232292.patch |
245 |
@@ -0,0 +1,13 @@ |
246 |
+--- configure.ac.orig 2008-07-17 22:34:51.000000000 -0400 |
247 |
++++ configure.ac 2008-07-17 22:35:56.000000000 -0400 |
248 |
+@@ -83,6 +83,9 @@ |
249 |
+ |
250 |
+ AC_CHECK_LIB(X11,XOpenDisplay,,[AC_MSG_ERROR([X11 library missing])]) |
251 |
+ |
252 |
++## Need libf2c for MOPAC |
253 |
++AC_CHECK_LIB(f2c,i_len) |
254 |
++ |
255 |
+ ## are the rest necessary??? |
256 |
+ |
257 |
+ AC_CHECK_LIB(Xmu,XmuDrawLogo) |
258 |
+ |
259 |
diff --git a/sci-chemistry/ghemical/files/ghemical-gcc43.patch b/sci-chemistry/ghemical/files/ghemical-gcc43.patch |
260 |
new file mode 100644 |
261 |
index 0000000..93557d4 |
262 |
--- /dev/null |
263 |
+++ b/sci-chemistry/ghemical/files/ghemical-gcc43.patch |
264 |
@@ -0,0 +1,14 @@ |
265 |
+--- src-orig/pangofont_wcl.cpp 2008-11-30 16:15:23.932475487 -0600 |
266 |
++++ src/pangofont_wcl.cpp 2008-11-30 16:16:09.620396370 -0600 |
267 |
+@@ -22,6 +22,10 @@ |
268 |
+ |
269 |
+ #include <gtk/gtkgl.h> |
270 |
+ |
271 |
++#include <string.h> |
272 |
++ |
273 |
++#include <cstdlib> |
274 |
++using namespace std; |
275 |
+ /*################################################################################################*/ |
276 |
+ |
277 |
+ pangofont_wcl::pangofont_wcl(ogl_camera * cam) : |
278 |
+ |
279 |
diff --git a/sci-chemistry/ghemical/ghemical-2.95.ebuild b/sci-chemistry/ghemical/ghemical-2.95.ebuild |
280 |
new file mode 100644 |
281 |
index 0000000..63b6fbd |
282 |
--- /dev/null |
283 |
+++ b/sci-chemistry/ghemical/ghemical-2.95.ebuild |
284 |
@@ -0,0 +1,74 @@ |
285 |
+# Copyright 1999-2009 Gentoo Foundation |
286 |
+# Distributed under the terms of the GNU General Public License v2 |
287 |
+# $Header: $ |
288 |
+ |
289 |
+inherit eutils flag-o-matic autotools |
290 |
+ |
291 |
+DESCRIPTION="Chemical quantum mechanics and molecular mechanics" |
292 |
+HOMEPAGE="http://bioinformatics.org/ghemical/" |
293 |
+ |
294 |
+SRC_URI="http://bioinformatics.org/ghemical/download/current/${P}.tar.gz" |
295 |
+LICENSE="GPL-2" |
296 |
+ |
297 |
+SLOT="0" |
298 |
+ |
299 |
+KEYWORDS="~amd64 ~x86" |
300 |
+IUSE="threads openbabel seamonkey" |
301 |
+RDEPEND="virtual/glut |
302 |
+ virtual/glu |
303 |
+ virtual/opengl |
304 |
+ sci-chemistry/mpqc |
305 |
+ x11-libs/libICE |
306 |
+ x11-libs/libSM |
307 |
+ x11-libs/libX11 |
308 |
+ x11-libs/libXext |
309 |
+ x11-libs/libXi |
310 |
+ x11-libs/libXmu |
311 |
+ x11-libs/libXt |
312 |
+ x11-libs/pango |
313 |
+ >=x11-libs/gtk+-2.6 |
314 |
+ >=x11-libs/gtkglext-1.0.5 |
315 |
+ >=gnome-base/libglade-2.4 |
316 |
+ >=sci-libs/libghemical-2.96 |
317 |
+ >=x11-libs/liboglappth-0.96 |
318 |
+ openbabel? ( >=sci-chemistry/openbabel-2 ) |
319 |
+ threads? ( >=dev-libs/glib-2.4 )" |
320 |
+ |
321 |
+DEPEND="${RDEPEND} |
322 |
+ >=dev-util/pkgconfig-0.15" |
323 |
+ |
324 |
+src_unpack() { |
325 |
+ unpack ${A} |
326 |
+ cd "${S}" |
327 |
+ |
328 |
+ epatch "${FILESDIR}/${P}-import_export-212689.patch" || die "Faild to apply ${P}-import_export-212689.patch" |
329 |
+ epatch "${FILESDIR}/${P}-libf2c_config_test-232292.patch" || die "Failed to apply ${P}-libf2c_config_test-232292.patch" |
330 |
+ epatch "${FILESDIR}/${P}-g_threads-246414.patch" || die "Failed to apply ${P}-g_threads-246414.patch" |
331 |
+ |
332 |
+ eautoreconf |
333 |
+} |
334 |
+ |
335 |
+src_compile() { |
336 |
+ |
337 |
+# With amd64, if you want gamess I recommend adding gamess and gtk-gamess to package.provided for now. |
338 |
+ |
339 |
+# Change the built-in help browser. |
340 |
+ if use seamonkey ; then |
341 |
+ sed -i -e 's|mozilla|seamonkey|g' src/gtk_app.cpp || die "sed failed for seamonkey!" |
342 |
+ else |
343 |
+ sed -i -e 's|mozilla|firefox|g' src/gtk_app.cpp || die "sed failed for seamonkey!" |
344 |
+ fi |
345 |
+ |
346 |
+ # For libf2c |
347 |
+ append-ldflags -Xlinker -defsym -Xlinker MAIN__=main |
348 |
+ |
349 |
+ econf \ |
350 |
+ $(use_enable openbabel) \ |
351 |
+ $(use_enable threads) \ |
352 |
+ || die "configure failed" |
353 |
+ emake || die "make failed" |
354 |
+} |
355 |
+ |
356 |
+src_install() { |
357 |
+ emake DESTDIR="${D}" install || die "install failed" |
358 |
+} |
359 |
diff --git a/sci-chemistry/ghemical/ghemical-2.98.ebuild b/sci-chemistry/ghemical/ghemical-2.98.ebuild |
360 |
new file mode 100644 |
361 |
index 0000000..c07d72c |
362 |
--- /dev/null |
363 |
+++ b/sci-chemistry/ghemical/ghemical-2.98.ebuild |
364 |
@@ -0,0 +1,74 @@ |
365 |
+# Copyright 1999-2009 Gentoo Foundation |
366 |
+# Distributed under the terms of the GNU General Public License v2 |
367 |
+# $Header: $ |
368 |
+ |
369 |
+inherit eutils flag-o-matic autotools |
370 |
+ |
371 |
+DESCRIPTION="Chemical quantum mechanics and molecular mechanics" |
372 |
+HOMEPAGE="http://bioinformatics.org/ghemical/" |
373 |
+ |
374 |
+SRC_URI="http://bioinformatics.org/ghemical/download/current/${P}.tar.gz" |
375 |
+LICENSE="GPL-2" |
376 |
+ |
377 |
+SLOT="0" |
378 |
+ |
379 |
+KEYWORDS="~amd64 ~x86" |
380 |
+IUSE="threads openbabel seamonkey" |
381 |
+RDEPEND="virtual/glut |
382 |
+ virtual/glu |
383 |
+ virtual/opengl |
384 |
+ sci-chemistry/mpqc |
385 |
+ x11-libs/libICE |
386 |
+ x11-libs/libSM |
387 |
+ x11-libs/libX11 |
388 |
+ x11-libs/libXext |
389 |
+ x11-libs/libXi |
390 |
+ x11-libs/libXmu |
391 |
+ x11-libs/libXt |
392 |
+ x11-libs/pango |
393 |
+ >=x11-libs/gtk+-2.6 |
394 |
+ >=x11-libs/gtkglext-1.0.5 |
395 |
+ >=gnome-base/libglade-2.4 |
396 |
+ >=sci-libs/libghemical-2.96 |
397 |
+ >=x11-libs/liboglappth-0.96 |
398 |
+ openbabel? ( >=sci-chemistry/openbabel-2 ) |
399 |
+ threads? ( >=dev-libs/glib-2.4 )" |
400 |
+ |
401 |
+DEPEND="${RDEPEND} |
402 |
+ >=dev-util/pkgconfig-0.15" |
403 |
+ |
404 |
+src_unpack() { |
405 |
+ unpack ${A} |
406 |
+ cd "${S}" |
407 |
+ |
408 |
+ epatch "${FILESDIR}/ghemical-gcc43.patch" || die "Failed to apply ghemical-gcc43.patch" |
409 |
+ epatch "${FILESDIR}/${P}-import_export-212689.patch" || die "Failed to apply ${P}-import_export-212689.patch" |
410 |
+ epatch "${FILESDIR}/${P}-libf2c_config_test-232292.patch" || die "Failed to apply ${P}-libf2c_config_test-232292.patch" |
411 |
+ |
412 |
+ eautoreconf |
413 |
+} |
414 |
+ |
415 |
+src_compile() { |
416 |
+ |
417 |
+# With amd64, if you want gamess I recommend adding gamess and gtk-gamess to package.provided for now. |
418 |
+ |
419 |
+# Change the built-in help browser. |
420 |
+ if use seamonkey ; then |
421 |
+ sed -i -e 's|mozilla|seamonkey|g' src/gtk_app.cpp || die "sed failed for seamonkey!" |
422 |
+ else |
423 |
+ sed -i -e 's|mozilla|firefox|g' src/gtk_app.cpp || die "sed failed for seamonkey!" |
424 |
+ fi |
425 |
+ |
426 |
+ # For libf2c |
427 |
+ append-ldflags -Xlinker -defsym -Xlinker MAIN__=main |
428 |
+ |
429 |
+ econf \ |
430 |
+ $(use_enable openbabel) \ |
431 |
+ $(use_enable threads) \ |
432 |
+ || die "configure failed" |
433 |
+ emake || die "make failed" |
434 |
+} |
435 |
+ |
436 |
+src_install() { |
437 |
+ emake DESTDIR="${D}" install || die "install failed" |
438 |
+} |
439 |
diff --git a/sci-chemistry/ghemical/metadata.xml b/sci-chemistry/ghemical/metadata.xml |
440 |
new file mode 100644 |
441 |
index 0000000..9627988 |
442 |
--- /dev/null |
443 |
+++ b/sci-chemistry/ghemical/metadata.xml |
444 |
@@ -0,0 +1,21 @@ |
445 |
+<?xml version="1.0" encoding="UTF-8"?> |
446 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
447 |
+<pkgmetadata> |
448 |
+<herd>sci-chemistry</herd> |
449 |
+<longdescription> |
450 |
+Ghemical supports both quantum-mechanics (semi-empirical and ab initio) models |
451 |
+and molecular mechanics models (there is an experimental Tripos 5.2-like force |
452 |
+field for organic molecules). Also a tool for reduced protein models is |
453 |
+included. Geometry optimization, molecular dynamics and a large set of |
454 |
+visualization tools are currently available. |
455 |
+</longdescription> |
456 |
+<use> |
457 |
+ <flag name='gamess'>Add GAMESS interface for QM/MM |
458 |
+ (<pkg>sci-chemistry/gamess</pkg>)</flag> |
459 |
+ <flag name='mopac7'>Apply compilation fix for |
460 |
+ <pkg>sci-chemistry/mopac7</pkg> support</flag> |
461 |
+ <flag name='openbabel'>Use <pkg>sci-chemistry/openbabel</pkg> for file |
462 |
+ conversions</flag> |
463 |
+ <flag name='toolbar'>Build the shortcuts toolbar</flag> |
464 |
+</use> |
465 |
+</pkgmetadata> |
466 |
-- |
467 |
1.6.0.6 |