You've already forked macports-ports
mirror of
https://github.com/encounter/macports-ports.git
synced 2026-03-30 11:29:27 -07:00
76607a41fb
git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@127108 d073be05-634f-4543-b044-5fe20cf6d1d6
58 lines
1.5 KiB
Diff
58 lines
1.5 KiB
Diff
--- setup.py.orig 2014-10-16 00:35:21.000000000 -0700
|
|
+++ setup.py 2014-10-20 21:44:57.000000000 -0700
|
|
@@ -56,11 +56,7 @@
|
|
# - iconv.h
|
|
# - libxslt/xsltconfig.h
|
|
includes_dir = [
|
|
-"/usr/include",
|
|
-"/usr/local/include",
|
|
-"/opt/include",
|
|
-os.path.join(ROOT,'include'),
|
|
-HOME
|
|
+"@PREFIX@/include",
|
|
];
|
|
|
|
xml_includes=""
|
|
@@ -85,7 +81,7 @@
|
|
|
|
# those are added in the linker search path for libraries
|
|
libdirs = [
|
|
-os.path.join(ROOT,'lib'),
|
|
+"@PREFIX@/lib"
|
|
]
|
|
|
|
xml_files = ["libxml2-api.xml", "libxml2-python-api.xml",
|
|
@@ -122,32 +118,6 @@
|
|
result.close()
|
|
|
|
with_xslt=0
|
|
-if missing("libxslt-py.c") or missing("libxslt.py"):
|
|
- if missing("xsltgenerator.py") or missing("libxslt-api.xml"):
|
|
- print("libxslt stub generator not found, libxslt not built")
|
|
- else:
|
|
- try:
|
|
- import xsltgenerator
|
|
- except:
|
|
- print("failed to generate stubs for libxslt, aborting ...")
|
|
- print(sys.exc_info()[0], sys.exc_info()[1])
|
|
- else:
|
|
- head = open("libxsl.py", "r")
|
|
- generated = open("libxsltclass.py", "r")
|
|
- result = open("libxslt.py", "w")
|
|
- for line in head.readlines():
|
|
- if WITHDLLS:
|
|
- result.write(altImport(line))
|
|
- else:
|
|
- result.write(line)
|
|
- for line in generated.readlines():
|
|
- result.write(line)
|
|
- head.close()
|
|
- generated.close()
|
|
- result.close()
|
|
- with_xslt=1
|
|
-else:
|
|
- with_xslt=1
|
|
|
|
if with_xslt == 1:
|
|
xslt_includes=""
|