[arch-commits] Commit in kdesdk/repos (24 files)

Andrea Scarpino andrea at archlinux.org
Sun Mar 4 10:01:25 EST 2012


    Date: Sunday, March 4, 2012 @ 10:01:25
  Author: andrea
Revision: 152099

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

Added:
  kdesdk/repos/staging-i686/
  kdesdk/repos/staging-i686/PKGBUILD
    (from rev 152098, kdesdk/trunk/PKGBUILD)
  kdesdk/repos/staging-i686/fix-python2-path.patch
    (from rev 152098, kdesdk/trunk/fix-python2-path.patch)
  kdesdk/repos/staging-i686/kdesdk-cervisia.install
    (from rev 152098, kdesdk/trunk/kdesdk-cervisia.install)
  kdesdk/repos/staging-i686/kdesdk-kcachegrind.install
    (from rev 152098, kdesdk/trunk/kdesdk-kcachegrind.install)
  kdesdk/repos/staging-i686/kdesdk-kompare.install
    (from rev 152098, kdesdk/trunk/kdesdk-kompare.install)
  kdesdk/repos/staging-i686/kdesdk-kuiviewer.install
    (from rev 152098, kdesdk/trunk/kdesdk-kuiviewer.install)
  kdesdk/repos/staging-i686/kdesdk-lokalize.install
    (from rev 152098, kdesdk/trunk/kdesdk-lokalize.install)
  kdesdk/repos/staging-i686/kdesdk-okteta.install
    (from rev 152098, kdesdk/trunk/kdesdk-okteta.install)
  kdesdk/repos/staging-i686/kdesdk-umbrello.install
    (from rev 152098, kdesdk/trunk/kdesdk-umbrello.install)
  kdesdk/repos/staging-i686/kdesdk.install
    (from rev 152098, kdesdk/trunk/kdesdk.install)
  kdesdk/repos/staging-x86_64/
  kdesdk/repos/staging-x86_64/PKGBUILD
    (from rev 152098, kdesdk/trunk/PKGBUILD)
  kdesdk/repos/staging-x86_64/fix-python2-path.patch
    (from rev 152098, kdesdk/trunk/fix-python2-path.patch)
  kdesdk/repos/staging-x86_64/kdesdk-cervisia.install
    (from rev 152098, kdesdk/trunk/kdesdk-cervisia.install)
  kdesdk/repos/staging-x86_64/kdesdk-kcachegrind.install
    (from rev 152098, kdesdk/trunk/kdesdk-kcachegrind.install)
  kdesdk/repos/staging-x86_64/kdesdk-kompare.install
    (from rev 152098, kdesdk/trunk/kdesdk-kompare.install)
  kdesdk/repos/staging-x86_64/kdesdk-kuiviewer.install
    (from rev 152098, kdesdk/trunk/kdesdk-kuiviewer.install)
  kdesdk/repos/staging-x86_64/kdesdk-lokalize.install
    (from rev 152098, kdesdk/trunk/kdesdk-lokalize.install)
  kdesdk/repos/staging-x86_64/kdesdk-okteta.install
    (from rev 152098, kdesdk/trunk/kdesdk-okteta.install)
  kdesdk/repos/staging-x86_64/kdesdk-umbrello.install
    (from rev 152098, kdesdk/trunk/kdesdk-umbrello.install)
  kdesdk/repos/staging-x86_64/kdesdk.install
    (from rev 152098, kdesdk/trunk/kdesdk.install)
Modified:
  kdesdk/repos/extra-i686/PKGBUILD
  kdesdk/repos/extra-x86_64/PKGBUILD

-------------------------------------------+
 extra-i686/PKGBUILD                       |    2 
 extra-x86_64/PKGBUILD                     |    2 
 staging-i686/PKGBUILD                     |  262 ++++++++++++++++++++++++++++
 staging-i686/fix-python2-path.patch       |   32 +++
 staging-i686/kdesdk-cervisia.install      |   12 +
 staging-i686/kdesdk-kcachegrind.install   |   12 +
 staging-i686/kdesdk-kompare.install       |   12 +
 staging-i686/kdesdk-kuiviewer.install     |   12 +
 staging-i686/kdesdk-lokalize.install      |   12 +
 staging-i686/kdesdk-okteta.install        |   12 +
 staging-i686/kdesdk-umbrello.install      |   12 +
 staging-i686/kdesdk.install               |   11 +
 staging-x86_64/PKGBUILD                   |  262 ++++++++++++++++++++++++++++
 staging-x86_64/fix-python2-path.patch     |   32 +++
 staging-x86_64/kdesdk-cervisia.install    |   12 +
 staging-x86_64/kdesdk-kcachegrind.install |   12 +
 staging-x86_64/kdesdk-kompare.install     |   12 +
 staging-x86_64/kdesdk-kuiviewer.install   |   12 +
 staging-x86_64/kdesdk-lokalize.install    |   12 +
 staging-x86_64/kdesdk-okteta.install      |   12 +
 staging-x86_64/kdesdk-umbrello.install    |   12 +
 staging-x86_64/kdesdk.install             |   11 +
 22 files changed, 780 insertions(+), 2 deletions(-)

