[arch-commits] Commit in synapse/repos (12 files)

Jan Steffens heftig at nymeria.archlinux.org
Wed Apr 10 19:20:22 UTC 2013


    Date: Wednesday, April 10, 2013 @ 21:20:22
  Author: heftig
Revision: 88059

db-move: moved synapse from [community-staging] to [community-testing] (i686, x86_64)

Added:
  synapse/repos/community-testing-i686/
  synapse/repos/community-testing-i686/PKGBUILD
    (from rev 88050, synapse/repos/community-staging-i686/PKGBUILD)
  synapse/repos/community-testing-i686/check-null-exec.patch
    (from rev 88050, synapse/repos/community-staging-i686/check-null-exec.patch)
  synapse/repos/community-testing-i686/fix-check-desktop.patch
    (from rev 88050, synapse/repos/community-staging-i686/fix-check-desktop.patch)
  synapse/repos/community-testing-i686/synapse.install
    (from rev 88050, synapse/repos/community-staging-i686/synapse.install)
  synapse/repos/community-testing-x86_64/
  synapse/repos/community-testing-x86_64/PKGBUILD
    (from rev 88050, synapse/repos/community-staging-x86_64/PKGBUILD)
  synapse/repos/community-testing-x86_64/check-null-exec.patch
    (from rev 88050, synapse/repos/community-staging-x86_64/check-null-exec.patch)
  synapse/repos/community-testing-x86_64/fix-check-desktop.patch
    (from rev 88050, synapse/repos/community-staging-x86_64/fix-check-desktop.patch)
  synapse/repos/community-testing-x86_64/synapse.install
    (from rev 88050, synapse/repos/community-staging-x86_64/synapse.install)
Deleted:
  synapse/repos/community-staging-i686/
  synapse/repos/community-staging-x86_64/

--------------------------------------------------+
 community-testing-i686/PKGBUILD                  |   54 +++++++++++++++++++++
 community-testing-i686/check-null-exec.patch     |   16 ++++++
 community-testing-i686/fix-check-desktop.patch   |   30 +++++++++++
 community-testing-i686/synapse.install           |   13 +++++
 community-testing-x86_64/PKGBUILD                |   54 +++++++++++++++++++++
 community-testing-x86_64/check-null-exec.patch   |   16 ++++++
 community-testing-x86_64/fix-check-desktop.patch |   30 +++++++++++
 community-testing-x86_64/synapse.install         |   13 +++++
 8 files changed, 226 insertions(+)

Copied: synapse/repos/community-testing-i686/PKGBUILD (from rev 88050, synapse/repos/community-staging-i686/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2013-04-10 19:20:22 UTC (rev 88059)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: Alessio Sergi <asergi at archlinux dot us>
+
+pkgname=synapse
+pkgver=0.2.10
+pkgrel=5
+pkgdesc="A semantic file launcher"
+arch=('i686' 'x86_64')
+url="https://launchpad.net/synapse-project"
+license=('GPL3')
+depends=('gtkhotkey' 'hicolor-icon-theme' 'json-glib' 'libgee06' 'libnotify' \
+         'libunique' 'libzeitgeist' 'rest' 'xdg-utils')
+makedepends=('intltool' 'vala')
+optdepends=('banshee: banshee plugin'
+            'bc: calculator plugin'
+            'devhelp: documentation plugin'
+            'gnome-screensaver: screensaver plugin'
+            'gnome-dictionary: dictionary plugin'
+            'openssh: ssh plugin'
+            'pastebinit: pastebin plugin'
+            'rhythmbox: rhythmbox plugin'
+            'xnoise: xnoise plugin')
+install=$pkgname.install
+source=("https://launchpad.net/$pkgname-project/0.2/$pkgver/+download/$pkgname-$pkgver.tar.gz"
+        "fix-check-desktop.patch"
+        "check-null-exec.patch")
+sha1sums=('6e8a800bdbdded4e167734c8e49d95a9e44998ff'
+          'b64fa4efc4efd01f77f84d19a7a63c10186d0211'
+          'f494e5b36a77421114ce04b7085369abe5c00d68')
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  # XDG_CURRENT_DESKTOP fix
+  patch -Np1 -i "$srcdir"/fix-check-desktop.patch
+
+  # don't crash on empty Exec field
+  patch -Np1 -i "$srcdir"/check-null-exec.patch
+
+  # DSO fix
+  export LDFLAGS="$LDFLAGS -lm"
+
+  ./configure --prefix=/usr
+  make
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  make DESTDIR="$pkgdir/" install
+}
+
+# vim:set ts=2 sw=2 et:

