summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/astropy/files/astropy-0.1-expat.patch')
-rw-r--r--dev-python/astropy/files/astropy-0.1-expat.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/dev-python/astropy/files/astropy-0.1-expat.patch b/dev-python/astropy/files/astropy-0.1-expat.patch
new file mode 100644
index 0000000..5bc1b29
--- /dev/null
+++ b/dev-python/astropy/files/astropy-0.1-expat.patch
@@ -0,0 +1,33 @@
+--- astropy/utils/xml/setup_package.py.orig 2012-06-18 07:48:04.000000000 +0200
++++ astropy/utils/xml/setup_package.py 2012-06-19 12:43:29.685002916 +0200
+@@ -4,7 +4,6 @@
+
+
+ def get_extensions(build_type='release'):
+- EXPAT_DIR = 'cextern/expat/lib'
+ XML_DIR = 'astropy/utils/xml/src'
+
+ defines = [("HAVE_EXPAT_CONFIG_H", 1)]
+@@ -21,18 +20,14 @@
+ # place of ours.
+ extra_link_args = [
+ '-Wl,--version-script={0}'.format(
+- join(XML_DIR, 'iterparse.map'))
+- ]
++ join(XML_DIR, 'iterparse.map')),
++ '-lexpat']
+ else:
+ extra_link_args = []
+
+ return [Extension(
+ "astropy.utils.xml._iterparser",
+- [join(XML_DIR, "iterparse.c"),
+- join(EXPAT_DIR, "xmlparse.c"),
+- join(EXPAT_DIR, "xmlrole.c"),
+- join(EXPAT_DIR, "xmltok.c"),
+- join(EXPAT_DIR, "xmltok_impl.c")],
++ [join(XML_DIR, "iterparse.c")],
+ define_macros=defines,
+- include_dirs=[XML_DIR, EXPAT_DIR],
++ include_dirs=[XML_DIR],
+ extra_link_args=extra_link_args)]