Modified: extra-i686/PKGBUILD
===================================================================
--- extra-i686/PKGBUILD	2012-03-04 14:59:51 UTC (rev 152098)
+++ extra-i686/PKGBUILD	2012-03-04 15:01:25 UTC (rev 152099)
@@ -30,7 +30,7 @@
 groups=('kde' 'kdesdk')
 makedepends=('cmake' 'automoc4' 'boost' 'subversion' 'antlr2' 'kdepimlibs'
              'kdebase-lib')
-source=("http://download.kde.org/stable/${pkgver}/src/${pkgbase}-${pkgver}.tar.bz2"
+source=("http://download.kde.org/stable/${pkgver}/src/xz/${pkgbase}-${pkgver}.tar.xz"
         'fix-python2-path.patch')
 sha1sums=('2c55ed17350cb5eba4213007614e4c587feb94b9'
           '923cabd7a877cf9a68efeb24fbf3d5827e1d949e')

Modified: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD	2012-03-04 14:59:51 UTC (rev 152098)
+++ extra-x86_64/PKGBUILD	2012-03-04 15:01:25 UTC (rev 152099)
@@ -30,7 +30,7 @@
 groups=('kde' 'kdesdk')
 makedepends=('cmake' 'automoc4' 'boost' 'subversion' 'antlr2' 'kdepimlibs'
              'kdebase-lib')
-source=("http://download.kde.org/stable/${pkgver}/src/${pkgbase}-${pkgver}.tar.bz2"
+source=("http://download.kde.org/stable/${pkgver}/src/xz/${pkgbase}-${pkgver}.tar.xz"
         'fix-python2-path.patch')
 sha1sums=('2c55ed17350cb5eba4213007614e4c587feb94b9'
           '923cabd7a877cf9a68efeb24fbf3d5827e1d949e')

Copied: kdesdk/repos/staging-i686/PKGBUILD (from rev 152098, kdesdk/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2012-03-04 15:01:25 UTC (rev 152099)
@@ -0,0 +1,262 @@
+# $Id$
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Pierre Schmitz <pierre at archlinux.de>
+
+pkgbase=kdesdk
+pkgname=('kdesdk-cervisia'
+         'kdesdk-dolphin-plugins'
+         'kdesdk-kapptemplate'
+         'kdesdk-kcachegrind'
+         'kdesdk-kdeaccounts-plugin'
+         'kdesdk-kdepalettes'
+         'kdesdk-kioslave'
+         'kdesdk-kmtrace'
+         'kdesdk-kompare'
+         'kdesdk-kpartloader'
+         'kdesdk-kprofilemethod'
+         'kdesdk-kstartperf'
+         'kdesdk-kuiviewer'
+         'kdesdk-lokalize'
+         'kdesdk-okteta'
+         'kdesdk-poxml'
+         'kdesdk-scripts'
+         'kdesdk-strigi-analyzer'
+         'kdesdk-umbrello')
+pkgver=4.8.1
+pkgrel=1
+arch=('i686' 'x86_64')
+url='http://www.kde.org'
+license=('GPL' 'LGPL' 'FDL')
+groups=('kde' 'kdesdk')
+makedepends=('cmake' 'automoc4' 'boost' 'subversion' 'antlr2' 'kdepimlibs'
+             'kdebase-lib')
+source=("http://download.kde.org/stable/${pkgver}/src/xz/${pkgbase}-${pkgver}.tar.xz"
+        'fix-python2-path.patch')
+sha1sums=('5104445024047ae01099e7baa8e5b47a63b76198'
+          '923cabd7a877cf9a68efeb24fbf3d5827e1d949e')
+
+build() {
+	cd ${srcdir}/${pkgbase}-${pkgver}
+
+	# Fix hardcoded python2 cmd
+	patch -Np1 -i ${srcdir}/fix-python2-path.patch
+
+	cd ${srcdir}
+	mkdir build
+	cd build
+	cmake ../${pkgbase}-${pkgver} \
+		-DCMAKE_BUILD_TYPE=Release \
+		-DCMAKE_INSTALL_PREFIX=/usr
+	make
+}
+
+package_kdesdk-cervisia() {
+	pkgdesc='CVS Frontend'
+	depends=('kdebase-runtime')
+	url="http://kde.org/applications/development/cervisia/"
+	install='kdesdk-cervisia.install'
+	cd $srcdir/build/cervisia
+	make DESTDIR=$pkgdir install
+	cd $srcdir/build/doc/cervisia
+	make DESTDIR=$pkgdir install
+}
+
+package_kdesdk-dolphin-plugins() {
+	pkgdesc='Extra Dolphin plugins'
+	depends=('kdebase-dolphin')
+    optdepends=('bzr: bazaar support'
+                'git: git support'
+                'mercurial: hg support'
+                'subversion: svn support')
+	install='kdesdk.install'
+    for i in bazaar git hg svn; do
+        cd $srcdir/build/dolphin-plugins/$i
+    	make DESTDIR=$pkgdir install
+    done
+}
+
+package_kdesdk-kapptemplate() {
+	pkgdesc='KDE Template Generator'
+	depends=('kdebase-runtime')
+	url="http://kde.org/applications/development/kapptemplate/"
+	install='kdesdk.install'
+	cd $srcdir/build/kapptemplate
+	make DESTDIR=$pkgdir install
+	cd $srcdir/build/doc/kapptemplate
+	make DESTDIR=$pkgdir install
+}
+
+package_kdesdk-kcachegrind() {
+	pkgdesc='Visualization of Performance Profiling Data'
+	depends=('kdebase-runtime' 'python2')
+	optdepends=('php: PHP support')
+	url="http://kde.org/applications/development/kcachegrind/"
+	install='kdesdk-kcachegrind.install'
+	cd $srcdir/build/kcachegrind
+	make DESTDIR=$pkgdir install
+	cd $srcdir/build/doc/kcachegrind
+	make DESTDIR=$pkgdir install
+
+        # Fix python 2 path
+        sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+                "${pkgdir}"/usr/bin/hotshot2calltree
+}
+
+package_kdesdk-kdeaccounts-plugin() {
+        pkgdesc='KDE Repository Accounts'
+        depends=('kdepim-runtime')
+        cd $srcdir/build/kdeaccounts-plugin
+        make DESTDIR=$pkgdir install
+}
+
+package_kdesdk-kdepalettes() {
+	pkgdesc='Palettes for the Gimp that match the KDE standard color palette'
+	optdepends=('gimp')
+	install -D -m644 $srcdir/${pkgbase}-${pkgver}/kdepalettes/KDE_Gimp \
+		$pkgdir/usr/share/gimp/2.0/palettes/KDE.gpl
+}
+
+package_kdesdk-kioslave() {
+	pkgdesc='KDED Subversion Module'
+	depends=('kdebase-runtime' 'subversion')
+        install='kdesdk.install'
+	cd $srcdir/build/kioslave
+	make DESTDIR=$pkgdir install
+}
+
+package_kdesdk-kmtrace() {
+	pkgdesc='A KDE tool to assist with malloc debugging using glibc´s "mtrace" functionality'
+	depends=('kdebase-runtime')
+	cd $srcdir/build/kmtrace
+	make DESTDIR=$pkgdir install
+	cd $srcdir/build/doc/kmtrace
+	make DESTDIR=$pkgdir install
+}
+
+package_kdesdk-kompare() {
+	pkgdesc='Diff/Patch Frontend'
+	depends=('kdebase-runtime')
+	url="http://kde.org/applications/development/kompare/"
+	install='kdesdk.install'
+	cd $srcdir/build/kompare
+	make DESTDIR=$pkgdir install
+	cd $srcdir/build/doc/kompare
+	make DESTDIR=$pkgdir install
+}
+
+package_kdesdk-kpartloader() {
+	pkgdesc='A test application for KParts'
+	depends=('kdebase-runtime')
+	install='kdesdk.install'
+	cd $srcdir/build/kpartloader
+	make DESTDIR=$pkgdir install
+}
+
+package_kdesdk-kprofilemethod() {
+	pkgdesc='Macros helping to profile'
+	cd $srcdir/build/kprofilemethod
+	make DESTDIR=$pkgdir install
+}
+
+package_kdesdk-kspy() {
+	pkgdesc='An Object Inspector for Qt/KDE applications'
+	depends=('kdebase-runtime')
+	cd $srcdir/build/kspy
+	make DESTDIR=$pkgdir install
+}
+
+package_kdesdk-kstartperf() {
+	pkgdesc='Startup time measurement tool for KDE applications'
+	depends=('kdebase-runtime')
+	cd $srcdir/build/kstartperf
+	make DESTDIR=$pkgdir install
+}
+
+package_kdesdk-kuiviewer() {
+	pkgdesc='Qt Designer UI File Viewer'
+	depends=('kdebase-runtime')
+	url="http://kde.org/applications/development/kuiviewer/"
+	install='kdesdk-kuiviewer.install'
+	cd $srcdir/build/kuiviewer
+	make DESTDIR=$pkgdir install
+}
+
+package_kdesdk-lokalize() {
+	pkgdesc='Computer-Aided Translation System'
+	depends=('kdebase-runtime' 'kdebindings-python')
+	url="http://kde.org/applications/development/lokalize/"
+	optdepends=('translate-toolkit: enable extra python script')
+	install='kdesdk-lokalize.install'
+	cd $srcdir/build/lokalize
+	make DESTDIR=$pkgdir install
+	cd $srcdir/build/doc/lokalize
+	make DESTDIR=$pkgdir install
+
+  # Fix python 2 path
+  sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+    "${pkgdir}"/usr/share/apps/lokalize/scripts/odf/xliffmerge.py
+}
+
+package_kdesdk-okteta() {
+	pkgdesc='Hex Editor'
+	depends=('kdebase-runtime')
+	replaces=('kdeutils-okteta')
+	conflicts=('kdeutils-okteta')
+	url="http://kde.org/applications/utilities/okteta/"
+	install='kdesdk-okteta.install'
+	cd $srcdir/build/okteta
+	make DESTDIR=$pkgdir install
+	cd $srcdir/build/doc/okteta
+	make DESTDIR=$pkgdir install
+}
+
+package_kdesdk-poxml() {
+	pkgdesc='Translates DocBook XML files using gettext po files'
+	depends=('qt' 'antlr2')
+	cd $srcdir/build/poxml
+	make DESTDIR=$pkgdir install
+	cd $srcdir/build/doc/poxml
+	make DESTDIR=$pkgdir install
+}
+
+package_kdesdk-scheck() {
+	pkgdesc='An interface style to highlight accel and style guide conflicts'
+	depends=('kdebase-runtime')
+	cd $srcdir/build/scheck
+	make DESTDIR=$pkgdir install
+}
+
+package_kdesdk-scripts() {
+	pkgdesc='KDE SDK scripts'
+	depends=('python2')
+	cd $srcdir/build/scripts
+	make DESTDIR=$pkgdir install
+	cd $srcdir/build/doc/scripts
+	make DESTDIR=$pkgdir install
+
+  # Fix python 2 path
+  sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+    "${pkgdir}"/usr/bin/{{kde-systemsettings-tree,kdelnk2desktop,zonetab2pot}.py,kde_generate_export_header}
+}
+
+package_kdesdk-strigi-analyzer() {
+	pkgdesc='Strigi-Analyzer for KDE SDK'
+	depends=('kdelibs')
+	cd $srcdir/build/strigi-analyzer
+	make DESTDIR=$pkgdir install
+}
+
+package_kdesdk-umbrello() {
+	pkgdesc='UML Modeller'
+	depends=('kdebase-runtime')
+	url="http://kde.org/applications/development/umbrello/"
+	install='kdesdk-umbrello.install'
+	cd $srcdir/build/umbrello
+	make DESTDIR=$pkgdir install
+	cd $srcdir/build/doc/umbrello
+	make DESTDIR=$pkgdir install
+
+  # Fix python 2 path
+  sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+    "${pkgdir}"/usr/share/apps/umbrello/headings/heading.py
+}

Copied: kdesdk/repos/staging-i686/fix-python2-path.patch (from rev 152098, kdesdk/trunk/fix-python2-path.patch)
===================================================================
--- staging-i686/fix-python2-path.patch	                        (rev 0)
+++ staging-i686/fix-python2-path.patch	2012-03-04 15:01:25 UTC (rev 152099)
@@ -0,0 +1,32 @@
+--- 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'
+--- kdesdk-4.5.80/scripts/svn2log.sh~	2010-11-24 11:46:24.863333337 +0100
++++ kdesdk-4.5.80/scripts/svn2log.sh	2010-11-24 11:46:24.896666669 +0100
+@@ -17,6 +17,6 @@
+ svn cat svn://anonsvn.kde.org/home/kde/trunk/kde-common/accounts > /tmp/accounts.$PPID
+ 
+ echo "Creating changelog...";
+-svn log -v --xml $1 | python $CURRENT/svn2log.py --users=/tmp/accounts.$PPID --users-charset=UTF8
++svn log -v --xml $1 | python2 $CURRENT/svn2log.py --users=/tmp/accounts.$PPID --users-charset=UTF8
+ 
+ rm /tmp/accounts.$PPID
\ No newline at end of file

Copied: kdesdk/repos/staging-i686/kdesdk-cervisia.install (from rev 152098, kdesdk/trunk/kdesdk-cervisia.install)
===================================================================
--- staging-i686/kdesdk-cervisia.install	                        (rev 0)
+++ staging-i686/kdesdk-cervisia.install	2012-03-04 15:01:25 UTC (rev 152099)
@@ -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: kdesdk/repos/staging-i686/kdesdk-kcachegrind.install (from rev 152098, kdesdk/trunk/kdesdk-kcachegrind.install)
===================================================================
--- staging-i686/kdesdk-kcachegrind.install	                        (rev 0)
+++ staging-i686/kdesdk-kcachegrind.install	2012-03-04 15:01:25 UTC (rev 152099)
@@ -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: kdesdk/repos/staging-i686/kdesdk-kompare.install (from rev 152098, kdesdk/trunk/kdesdk-kompare.install)
===================================================================
--- staging-i686/kdesdk-kompare.install	                        (rev 0)
+++ staging-i686/kdesdk-kompare.install	2012-03-04 15:01:25 UTC (rev 152099)
@@ -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: kdesdk/repos/staging-i686/kdesdk-kuiviewer.install (from rev 152098, kdesdk/trunk/kdesdk-kuiviewer.install)
===================================================================
--- staging-i686/kdesdk-kuiviewer.install	                        (rev 0)
+++ staging-i686/kdesdk-kuiviewer.install	2012-03-04 15:01:25 UTC (rev 152099)
@@ -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: kdesdk/repos/staging-i686/kdesdk-lokalize.install (from rev 152098, kdesdk/trunk/kdesdk-lokalize.install)
===================================================================
--- staging-i686/kdesdk-lokalize.install	                        (rev 0)
+++ staging-i686/kdesdk-lokalize.install	2012-03-04 15:01:25 UTC (rev 152099)
@@ -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: kdesdk/repos/staging-i686/kdesdk-okteta.install (from rev 152098, kdesdk/trunk/kdesdk-okteta.install)
===================================================================
--- staging-i686/kdesdk-okteta.install	                        (rev 0)
+++ staging-i686/kdesdk-okteta.install	2012-03-04 15:01:25 UTC (rev 152099)
@@ -0,0 +1,12 @@
+post_install() {
+	xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+	update-mime-database usr/share/mime &> /dev/null
+}
+
+post_upgrade() {
+	post_install
+}
+
+post_remove() {
+	post_install
+}

Copied: kdesdk/repos/staging-i686/kdesdk-umbrello.install (from rev 152098, kdesdk/trunk/kdesdk-umbrello.install)
===================================================================
--- staging-i686/kdesdk-umbrello.install	                        (rev 0)
+++ staging-i686/kdesdk-umbrello.install	2012-03-04 15:01:25 UTC (rev 152099)
@@ -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: kdesdk/repos/staging-i686/kdesdk.install (from rev 152098, kdesdk/trunk/kdesdk.install)
===================================================================
--- staging-i686/kdesdk.install	                        (rev 0)
+++ staging-i686/kdesdk.install	2012-03-04 15:01:25 UTC (rev 152099)
@@ -0,0 +1,11 @@
+post_install() {
+	xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+}
+
+post_upgrade() {
+	post_install
+}
+
+post_remove() {
+	post_install
+}

Copied: kdesdk/repos/staging-x86_64/PKGBUILD (from rev 152098, kdesdk/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2012-03-04 15:01:25 UTC (rev 152099)
@@ -0,0 +1,262 @@
+# $Id$
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Pierre Schmitz <pierre at archlinux.de>
+
+pkgbase=kdesdk
+pkgname=('kdesdk-cervisia'
+         'kdesdk-dolphin-plugins'
+         'kdesdk-kapptemplate'
+         'kdesdk-kcachegrind'
+         'kdesdk-kdeaccounts-plugin'
+         'kdesdk-kdepalettes'
+         'kdesdk-kioslave'
+         'kdesdk-kmtrace'
+         'kdesdk-kompare'
+         'kdesdk-kpartloader'
+         'kdesdk-kprofilemethod'
+         'kdesdk-kstartperf'
+         'kdesdk-kuiviewer'
+         'kdesdk-lokalize'
+         'kdesdk-okteta'
+         'kdesdk-poxml'
+         'kdesdk-scripts'
+         'kdesdk-strigi-analyzer'
+         'kdesdk-umbrello')
+pkgver=4.8.1
+pkgrel=1
+arch=('i686' 'x86_64')
+url='http://www.kde.org'
+license=('GPL' 'LGPL' 'FDL')
+groups=('kde' 'kdesdk')
+makedepends=('cmake' 'automoc4' 'boost' 'subversion' 'antlr2' 'kdepimlibs'
+             'kdebase-lib')
+source=("http://download.kde.org/stable/${pkgver}/src/xz/${pkgbase}-${pkgver}.tar.xz"
+        'fix-python2-path.patch')
+sha1sums=('5104445024047ae01099e7baa8e5b47a63b76198'
+          '923cabd7a877cf9a68efeb24fbf3d5827e1d949e')
+
+build() {
+	cd ${srcdir}/${pkgbase}-${pkgver}
+
+	# Fix hardcoded python2 cmd
+	patch -Np1 -i ${srcdir}/fix-python2-path.patch
+
+	cd ${srcdir}
+	mkdir build
+	cd build
+	cmake ../${pkgbase}-${pkgver} \
+		-DCMAKE_BUILD_TYPE=Release \
+		-DCMAKE_INSTALL_PREFIX=/usr
+	make
+}
+
+package_kdesdk-cervisia() {
+	pkgdesc='CVS Frontend'
+	depends=('kdebase-runtime')
+	url="http://kde.org/applications/development/cervisia/"
+	install='kdesdk-cervisia.install'
+	cd $srcdir/build/cervisia
+	make DESTDIR=$pkgdir install
+	cd $srcdir/build/doc/cervisia
+	make DESTDIR=$pkgdir install
+}
+
+package_kdesdk-dolphin-plugins() {
+	pkgdesc='Extra Dolphin plugins'
+	depends=('kdebase-dolphin')
+    optdepends=('bzr: bazaar support'
+                'git: git support'
+                'mercurial: hg support'
+                'subversion: svn support')
+	install='kdesdk.install'
+    for i in bazaar git hg svn; do
+        cd $srcdir/build/dolphin-plugins/$i
+    	make DESTDIR=$pkgdir install
+    done
+}
+
+package_kdesdk-kapptemplate() {
+	pkgdesc='KDE Template Generator'
+	depends=('kdebase-runtime')
+	url="http://kde.org/applications/development/kapptemplate/"
+	install='kdesdk.install'
+	cd $srcdir/build/kapptemplate
+	make DESTDIR=$pkgdir install
+	cd $srcdir/build/doc/kapptemplate
+	make DESTDIR=$pkgdir install
+}
+
+package_kdesdk-kcachegrind() {
+	pkgdesc='Visualization of Performance Profiling Data'
+	depends=('kdebase-runtime' 'python2')
+	optdepends=('php: PHP support')
+	url="http://kde.org/applications/development/kcachegrind/"
+	install='kdesdk-kcachegrind.install'
+	cd $srcdir/build/kcachegrind
+	make DESTDIR=$pkgdir install
+	cd $srcdir/build/doc/kcachegrind
+	make DESTDIR=$pkgdir install
+
+        # Fix python 2 path
+        sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+                "${pkgdir}"/usr/bin/hotshot2calltree
+}
+
+package_kdesdk-kdeaccounts-plugin() {
+        pkgdesc='KDE Repository Accounts'
+        depends=('kdepim-runtime')
+        cd $srcdir/build/kdeaccounts-plugin
+        make DESTDIR=$pkgdir install
+}
+
+package_kdesdk-kdepalettes() {
+	pkgdesc='Palettes for the Gimp that match the KDE standard color palette'
+	optdepends=('gimp')
+	install -D -m644 $srcdir/${pkgbase}-${pkgver}/kdepalettes/KDE_Gimp \
+		$pkgdir/usr/share/gimp/2.0/palettes/KDE.gpl
+}
+
+package_kdesdk-kioslave() {
+	pkgdesc='KDED Subversion Module'
+	depends=('kdebase-runtime' 'subversion')
+        install='kdesdk.install'
+	cd $srcdir/build/kioslave
+	make DESTDIR=$pkgdir install
+}
+
+package_kdesdk-kmtrace() {
+	pkgdesc='A KDE tool to assist with malloc debugging using glibc´s "mtrace" functionality'
+	depends=('kdebase-runtime')
+	cd $srcdir/build/kmtrace
+	make DESTDIR=$pkgdir install
+	cd $srcdir/build/doc/kmtrace
+	make DESTDIR=$pkgdir install
+}
+
+package_kdesdk-kompare() {
+	pkgdesc='Diff/Patch Frontend'
+	depends=('kdebase-runtime')
+	url="http://kde.org/applications/development/kompare/"
+	install='kdesdk.install'
+	cd $srcdir/build/kompare
+	make DESTDIR=$pkgdir install
+	cd $srcdir/build/doc/kompare
+	make DESTDIR=$pkgdir install
+}
+
+package_kdesdk-kpartloader() {
+	pkgdesc='A test application for KParts'
+	depends=('kdebase-runtime')
+	install='kdesdk.install'
+	cd $srcdir/build/kpartloader
+	make DESTDIR=$pkgdir install
+}
+
+package_kdesdk-kprofilemethod() {
+	pkgdesc='Macros helping to profile'
+	cd $srcdir/build/kprofilemethod
+	make DESTDIR=$pkgdir install
+}
+
+package_kdesdk-kspy() {
+	pkgdesc='An Object Inspector for Qt/KDE applications'
+	depends=('kdebase-runtime')
+	cd $srcdir/build/kspy
+	make DESTDIR=$pkgdir install
+}
+
+package_kdesdk-kstartperf() {
+	pkgdesc='Startup time measurement tool for KDE applications'
+	depends=('kdebase-runtime')
+	cd $srcdir/build/kstartperf
+	make DESTDIR=$pkgdir install
+}
+
+package_kdesdk-kuiviewer() {
+	pkgdesc='Qt Designer UI File Viewer'
+	depends=('kdebase-runtime')
+	url="http://kde.org/applications/development/kuiviewer/"
+	install='kdesdk-kuiviewer.install'
+	cd $srcdir/build/kuiviewer
+	make DESTDIR=$pkgdir install
+}
+
+package_kdesdk-lokalize() {
+	pkgdesc='Computer-Aided Translation System'
+	depends=('kdebase-runtime' 'kdebindings-python')
+	url="http://kde.org/applications/development/lokalize/"
+	optdepends=('translate-toolkit: enable extra python script')
+	install='kdesdk-lokalize.install'
+	cd $srcdir/build/lokalize
+	make DESTDIR=$pkgdir install
+	cd $srcdir/build/doc/lokalize
+	make DESTDIR=$pkgdir install
+
+  # Fix python 2 path
+  sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+    "${pkgdir}"/usr/share/apps/lokalize/scripts/odf/xliffmerge.py
+}
+
+package_kdesdk-okteta() {
+	pkgdesc='Hex Editor'
+	depends=('kdebase-runtime')
+	replaces=('kdeutils-okteta')
+	conflicts=('kdeutils-okteta')
+	url="http://kde.org/applications/utilities/okteta/"
+	install='kdesdk-okteta.install'
+	cd $srcdir/build/okteta
+	make DESTDIR=$pkgdir install
+	cd $srcdir/build/doc/okteta
+	make DESTDIR=$pkgdir install
+}
+
+package_kdesdk-poxml() {
+	pkgdesc='Translates DocBook XML files using gettext po files'
+	depends=('qt' 'antlr2')
+	cd $srcdir/build/poxml
+	make DESTDIR=$pkgdir install
+	cd $srcdir/build/doc/poxml
+	make DESTDIR=$pkgdir install
+}
+
+package_kdesdk-scheck() {
+	pkgdesc='An interface style to highlight accel and style guide conflicts'
+	depends=('kdebase-runtime')
+	cd $srcdir/build/scheck
+	make DESTDIR=$pkgdir install
+}
+
+package_kdesdk-scripts() {
+	pkgdesc='KDE SDK scripts'
+	depends=('python2')
+	cd $srcdir/build/scripts
+	make DESTDIR=$pkgdir install
+	cd $srcdir/build/doc/scripts
+	make DESTDIR=$pkgdir install
+
+  # Fix python 2 path
+  sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+    "${pkgdir}"/usr/bin/{{kde-systemsettings-tree,kdelnk2desktop,zonetab2pot}.py,kde_generate_export_header}
+}
+
+package_kdesdk-strigi-analyzer() {
+	pkgdesc='Strigi-Analyzer for KDE SDK'
+	depends=('kdelibs')
+	cd $srcdir/build/strigi-analyzer
+	make DESTDIR=$pkgdir install
+}
+
+package_kdesdk-umbrello() {
+	pkgdesc='UML Modeller'
+	depends=('kdebase-runtime')
+	url="http://kde.org/applications/development/umbrello/"
+	install='kdesdk-umbrello.install'
+	cd $srcdir/build/umbrello
+	make DESTDIR=$pkgdir install
+	cd $srcdir/build/doc/umbrello
+	make DESTDIR=$pkgdir install
+
+  # Fix python 2 path
+  sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+    "${pkgdir}"/usr/share/apps/umbrello/headings/heading.py
+}

Copied: kdesdk/repos/staging-x86_64/fix-python2-path.patch (from rev 152098, kdesdk/trunk/fix-python2-path.patch)
===================================================================
--- staging-x86_64/fix-python2-path.patch	                        (rev 0)
+++ staging-x86_64/fix-python2-path.patch	2012-03-04 15:01:25 UTC (rev 152099)
@@ -0,0 +1,32 @@
+--- 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'
+--- kdesdk-4.5.80/scripts/svn2log.sh~	2010-11-24 11:46:24.863333337 +0100
++++ kdesdk-4.5.80/scripts/svn2log.sh	2010-11-24 11:46:24.896666669 +0100
+@@ -17,6 +17,6 @@
+ svn cat svn://anonsvn.kde.org/home/kde/trunk/kde-common/accounts > /tmp/accounts.$PPID
+ 
+ echo "Creating changelog...";
+-svn log -v --xml $1 | python $CURRENT/svn2log.py --users=/tmp/accounts.$PPID --users-charset=UTF8
++svn log -v --xml $1 | python2 $CURRENT/svn2log.py --users=/tmp/accounts.$PPID --users-charset=UTF8
+ 
+ rm /tmp/accounts.$PPID
\ No newline at end of file

Copied: kdesdk/repos/staging-x86_64/kdesdk-cervisia.install (from rev 152098, kdesdk/trunk/kdesdk-cervisia.install)
===================================================================
--- staging-x86_64/kdesdk-cervisia.install	                        (rev 0)
+++ staging-x86_64/kdesdk-cervisia.install	2012-03-04 15:01:25 UTC (rev 152099)
@@ -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: kdesdk/repos/staging-x86_64/kdesdk-kcachegrind.install (from rev 152098, kdesdk/trunk/kdesdk-kcachegrind.install)
===================================================================
--- staging-x86_64/kdesdk-kcachegrind.install	                        (rev 0)
+++ staging-x86_64/kdesdk-kcachegrind.install	2012-03-04 15:01:25 UTC (rev 152099)
@@ -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: kdesdk/repos/staging-x86_64/kdesdk-kompare.install (from rev 152098, kdesdk/trunk/kdesdk-kompare.install)
===================================================================
--- staging-x86_64/kdesdk-kompare.install	                        (rev 0)
+++ staging-x86_64/kdesdk-kompare.install	2012-03-04 15:01:25 UTC (rev 152099)
@@ -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: kdesdk/repos/staging-x86_64/kdesdk-kuiviewer.install (from rev 152098, kdesdk/trunk/kdesdk-kuiviewer.install)
===================================================================
--- staging-x86_64/kdesdk-kuiviewer.install	                        (rev 0)
+++ staging-x86_64/kdesdk-kuiviewer.install	2012-03-04 15:01:25 UTC (rev 152099)
@@ -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: kdesdk/repos/staging-x86_64/kdesdk-lokalize.install (from rev 152098, kdesdk/trunk/kdesdk-lokalize.install)
===================================================================
--- staging-x86_64/kdesdk-lokalize.install	                        (rev 0)
+++ staging-x86_64/kdesdk-lokalize.install	2012-03-04 15:01:25 UTC (rev 152099)
@@ -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: kdesdk/repos/staging-x86_64/kdesdk-okteta.install (from rev 152098, kdesdk/trunk/kdesdk-okteta.install)
===================================================================
--- staging-x86_64/kdesdk-okteta.install	                        (rev 0)
+++ staging-x86_64/kdesdk-okteta.install	2012-03-04 15:01:25 UTC (rev 152099)
@@ -0,0 +1,12 @@
+post_install() {
+	xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+	update-mime-database usr/share/mime &> /dev/null
+}
+
+post_upgrade() {
+	post_install
+}
+
+post_remove() {
+	post_install
+}

Copied: kdesdk/repos/staging-x86_64/kdesdk-umbrello.install (from rev 152098, kdesdk/trunk/kdesdk-umbrello.install)
===================================================================
--- staging-x86_64/kdesdk-umbrello.install	                        (rev 0)
+++ staging-x86_64/kdesdk-umbrello.install	2012-03-04 15:01:25 UTC (rev 152099)
@@ -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: kdesdk/repos/staging-x86_64/kdesdk.install (from rev 152098, kdesdk/trunk/kdesdk.install)
===================================================================
--- staging-x86_64/kdesdk.install	                        (rev 0)
+++ staging-x86_64/kdesdk.install	2012-03-04 15:01:25 UTC (rev 152099)
@@ -0,0 +1,11 @@
+post_install() {
+	xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+}
+
+post_upgrade() {
+	post_install
+}
+
+post_remove() {
+	post_install
+}



More information about the arch-commits mailing list