Date: Thursday, March 15, 2012 @ 13:58:33 Author: giovanni Revision: 153535
archrelease: copy trunk to staging-any Added: translate-toolkit/repos/staging-any/ translate-toolkit/repos/staging-any/PKGBUILD (from rev 153534, translate-toolkit/trunk/PKGBUILD) translate-toolkit/repos/staging-any/fix-locale.patch (from rev 153534, translate-toolkit/trunk/fix-locale.patch) ------------------+ PKGBUILD | 31 +++++++++++++++++++++++++++++++ fix-locale.patch | 28 ++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) Copied: translate-toolkit/repos/staging-any/PKGBUILD (from rev 153534, translate-toolkit/trunk/PKGBUILD) =================================================================== --- staging-any/PKGBUILD (rev 0) +++ staging-any/PKGBUILD 2012-03-15 17:58:33 UTC (rev 153535) @@ -0,0 +1,31 @@ +# $Id$ +# Maintainer: Andrea Scarpino <and...@archlinux.org> +# Contributor: Jaroslav Lichtblau <dragonl...@aur.archlinux.org> +# Contributor: Hugo Doria <hugodoria at gmail.com> + +pkgname=translate-toolkit +pkgver=1.9.0 +pkgrel=4 +pkgdesc="A toolkit to convert between various different translation formats, help process and validate localisations" +arch=('any') +url="http://translate.sourceforge.net/wiki/toolkit/index" +license=('GPL') +depends=('bash' 'python2-lxml') +optdepends=('python2-iniparse: to use ini2po script') +source=("http://downloads.sourceforge.net/translate/${pkgname}-${pkgver}.tar.bz2" + 'fix-locale.patch') +md5sums=('6106bb27887a77c056bfa7d2fd89204d' + 'dc40fb26dd7905800abafad9041d98f3') + +package() { + # FS#27907 + cd "${srcdir}/${pkgname}-${pkgver}"/translate + patch -p0 -i "${srcdir}"/fix-locale.patch + + cd "${srcdir}/${pkgname}-${pkgver}" + sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ + -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ + $(find . -name '*.py') + + python2 setup.py install --root="${pkgdir}" --optimize=1 +} Copied: translate-toolkit/repos/staging-any/fix-locale.patch (from rev 153534, translate-toolkit/trunk/fix-locale.patch) =================================================================== --- staging-any/fix-locale.patch (rev 0) +++ staging-any/fix-locale.patch 2012-03-15 17:58:33 UTC (rev 153535) @@ -0,0 +1,28 @@ +Index: storage/statsdb.py +=================================================================== +--- storage/statsdb.py (revision 17950) ++++ storage/statsdb.py (working copy) +@@ -468,9 +468,10 @@ + unconditionally.""" + self.cur.execute("""DELETE FROM files WHERE + path=?;""", (realpath,)) +- self.cur.execute("""INSERT INTO files ++ self.cur.execute("""iNSERT INTO files + (fileid, path, st_mtime, st_size, toolkitbuild) values (NULL, ?, ?, ?, ?);""", + (realpath, mod_info[0], mod_info[1], toolkitversion.build)) ++ # Unusual capitalisation intended. See bug 2073. + fileid = self.cur.lastrowid + self.cur.execute("""DELETE FROM units WHERE + fileid=?""", (fileid,)) +@@ -628,9 +629,10 @@ + configid = self._getstoredcheckerconfig(checker) + if configid: + return configid +- self.cur.execute("""INSERT INTO checkerconfigs ++ self.cur.execute("""iNSERT INTO checkerconfigs + (configid, config) values (NULL, ?);""", + (str(checker.config.__dict__),)) ++ # Unusual capitalisation intended. See bug 2073. + return self.cur.lastrowid + + def filechecks(self, filename, checker, store=None):