[arch-commits] Commit in lokalize/repos (8 files)

Antonio Rojas arojas at archlinux.org
Mon Sep 14 21:56:48 UTC 2015


    Date: Monday, September 14, 2015 @ 23:56:48
  Author: arojas
Revision: 246218

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  lokalize/repos/testing-i686/
  lokalize/repos/testing-i686/PKGBUILD
    (from rev 246217, lokalize/trunk/PKGBUILD)
  lokalize/repos/testing-i686/fix-python2-path.patch
    (from rev 246217, lokalize/trunk/fix-python2-path.patch)
  lokalize/repos/testing-i686/lokalize.install
    (from rev 246217, lokalize/trunk/lokalize.install)
  lokalize/repos/testing-x86_64/
  lokalize/repos/testing-x86_64/PKGBUILD
    (from rev 246217, lokalize/trunk/PKGBUILD)
  lokalize/repos/testing-x86_64/fix-python2-path.patch
    (from rev 246217, lokalize/trunk/fix-python2-path.patch)
  lokalize/repos/testing-x86_64/lokalize.install
    (from rev 246217, lokalize/trunk/lokalize.install)

---------------------------------------+
 testing-i686/PKGBUILD                 |   42 ++++++++++++++++++++++++++++++++
 testing-i686/fix-python2-path.patch   |   22 ++++++++++++++++
 testing-i686/lokalize.install         |   12 +++++++++
 testing-x86_64/PKGBUILD               |   42 ++++++++++++++++++++++++++++++++
 testing-x86_64/fix-python2-path.patch |   22 ++++++++++++++++
 testing-x86_64/lokalize.install       |   12 +++++++++
 6 files changed, 152 insertions(+)

