mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-21 08:42:23 +00:00
Teach setup.py how to find lrelease.
This patch is needed for upcoming Qt 5.13 Reported by: adridg@
This commit is contained in:
parent
7942b37f98
commit
2a819f07bb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=511653
@ -31,4 +31,7 @@ BINARY_ALIAS= lrelease=${LRELEASE}
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e "s,lrelease,${LOCALBASE}/bin/lrelease," ${WRKSRC}/setup.py
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
11
textproc/retext/files/patch-setup.py
Normal file
11
textproc/retext/files/patch-setup.py
Normal file
@ -0,0 +1,11 @@
|
||||
--- setup.py.orig 2019-09-09 20:33:15.181197000 +0200
|
||||
+++ setup.py 2019-09-09 20:37:49.730010000 +0200
|
||||
@@ -57,7 +57,7 @@
|
||||
def run(self):
|
||||
for ts_file in glob(join('locale', '*.ts')):
|
||||
try:
|
||||
- check_call(('lrelease', ts_file), env={'QT_SELECT': '5'})
|
||||
+ check_call(('lrelease', ts_file), env={'QT_SELECT': 'qt5'})
|
||||
except Exception as e:
|
||||
log.warn('Failed to build translations: %s', e)
|
||||
break
|
Loading…
Reference in New Issue
Block a user