trunk/playground/memre/pisi - sync translations with trunk and cmake sb2 cross-b...
Mehmet Emre Atasever
uludag-commits at pardus.org.tr
18 Mar 2011 Cum 15:42:36 EET
Author: memre
Date: Fri Mar 18 15:42:35 2011
New Revision: 36468
Added:
trunk/playground/memre/pisi/po/uk.po
Modified:
trunk/playground/memre/pisi/pisi/actionsapi/autotools.py
trunk/playground/memre/pisi/pisi/actionsapi/cmaketools.py
trunk/playground/memre/pisi/pisi/actionsapi/variables.py
trunk/playground/memre/pisi/po/de.po
trunk/playground/memre/pisi/po/es.po
trunk/playground/memre/pisi/po/fr.po
trunk/playground/memre/pisi/po/hu.po
trunk/playground/memre/pisi/po/it.po
trunk/playground/memre/pisi/po/nl.po
trunk/playground/memre/pisi/po/pl.po
trunk/playground/memre/pisi/po/ru.po
trunk/playground/memre/pisi/po/sv.po
trunk/playground/memre/pisi/po/tr.po
Log:
sync translations with trunk and cmake sb2 cross-build modifications
---
pisi/actionsapi/autotools.py | 16
pisi/actionsapi/cmaketools.py | 15
pisi/actionsapi/variables.py | 1
po/de.po | 356 ++---
po/es.po | 357 ++---
po/fr.po | 340 ++--
po/hu.po | 699 ++++------
po/it.po | 383 ++---
po/nl.po | 355 ++---
po/pl.po | 365 ++---
po/ru.po | 355 ++---
po/sv.po | 355 ++---
po/tr.po | 355 ++---
po/uk.po | 2861 ++++++++++++++++++++++++++++++++++++++++++
14 files changed, 4918 insertions(+), 1895 deletions(-)
Modified: trunk/playground/memre/pisi/pisi/actionsapi/autotools.py
=================================================================
--- trunk/playground/memre/pisi/pisi/actionsapi/autotools.py (original)
+++ trunk/playground/memre/pisi/pisi/actionsapi/autotools.py Fri Mar 18 15:42:35 2011
@@ -59,7 +59,7 @@
self.value = value
ctx.ui.error(value)
-def configure(parameters = '', configure_cmd='./configure'):
+def configure(parameters = '', configure_cmd='./configure', no_default_vars=False):
'''configure source with given parameters = "--with-nls --with-libusb --with-something-usefull"'''
if can_access_file(configure_cmd):
@@ -67,7 +67,6 @@
cmd = '%s \
--prefix=/%s \
- --build=%s \
--mandir=/%s \
--infodir=/%s \
--datadir=/%s \
@@ -76,14 +75,17 @@
--libexecdir=/%s \
%s' % (configure_cmd,
get.defaultprefixDIR(), \
- get.BUILD(), get.manDIR(), \
- get.infoDIR(), get.dataDIR(), \
+ get.manDIR(), get.infoDIR(), get.dataDIR(), \
get.confDIR(), get.localstateDIR(), get.libexecDIR(), parameters)
+ if not no_default_vars:
+ cmd = "%s --build=%s" % (cmd, get.BUILD())
+
if crosscompiling:
- cmd = "sb2 %s \
- --host=%s \
- " % (cmd, get.HOST())
+ cmd = "sb2 %s" % cmd
+
+ if not no_default_vars:
+ cmd = "%s --host=%s" % (cmd, get.HOST())
if system(cmd):
raise ConfigureError(_('Configure failed.'))
Modified: trunk/playground/memre/pisi/pisi/actionsapi/cmaketools.py
=================================================================
--- trunk/playground/memre/pisi/pisi/actionsapi/cmaketools.py (original)
+++ trunk/playground/memre/pisi/pisi/actionsapi/cmaketools.py Fri Mar 18 15:42:35 2011
@@ -27,6 +27,12 @@
from pisi.actionsapi.shelltools import can_access_file
from pisi.actionsapi.shelltools import unlink
+crosscompiling = ctx.config.values.build.crosscompiling
+if crosscompiling:
+ ctx.ui.info(_("cross compiling"))
+else:
+ ctx.ui.info(_("native compiling"))
+
class ConfigureError(pisi.actionsapi.Error):
def __init__(self, value=''):
pisi.actionsapi.Error.__init__(self, value)
@@ -62,6 +68,9 @@
-DCMAKE_LD_FLAGS="%s" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo %s %s' % (installPrefix, get.CFLAGS(), get.CXXFLAGS(), get.LDFLAGS(), parameters, sourceDir)
+ if crosscompiling:
+ args = "sb2 %s" % args
+
if system(args):
raise ConfigureError(_('Configure failed.'))
else:
@@ -74,6 +83,9 @@
else:
command = 'make %s %s' % (get.makeJOBS(), parameters)
+ if crosscompiling:
+ command = "sb2 %s" % command
+
if system(command):
raise MakeError(_('Make failed.'))
@@ -94,6 +106,9 @@
'argument' : argument,
}
+ if crosscompiling:
+ args = "sb2 %s" % args
+
if system(args):
raise InstallError(_('Install failed.'))
else:
Modified: trunk/playground/memre/pisi/pisi/actionsapi/variables.py
=================================================================
--- trunk/playground/memre/pisi/pisi/actionsapi/variables.py (original)
+++ trunk/playground/memre/pisi/pisi/actionsapi/variables.py Fri Mar 18 15:42:35 2011
@@ -47,6 +47,7 @@
if values.build.crosscompiling:
os.environ['PYTHON_PREFIX'] = "%s/usr" % sysroot
os.environ['PYTHON'] = "%s/usr/bin/python" % sysroot
+ os.environ['PERL'] = "%s/usr/bin/perl" % sysroot
os.environ['SYSROOT'] = sysroot
os.environ['BUILDARCH'] = os.popen('uname -m').read().strip()
os.environ['ARCH'] = values.general.architecture
Modified: trunk/playground/memre/pisi/po/de.po
=================================================================
Suppressed!
Too long (more than 250 lines) diff output suppressed...
Modified: trunk/playground/memre/pisi/po/es.po
=================================================================
Suppressed!
Too long (more than 250 lines) diff output suppressed...
Modified: trunk/playground/memre/pisi/po/fr.po
=================================================================
Suppressed!
Too long (more than 250 lines) diff output suppressed...
Modified: trunk/playground/memre/pisi/po/hu.po
=================================================================
Suppressed!
Too long (more than 250 lines) diff output suppressed...
Modified: trunk/playground/memre/pisi/po/it.po
=================================================================
Suppressed!
Too long (more than 250 lines) diff output suppressed...
Modified: trunk/playground/memre/pisi/po/nl.po
=================================================================
Suppressed!
Too long (more than 250 lines) diff output suppressed...
Modified: trunk/playground/memre/pisi/po/pl.po
=================================================================
Suppressed!
Too long (more than 250 lines) diff output suppressed...
Modified: trunk/playground/memre/pisi/po/ru.po
=================================================================
Suppressed!
Too long (more than 250 lines) diff output suppressed...
Modified: trunk/playground/memre/pisi/po/sv.po
=================================================================
Suppressed!
Too long (more than 250 lines) diff output suppressed...
Modified: trunk/playground/memre/pisi/po/tr.po
=================================================================
Suppressed!
Too long (more than 250 lines) diff output suppressed...
Uludag-commits mesaj listesiyle ilgili
daha fazla bilgi