You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-03-31 14:42:53 -07:00
65 lines
1.6 KiB
Diff
65 lines
1.6 KiB
Diff
--- setup.py.orig 2026-03-04 20:38:57
|
|
+++ setup.py 2026-03-06 17:00:46
|
|
@@ -21,12 +21,12 @@
|
|
ROOT = r'@prefix@'
|
|
|
|
# Thread-enabled libxml2
|
|
-with_threads = @WITH_THREADS@
|
|
+with_threads = 1
|
|
|
|
# Features of libxml2 requiring external DLLs
|
|
-with_iconv = @WITH_ICONV@
|
|
-with_zlib = @WITH_ZLIB@
|
|
-with_icu = @WITH_ICU@
|
|
+with_iconv = 1
|
|
+with_zlib = 1
|
|
+with_icu = 1
|
|
|
|
icu_series = 69
|
|
|
|
@@ -73,11 +73,7 @@
|
|
# - libxml2/libxml/tree.h
|
|
# - libxslt/xsltconfig.h
|
|
includes_dir = [
|
|
-"/usr/include",
|
|
-"/usr/local/include",
|
|
-"/opt/include",
|
|
os.path.join(ROOT,'include'),
|
|
-HOME
|
|
];
|
|
|
|
xml_includes=""
|
|
@@ -114,32 +110,6 @@
|
|
sys.exit(1)
|
|
|
|
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=""
|