ports/cad/dxf2gcode/patches/patch-make_tr_py

15 lines
520 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
# 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"]