Copied: lokalize/repos/testing-i686/PKGBUILD (from rev 246217, lokalize/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2015-09-14 21:56:48 UTC (rev 246218)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=lokalize
+pkgver=15.08.1
+pkgrel=1
+pkgdesc='Computer-Aided Translation System'
+url='http://kde.org/applications/development/lokalize/'
+arch=('i686' 'x86_64')
+license=('GPL' 'LGPL' 'FDL')
+groups=('kde-applications' 'kdesdk')
+depends=('kross' 'hunspell')
+makedepends=('extra-cmake-modules' 'python' 'kdoctools')
+install=${pkgname}.install
+conflicts=('kdesdk-lokalize')
+replaces=('kdesdk-lokalize')
+source=("http://download.kde.org/stable/applications/${pkgver}/src/lokalize-${pkgver}.tar.xz")
+sha1sums=('a11b540febcf47065ab47416db720168b7a33289')
+
+prepare() {
+  mkdir -p build
+}
+
+build() {
+  cd build
+  cmake ../lokalize-${pkgver} \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DBUILD_TESTING=OFF \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
+  make
+}
+
+package() {
+  cd build
+  make DESTDIR=$pkgdir install
+
+  # Fix python 2 path
+  sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+    "${pkgdir}"/usr/share/lokalize/scripts/odf/xliffmerge.py
+}

Copied: lokalize/repos/testing-i686/fix-python2-path.patch (from rev 246217, lokalize/trunk/fix-python2-path.patch)
===================================================================
--- testing-i686/fix-python2-path.patch	                        (rev 0)
+++ testing-i686/fix-python2-path.patch	2015-09-14 21:56:48 UTC (rev 246218)
@@ -0,0 +1,22 @@
+--- kdesdk-4.5.80/lokalize/scripts/msgmerge.py~	2010-11-24 11:22:42.120000002 +0100
++++ kdesdk-4.5.80/lokalize/scripts/msgmerge.py	2010-11-24 11:22:42.146666670 +0100
+@@ -114,7 +114,7 @@
+         print >>sys.stderr, "Execution failed:", e
+ 
+     cmd='%s/odf/xliffmerge.py -i %s -t %s -o %s' % (ourPath,xliffpathname,xlifftemplatepathname,xliffpathname)
+-    if os.name!='nt': cmd='python '+cmd
++    if os.name!='nt': cmd='python2 '+cmd
+     else: cmd=cmd.replace('/','\\')
+     os.system(cmd)
+
+--- kdesdk-4.5.80/lokalize/scripts/xliff2odf.py~	2010-11-24 11:24:10.853333336 +0100
++++ kdesdk-4.5.80/lokalize/scripts/xliff2odf.py	2010-11-24 11:24:10.883333336 +0100
+@@ -42,7 +42,7 @@
+     xliff2odf.convertxliff(xliffinput, translatedodfpathname, odf)
+ 
+     ourpath=([p for p in sys.path if os.path.exists(p+'/xliff2odf.py')]+[''])[0]
+-    os.system('python "'+ourpath+'/xliff2odf-standalone.py" "%s" "%s" &'%(translatedodfpathname, Editor.currentEntryId()))
++    os.system('python2 "'+ourpath+'/xliff2odf-standalone.py" "%s" "%s" &'%(translatedodfpathname, Editor.currentEntryId()))
+ 
+ try: convert()
+ except: print 'error occured'

Copied: lokalize/repos/testing-i686/lokalize.install (from rev 246217, lokalize/trunk/lokalize.install)
===================================================================
--- testing-i686/lokalize.install	                        (rev 0)
+++ testing-i686/lokalize.install	2015-09-14 21:56:48 UTC (rev 246218)
@@ -0,0 +1,12 @@
+post_install() {
+    xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+    update-desktop-database -q
+}
+
+post_upgrade() {
+    post_install
+}
+
+post_remove() {
+    post_install
+}

Copied: lokalize/repos/testing-x86_64/PKGBUILD (from rev 246217, lokalize/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2015-09-14 21:56:48 UTC (rev 246218)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=lokalize
+pkgver=15.08.1
+pkgrel=1
+pkgdesc='Computer-Aided Translation System'
+url='http://kde.org/applications/development/lokalize/'
+arch=('i686' 'x86_64')
+license=('GPL' 'LGPL' 'FDL')
+groups=('kde-applications' 'kdesdk')
+depends=('kross' 'hunspell')
+makedepends=('extra-cmake-modules' 'python' 'kdoctools')
+install=${pkgname}.install
+conflicts=('kdesdk-lokalize')
+replaces=('kdesdk-lokalize')
+source=("http://download.kde.org/stable/applications/${pkgver}/src/lokalize-${pkgver}.tar.xz")
+sha1sums=('a11b540febcf47065ab47416db720168b7a33289')
+
+prepare() {
+  mkdir -p build
+}
+
+build() {
+  cd build
+  cmake ../lokalize-${pkgver} \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DBUILD_TESTING=OFF \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
+  make
+}
+
+package() {
+  cd build
+  make DESTDIR=$pkgdir install
+
+  # Fix python 2 path
+  sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+    "${pkgdir}"/usr/share/lokalize/scripts/odf/xliffmerge.py
+}

Copied: lokalize/repos/testing-x86_64/fix-python2-path.patch (from rev 246217, lokalize/trunk/fix-python2-path.patch)
===================================================================
--- testing-x86_64/fix-python2-path.patch	                        (rev 0)
+++ testing-x86_64/fix-python2-path.patch	2015-09-14 21:56:48 UTC (rev 246218)
@@ -0,0 +1,22 @@
+--- kdesdk-4.5.80/lokalize/scripts/msgmerge.py~	2010-11-24 11:22:42.120000002 +0100
++++ kdesdk-4.5.80/lokalize/scripts/msgmerge.py	2010-11-24 11:22:42.146666670 +0100
+@@ -114,7 +114,7 @@
+         print >>sys.stderr, "Execution failed:", e
+ 
+     cmd='%s/odf/xliffmerge.py -i %s -t %s -o %s' % (ourPath,xliffpathname,xlifftemplatepathname,xliffpathname)
+-    if os.name!='nt': cmd='python '+cmd
++    if os.name!='nt': cmd='python2 '+cmd
+     else: cmd=cmd.replace('/','\\')
+     os.system(cmd)
+
+--- kdesdk-4.5.80/lokalize/scripts/xliff2odf.py~	2010-11-24 11:24:10.853333336 +0100
++++ kdesdk-4.5.80/lokalize/scripts/xliff2odf.py	2010-11-24 11:24:10.883333336 +0100
+@@ -42,7 +42,7 @@
+     xliff2odf.convertxliff(xliffinput, translatedodfpathname, odf)
+ 
+     ourpath=([p for p in sys.path if os.path.exists(p+'/xliff2odf.py')]+[''])[0]
+-    os.system('python "'+ourpath+'/xliff2odf-standalone.py" "%s" "%s" &'%(translatedodfpathname, Editor.currentEntryId()))
++    os.system('python2 "'+ourpath+'/xliff2odf-standalone.py" "%s" "%s" &'%(translatedodfpathname, Editor.currentEntryId()))
+ 
+ try: convert()
+ except: print 'error occured'

Copied: lokalize/repos/testing-x86_64/lokalize.install (from rev 246217, lokalize/trunk/lokalize.install)
===================================================================
--- testing-x86_64/lokalize.install	                        (rev 0)
+++ testing-x86_64/lokalize.install	2015-09-14 21:56:48 UTC (rev 246218)
@@ -0,0 +1,12 @@
+post_install() {
+    xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+    update-desktop-database -q
+}
+
+post_upgrade() {
+    post_install
+}
+
+post_remove() {
+    post_install
+}



More information about the arch-commits mailing list