Commits

Joshua Root authored b97c7ff5d03
py*-libxml2: update to 2.7.8 (https://trac.macports.org/ticket/23139)

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@80814 d073be05-634f-4543-b044-5fe20cf6d1d6
No tags

python/py-libxml2/files/patch-setup.py.diff

Modified
1 ---- setup.py 2005-09-04 19:12:47.000000000 -0400
2 -+++ setup.py.new 2007-05-16 07:46:02.000000000 -0400
1 +--- setup.py.orig 2007-10-11 15:24:20.000000000 +0200
2 ++++ setup.py 2007-10-11 15:24:54.000000000 +0200
3 3 @@ -56,11 +56,7 @@
4 4 # - iconv.h
5 5 # - libxslt/xsltconfig.h
6 6 includes_dir = [
7 7 -"/usr/include",
8 8 -"/usr/local/include",
9 9 -"/opt/include",
10 10 -os.path.join(ROOT,'include'),
11 11 -HOME
12 12 +"@PREFIX@/include",
15 15 xml_includes=""
16 16 @@ -85,7 +81,7 @@
17 17
18 18 # those are added in the linker search path for libraries
19 19 libdirs = [
20 20 -os.path.join(ROOT,'lib'),
21 21 +"@PREFIX@/lib"
22 22 ]
23 23
24 24 xml_files = ["libxml2-api.xml", "libxml2-python-api.xml",
25 +@@ -122,32 +118,6 @@
26 + result.close()
27 +
28 + with_xslt=0
29 +-if missing("libxslt-py.c") or missing("libxslt.py"):
30 +- if missing("xsltgenerator.py") or missing("libxslt-api.xml"):
31 +- print "libxslt stub generator not found, libxslt not built"
32 +- else:
33 +- try:
34 +- import xsltgenerator
35 +- except:
36 +- print "failed to generate stubs for libxslt, aborting ..."
37 +- print sys.exc_type, sys.exc_value
38 +- else:
39 +- head = open("libxsl.py", "r")
40 +- generated = open("libxsltclass.py", "r")
41 +- result = open("libxslt.py", "w")
42 +- for line in head.readlines():
43 +- if WITHDLLS:
44 +- result.write(altImport(line))
45 +- else:
46 +- result.write(line)
47 +- for line in generated.readlines():
48 +- result.write(line)
49 +- head.close()
50 +- generated.close()
51 +- result.close()
52 +- with_xslt=1
53 +-else:
54 +- with_xslt=1
55 +
56 + if with_xslt == 1:
57 + xslt_includes=""

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut