ports/cad/dxf2gcode/patches/patch-make_tr_py

14 lines
520 B
Text

# sys.platform return openbsd, not unix here
Index: make_tr.py
--- make_tr.py.orig
+++ make_tr.py
@@ -94,7 +94,7 @@ def extract_from_pro(qmf, varname):
return ts
-if "linux" in sys.platform.lower() or "unix" in sys.platform.lower() or "darwin" in sys.platform.lower():
+if "linux" in sys.platform.lower() or "openbsd" in sys.platform.lower() or "darwin" in sys.platform.lower():
# On Linux, the executable are normaly on the PATH
LREPATH = None
names = ["lrelease-qt5", "lrelease5", "lrelease"]