updated on Mon Jan 23 16:10:15 UTC 2012
[aur-mirror.git] / pyamanith / pyamanith-0.3.35-build.patch
blob24296b6a901f45e479e199cf043c42ff36b42603
1 --- include/pyamanith.h 2006-03-28 06:43:22.000000000 +1000
2 +++ include/pyamanith.h 2008-04-05 01:55:33.000000000 +1000
3 @@ -59,7 +59,7 @@
4 #include <amanith/numerics/geigen.h>
5 #include <amanith/numerics/gfilter.h>
6 #include <amanith/numerics/gintegration.h>
7 -#include <amanith/rendering/gdrawboard.h>
8 +#include <amanith/rendering/gdrawboard.swig.h>
9 #include <amanith/rendering/gdrawstyle.h>
10 #include <amanith/rendering/gopenglboard.h>
11 #include <amanith/support/gavltree.h>
12 --- setup.py 2007-11-19 07:10:03.000000000 +1000
13 +++ setup.py 2008-04-05 01:55:33.000000000 +1000
14 @@ -16,7 +16,7 @@
15 inc = [join("changes", "include"), join(amanith_base, "include"), "include"]
16 lib = [join(amanith_base, "lib")]
17 cc_args = []
18 -swig_args = ["-Ibuild/amanith"]
19 +swig_args = ["-Ichanges/include", "-Iinclude", "-I/usr/include"]
21 if os.name == "nt":
22 if debug:
23 @@ -38,20 +38,9 @@
24 relPath = join(root, file).replace(source + os.sep, "")
25 shutil.copy(join(source, relPath), join(target, relPath))
27 - def run(self):
28 - # Ultimately this should use patch(1) or something, but for now
29 - # we just copy the stuff over.
30 - if not os.path.isdir(join("build", "amanith")):
31 - os.makedirs(join("build", "amanith"))
32 - shutil.copytree(join(amanith_base, "include"), join("build", "amanith", "include"))
33 - self.copy("changes", join("build", "amanith"))
34 - _build_ext.run(self)
36 ext_amanith = Extension('_amanith', ['amanith.i'],
37 - include_dirs = inc,
38 - library_dirs = lib,
39 - libraries = libs,
40 - extra_compile_args = cc_args)
41 + swig_opts = swig_args, extra_compile_args = swig_args, libraries = libs)
43 setup(name = 'PyAmanith',
44 version = '0.3.35',