forked from Lainports/freebsd-ports
1. My previous commit r487632 deleted the empty directory. But it turned out that translation files are supposed to be there. With the help of the upstream, I fixed the translations. As it turned out, USES=qt:5 is needed, and lrelease should be made available to setup.py. The added patch makes setup.py to find lrelease, this was broken upstream. 2. autoplist was not used because it was broken due to the file name mismatch. PYDISTUTILS_INSTALLARGS=--no-rename is a workaround, permanent fix will be added by the upstream later. 3. Add NO_ARCH=yes. Approved by: portmgr (unbreak)
25 lines
749 B
Python
25 lines
749 B
Python
Equivalent of the commit 162b0c787e2005efebac7beb97d1dd681bb692b7
|
|
that fixes https://github.com/retext-project/retext/issues/422
|
|
|
|
--- setup.py.orig 2017-02-11 15:21:52 UTC
|
|
+++ setup.py
|
|
@@ -16,6 +16,7 @@ For more details, please go to the `home
|
|
|
|
import platform
|
|
import re
|
|
+import os
|
|
import sys
|
|
from os.path import join
|
|
from distutils import log
|
|
@@ -35,9 +36,10 @@ if sys.version_info[0] < 3:
|
|
def build_translations():
|
|
print('running build_translations')
|
|
error = None
|
|
+ environment = dict(os.environ, QT_SELECT='5')
|
|
for ts_file in glob(join('locale', '*.ts')):
|
|
try:
|
|
- check_call(('lrelease', ts_file), env={'QT_SELECT': '5'})
|
|
+ check_call(('lrelease', ts_file), env=environment)
|
|
except Exception as e:
|
|
error = e
|
|
if error:
|