1 |
jlec 14/10/28 13:10:30 |
2 |
|
3 |
Modified: apbs-1.4.1-manip.patch |
4 |
Added: apbs-1.4.1-python.patch |
5 |
Log: |
6 |
sci-chemistry/apbs: Link python libs completely |
7 |
|
8 |
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!) |
9 |
|
10 |
Revision Changes Path |
11 |
1.2 sci-chemistry/apbs/files/apbs-1.4.1-manip.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/apbs/files/apbs-1.4.1-manip.patch?rev=1.2&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/apbs/files/apbs-1.4.1-manip.patch?rev=1.2&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/apbs/files/apbs-1.4.1-manip.patch?r1=1.1&r2=1.2 |
16 |
|
17 |
Index: apbs-1.4.1-manip.patch |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/apbs/files/apbs-1.4.1-manip.patch,v |
20 |
retrieving revision 1.1 |
21 |
retrieving revision 1.2 |
22 |
diff -u -r1.1 -r1.2 |
23 |
--- apbs-1.4.1-manip.patch 21 Aug 2014 08:50:50 -0000 1.1 |
24 |
+++ apbs-1.4.1-manip.patch 28 Oct 2014 13:10:30 -0000 1.2 |
25 |
@@ -1,6 +1,5 @@ |
26 |
apbs/CMakeLists.txt | 2 +- |
27 |
apbs/tools/CMakeLists.txt | 4 ---- |
28 |
- apbs/tools/manip/CMakeLists.txt | 4 ++-- |
29 |
apbs/tools/mesh/CMakeLists.txt | 4 ++-- |
30 |
4 files changed, 5 insertions(+), 9 deletions(-) |
31 |
|
32 |
@@ -17,18 +16,6 @@ |
33 |
|
34 |
list(APPEND APBS_LIBS "-lstdc++") |
35 |
list(APPEND APBS_LIBS "-L${FETK_PATH}/lib") |
36 |
-diff --git a/apbs/tools/CMakeLists.txt b/apbs/tools/CMakeLists.txt |
37 |
-index 1982a3c..da3b8ee 100644 |
38 |
---- a/apbs/tools/CMakeLists.txt |
39 |
-+++ b/apbs/tools/CMakeLists.txt |
40 |
-@@ -2,7 +2,3 @@ set(EXECUTABLE_OUTPUT_PATH ${TOOLS_PATH}/bin) |
41 |
- |
42 |
- add_subdirectory(mesh) |
43 |
- add_subdirectory(manip) |
44 |
-- |
45 |
--if(ENABLE_PYTHON) |
46 |
-- add_subdirectory(manip) |
47 |
--endif(ENABLE_PYTHON) |
48 |
diff --git a/apbs/tools/manip/CMakeLists.txt b/apbs/tools/manip/CMakeLists.txt |
49 |
index 937dac7..5768cc5 100644 |
50 |
--- a/apbs/tools/manip/CMakeLists.txt |
51 |
|
52 |
|
53 |
|
54 |
1.1 sci-chemistry/apbs/files/apbs-1.4.1-python.patch |
55 |
|
56 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/apbs/files/apbs-1.4.1-python.patch?rev=1.1&view=markup |
57 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/apbs/files/apbs-1.4.1-python.patch?rev=1.1&content-type=text/plain |
58 |
|
59 |
Index: apbs-1.4.1-python.patch |
60 |
=================================================================== |
61 |
apbs/contrib/iapbs/src/apbs_driver.c | 6 +++--- |
62 |
apbs/src/CMakeLists.txt | 1 + |
63 |
apbs/tools/CMakeLists.txt | 2 +- |
64 |
apbs/tools/python/CMakeLists.txt | 1 + |
65 |
apbs/tools/python/apbslib.c | 4 ++-- |
66 |
apbs/tools/python/apbslib.i | 4 ++-- |
67 |
apbs/tools/python/setup.py | 16 ++++++++++++++++ |
68 |
7 files changed, 26 insertions(+), 8 deletions(-) |
69 |
|
70 |
diff --git a/apbs/contrib/iapbs/src/apbs_driver.c b/apbs/contrib/iapbs/src/apbs_driver.c |
71 |
index c9e443b..e1ad67f 100644 |
72 |
--- a/apbs/contrib/iapbs/src/apbs_driver.c |
73 |
+++ b/apbs/contrib/iapbs/src/apbs_driver.c |
74 |
@@ -595,7 +595,7 @@ int apbsdrv_( |
75 |
printPBEPARM(pbeparm); |
76 |
|
77 |
/* Refine mesh */ |
78 |
- if (!preRefineFE(i, nosh, feparm, fetk)) { |
79 |
+ if (!preRefineFE(i, feparm, fetk)) { |
80 |
Vnm_tprint( 2, "Error pre-refining mesh!\n"); |
81 |
VJMPERR1(0); |
82 |
} |
83 |
@@ -609,7 +609,7 @@ int apbsdrv_( |
84 |
Vnm_tprint(1, " Beginning solve-estimate-refine cycle:\n"); |
85 |
for (isolve=0; isolve<feparm->maxsolve; isolve++) { |
86 |
Vnm_tprint(1, " Solve #%d...\n", isolve); |
87 |
- if (!solveFE(i, nosh, pbeparm, feparm, fetk)) { |
88 |
+ if (!solveFE(i, pbeparm, feparm, fetk)) { |
89 |
Vnm_tprint(2, "ERROR SOLVING EQUATION!\n"); |
90 |
VJMPERR1(0); |
91 |
} |
92 |
@@ -622,7 +622,7 @@ int apbsdrv_( |
93 |
/* We're not going to refine if we've hit the max number |
94 |
* of solves */ |
95 |
if (isolve < (feparm->maxsolve)-1) { |
96 |
- if (!postRefineFE(i, nosh, feparm, fetk)) break; |
97 |
+ if (!postRefineFE(i, feparm, fetk)) break; |
98 |
} |
99 |
bytesTotal = Vmem_bytesTotal(); |
100 |
highWater = Vmem_highWaterTotal(); |
101 |
diff --git a/apbs/src/CMakeLists.txt b/apbs/src/CMakeLists.txt |
102 |
index 44d20fa..2577343 100644 |
103 |
--- a/apbs/src/CMakeLists.txt |
104 |
+++ b/apbs/src/CMakeLists.txt |
105 |
@@ -68,6 +68,7 @@ configure_file( |
106 |
|
107 |
if(ENABLE_iAPBS) |
108 |
ADD_LIBRARY(apbs_routines routines.c routines.h) |
109 |
+ target_link_libraries(apbs_routines apbs_mg apbs_fem) |
110 |
INSTALL(TARGETS apbs_routines DESTINATION ${LIBRARY_INSTALL_PATH}) |
111 |
INSTALL(FILES apbscfg.h DESTINATION ${HEADER_INSTALL_PATH}) |
112 |
endif() |
113 |
diff --git a/apbs/tools/CMakeLists.txt b/apbs/tools/CMakeLists.txt |
114 |
index 1982a3c..4acbe68 100644 |
115 |
--- a/apbs/tools/CMakeLists.txt |
116 |
+++ b/apbs/tools/CMakeLists.txt |
117 |
@@ -4,5 +4,5 @@ add_subdirectory(mesh) |
118 |
add_subdirectory(manip) |
119 |
|
120 |
if(ENABLE_PYTHON) |
121 |
- add_subdirectory(manip) |
122 |
+ add_subdirectory(python) |
123 |
endif(ENABLE_PYTHON) |
124 |
diff --git a/apbs/tools/python/CMakeLists.txt b/apbs/tools/python/CMakeLists.txt |
125 |
new file mode 100644 |
126 |
index 0000000..8b13789 |
127 |
--- /dev/null |
128 |
+++ b/apbs/tools/python/CMakeLists.txt |
129 |
@@ -0,0 +1 @@ |
130 |
+ |
131 |
diff --git a/apbs/tools/python/apbslib.c b/apbs/tools/python/apbslib.c |
132 |
index fef5cc8..feaaa2c 100644 |
133 |
--- a/apbs/tools/python/apbslib.c |
134 |
+++ b/apbs/tools/python/apbslib.c |
135 |
@@ -2504,8 +2504,8 @@ static swig_module_info swig_module = {swig_types, 24, 0, 0, 0, 0}; |
136 |
#include "maloc/maloc.h" |
137 |
#include "apbscfg.h" |
138 |
#include "routines.h" |
139 |
-#include "apbs/valist.h" |
140 |
-#include "apbs/vatom.h" |
141 |
+#include "generic/valist.h" |
142 |
+#include "generic/vatom.h" |
143 |
|
144 |
|
145 |
#include <limits.h> |
146 |
diff --git a/apbs/tools/python/apbslib.i b/apbs/tools/python/apbslib.i |
147 |
index 17fe521..44d05ea 100644 |
148 |
--- a/apbs/tools/python/apbslib.i |
149 |
+++ b/apbs/tools/python/apbslib.i |
150 |
@@ -15,8 +15,8 @@ Header files: |
151 |
#include "maloc/maloc.h" |
152 |
#include "apbscfg.h" |
153 |
#include "routines.h" |
154 |
-#include "apbs/valist.h" |
155 |
-#include "apbs/vatom.h" |
156 |
+#include "generic/valist.h" |
157 |
+#include "generic/vatom.h" |
158 |
%} |
159 |
|
160 |
/* |
161 |
diff --git a/apbs/tools/python/setup.py b/apbs/tools/python/setup.py |
162 |
new file mode 100644 |
163 |
index 0000000..4a20198 |
164 |
--- /dev/null |
165 |
+++ b/apbs/tools/python/setup.py |
166 |
@@ -0,0 +1,16 @@ |
167 |
+from distutils.core import setup, Extension |
168 |
+setup(name='apbs', |
169 |
+ version='1.4.1', |
170 |
+ package_dir={'apbs': '', 'vgrid': 'vgrid'}, |
171 |
+ packages=['apbs', 'vgrid'], |
172 |
+ py_modules=['apbslib', 'main', 'noinput'], |
173 |
+ ext_modules=[ |
174 |
+ Extension( |
175 |
+ '_apbslib', |
176 |
+ ['apbslib.i'], |
177 |
+ swig_opts=['-module', 'apbslib', '-I../include'], |
178 |
+ include_dirs=["../../src"], |
179 |
+ libraries=["apbs_generic", "apbs_routines"] |
180 |
+ ) |
181 |
+ ], |
182 |
+ ) |