Copied: synapse/repos/community-testing-i686/check-null-exec.patch (from rev 88050, synapse/repos/community-staging-i686/check-null-exec.patch)
===================================================================
--- community-testing-i686/check-null-exec.patch	                        (rev 0)
+++ community-testing-i686/check-null-exec.patch	2013-04-10 19:20:22 UTC (rev 88059)
@@ -0,0 +1,16 @@
+diff -Naur synapse-0.2.10.orig/src/core/desktop-file-service.vala synapse-0.2.10/src/core/desktop-file-service.vala
+--- synapse-0.2.10.orig/src/core/desktop-file-service.vala	2012-03-18 20:02:41.000000000 +0100
++++ synapse-0.2.10/src/core/desktop-file-service.vala	2012-12-26 18:07:55.962276823 +0100
+@@ -125,7 +125,11 @@
+         }
+ 
+         name = app_info.get_name ();
+-        exec = app_info.get_executable ();
++        exec = app_info.get_commandline ();
++        if (exec == null)
++        {
++          throw new DesktopFileError.UNINTERESTING_ENTRY ("Unable to get exec for %s".printf (name));
++        }
+ 
+         // check for hidden desktop files
+         if (keyfile.has_key (GROUP, "Hidden") &&

Copied: synapse/repos/community-testing-i686/fix-check-desktop.patch (from rev 88050, synapse/repos/community-staging-i686/fix-check-desktop.patch)
===================================================================
--- community-testing-i686/fix-check-desktop.patch	                        (rev 0)
+++ community-testing-i686/fix-check-desktop.patch	2013-04-10 19:20:22 UTC (rev 88059)
@@ -0,0 +1,30 @@
+diff -Naur synapse-0.2.10.orig/src/core/desktop-file-service.vala synapse-0.2.10/src/core/desktop-file-service.vala
+--- synapse-0.2.10.orig/src/core/desktop-file-service.vala	2012-03-18 20:02:41.000000000 +0100
++++ synapse-0.2.10/src/core/desktop-file-service.vala	2012-03-19 12:06:43.080443401 +0100
+@@ -248,13 +248,23 @@
+     
+     private void get_environment_type ()
+     {
+-      unowned string? session_var = Environment.get_variable ("DESKTOP_SESSION");
+-      
++      unowned string? session_var;
++      session_var = Environment.get_variable ("XDG_CURRENT_DESKTOP");
++      if (session_var == null)
++      {
++        session_var = Environment.get_variable ("DESKTOP_SESSION");
++      }
++
+       if (session_var == null) return;
+ 
+       string session = session_var.down ();
+ 
+-      if (session.has_prefix ("kde"))
++      if (session.has_prefix ("unity"))
++      {
++        session_type = DesktopFileInfo.EnvironmentType.UNITY;
++        session_type_str = "Unity";
++      }
++      else if (session.has_prefix ("kde"))
+       {
+         session_type = DesktopFileInfo.EnvironmentType.KDE;
+         session_type_str = "KDE";

Copied: synapse/repos/community-testing-i686/synapse.install (from rev 88050, synapse/repos/community-staging-i686/synapse.install)
===================================================================
--- community-testing-i686/synapse.install	                        (rev 0)
+++ community-testing-i686/synapse.install	2013-04-10 19:20:22 UTC (rev 88059)
@@ -0,0 +1,13 @@
+post_install() {
+  xdg-icon-resource forceupdate --theme hicolor &>/dev/null
+}
+
+post_upgrade() {
+  post_install "$1"
+}
+
+post_remove() {
+  post_install "$1"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: synapse/repos/community-testing-x86_64/PKGBUILD (from rev 88050, synapse/repos/community-staging-x86_64/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2013-04-10 19:20:22 UTC (rev 88059)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: Alessio Sergi <asergi at archlinux dot us>
+
+pkgname=synapse
+pkgver=0.2.10
+pkgrel=5
+pkgdesc="A semantic file launcher"
+arch=('i686' 'x86_64')
+url="https://launchpad.net/synapse-project"
+license=('GPL3')
+depends=('gtkhotkey' 'hicolor-icon-theme' 'json-glib' 'libgee06' 'libnotify' \
+         'libunique' 'libzeitgeist' 'rest' 'xdg-utils')
+makedepends=('intltool' 'vala')
+optdepends=('banshee: banshee plugin'
+            'bc: calculator plugin'
+            'devhelp: documentation plugin'
+            'gnome-screensaver: screensaver plugin'
+            'gnome-dictionary: dictionary plugin'
+            'openssh: ssh plugin'
+            'pastebinit: pastebin plugin'
+            'rhythmbox: rhythmbox plugin'
+            'xnoise: xnoise plugin')
+install=$pkgname.install
+source=("https://launchpad.net/$pkgname-project/0.2/$pkgver/+download/$pkgname-$pkgver.tar.gz"
+        "fix-check-desktop.patch"
+        "check-null-exec.patch")
+sha1sums=('6e8a800bdbdded4e167734c8e49d95a9e44998ff'
+          'b64fa4efc4efd01f77f84d19a7a63c10186d0211'
+          'f494e5b36a77421114ce04b7085369abe5c00d68')
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  # XDG_CURRENT_DESKTOP fix
+  patch -Np1 -i "$srcdir"/fix-check-desktop.patch
+
+  # don't crash on empty Exec field
+  patch -Np1 -i "$srcdir"/check-null-exec.patch
+
+  # DSO fix
+  export LDFLAGS="$LDFLAGS -lm"
+
+  ./configure --prefix=/usr
+  make
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  make DESTDIR="$pkgdir/" install
+}
+
+# vim:set ts=2 sw=2 et:

Copied: synapse/repos/community-testing-x86_64/check-null-exec.patch (from rev 88050, synapse/repos/community-staging-x86_64/check-null-exec.patch)
===================================================================
--- community-testing-x86_64/check-null-exec.patch	                        (rev 0)
+++ community-testing-x86_64/check-null-exec.patch	2013-04-10 19:20:22 UTC (rev 88059)
@@ -0,0 +1,16 @@
+diff -Naur synapse-0.2.10.orig/src/core/desktop-file-service.vala synapse-0.2.10/src/core/desktop-file-service.vala
+--- synapse-0.2.10.orig/src/core/desktop-file-service.vala	2012-03-18 20:02:41.000000000 +0100
++++ synapse-0.2.10/src/core/desktop-file-service.vala	2012-12-26 18:07:55.962276823 +0100
+@@ -125,7 +125,11 @@
+         }
+ 
+         name = app_info.get_name ();
+-        exec = app_info.get_executable ();
++        exec = app_info.get_commandline ();
++        if (exec == null)
++        {
++          throw new DesktopFileError.UNINTERESTING_ENTRY ("Unable to get exec for %s".printf (name));
++        }
+ 
+         // check for hidden desktop files
+         if (keyfile.has_key (GROUP, "Hidden") &&

Copied: synapse/repos/community-testing-x86_64/fix-check-desktop.patch (from rev 88050, synapse/repos/community-staging-x86_64/fix-check-desktop.patch)
===================================================================
--- community-testing-x86_64/fix-check-desktop.patch	                        (rev 0)
+++ community-testing-x86_64/fix-check-desktop.patch	2013-04-10 19:20:22 UTC (rev 88059)
@@ -0,0 +1,30 @@
+diff -Naur synapse-0.2.10.orig/src/core/desktop-file-service.vala synapse-0.2.10/src/core/desktop-file-service.vala
+--- synapse-0.2.10.orig/src/core/desktop-file-service.vala	2012-03-18 20:02:41.000000000 +0100
++++ synapse-0.2.10/src/core/desktop-file-service.vala	2012-03-19 12:06:43.080443401 +0100
+@@ -248,13 +248,23 @@
+     
+     private void get_environment_type ()
+     {
+-      unowned string? session_var = Environment.get_variable ("DESKTOP_SESSION");
+-      
++      unowned string? session_var;
++      session_var = Environment.get_variable ("XDG_CURRENT_DESKTOP");
++      if (session_var == null)
++      {
++        session_var = Environment.get_variable ("DESKTOP_SESSION");
++      }
++
+       if (session_var == null) return;
+ 
+       string session = session_var.down ();
+ 
+-      if (session.has_prefix ("kde"))
++      if (session.has_prefix ("unity"))
++      {
++        session_type = DesktopFileInfo.EnvironmentType.UNITY;
++        session_type_str = "Unity";
++      }
++      else if (session.has_prefix ("kde"))
+       {
+         session_type = DesktopFileInfo.EnvironmentType.KDE;
+         session_type_str = "KDE";

Copied: synapse/repos/community-testing-x86_64/synapse.install (from rev 88050, synapse/repos/community-staging-x86_64/synapse.install)
===================================================================
--- community-testing-x86_64/synapse.install	                        (rev 0)
+++ community-testing-x86_64/synapse.install	2013-04-10 19:20:22 UTC (rev 88059)
@@ -0,0 +1,13 @@
+post_install() {
+  xdg-icon-resource forceupdate --theme hicolor &>/dev/null
+}
+
+post_upgrade() {
+  post_install "$1"
+}
+
+post_remove() {
+  post_install "$1"
+}
+
+# vim:set ts=2 sw=2 et:




More information about the arch-commits mailing list