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

Felix Yan fyan at nymeria.archlinux.org
Tue Apr 9 04:11:41 UTC 2013


    Date: Tuesday, April 9, 2013 @ 06:11:41
  Author: fyan
Revision: 87943

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

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

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

Copied: synapse/repos/community-staging-i686/PKGBUILD (from rev 87942, synapse/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2013-04-09 04:11:41 UTC (rev 87943)
@@ -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=4
+pkgdesc="A semantic file launcher"
+arch=('i686' 'x86_64')
+url="https://launchpad.net/synapse-project"
+license=('GPL3')
+depends=('gtkhotkey' 'hicolor-icon-theme' 'json-glib' 'libgee' 'libnotify' \
+         'libunique' 'libzeitgeist' 'rest' 'xdg-utils')
+makedepends=('intltool' 'vala')
+optdepends=('banshee: banshee plugin'
+            'bc: calculator plugin'
+            'devhelp: documentation plugin'
+            'gnome-screensaver: screensaver plugin'
+            'gnome-utils: 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-staging-i686/check-null-exec.patch (from rev 87942, synapse/trunk/check-null-exec.patch)
===================================================================
--- community-staging-i686/check-null-exec.patch	                        (rev 0)
+++ community-staging-i686/check-null-exec.patch	2013-04-09 04:11:41 UTC (rev 87943)
@@ -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-staging-i686/fix-check-desktop.patch (from rev 87942, synapse/trunk/fix-check-desktop.patch)
===================================================================
--- community-staging-i686/fix-check-desktop.patch	                        (rev 0)
+++ community-staging-i686/fix-check-desktop.patch	2013-04-09 04:11:41 UTC (rev 87943)
@@ -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-staging-i686/synapse.install (from rev 87942, synapse/trunk/synapse.install)
===================================================================
--- community-staging-i686/synapse.install	                        (rev 0)
+++ community-staging-i686/synapse.install	2013-04-09 04:11:41 UTC (rev 87943)
@@ -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-staging-x86_64/PKGBUILD (from rev 87942, synapse/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2013-04-09 04:11:41 UTC (rev 87943)
@@ -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=4
+pkgdesc="A semantic file launcher"
+arch=('i686' 'x86_64')
+url="https://launchpad.net/synapse-project"
+license=('GPL3')
+depends=('gtkhotkey' 'hicolor-icon-theme' 'json-glib' 'libgee' 'libnotify' \
+         'libunique' 'libzeitgeist' 'rest' 'xdg-utils')
+makedepends=('intltool' 'vala')
+optdepends=('banshee: banshee plugin'
+            'bc: calculator plugin'
+            'devhelp: documentation plugin'
+            'gnome-screensaver: screensaver plugin'
+            'gnome-utils: 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-staging-x86_64/check-null-exec.patch (from rev 87942, synapse/trunk/check-null-exec.patch)
===================================================================
--- community-staging-x86_64/check-null-exec.patch	                        (rev 0)
+++ community-staging-x86_64/check-null-exec.patch	2013-04-09 04:11:41 UTC (rev 87943)
@@ -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-staging-x86_64/fix-check-desktop.patch (from rev 87942, synapse/trunk/fix-check-desktop.patch)
===================================================================
--- community-staging-x86_64/fix-check-desktop.patch	                        (rev 0)
+++ community-staging-x86_64/fix-check-desktop.patch	2013-04-09 04:11:41 UTC (rev 87943)
@@ -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-staging-x86_64/synapse.install (from rev 87942, synapse/trunk/synapse.install)
===================================================================
--- community-staging-x86_64/synapse.install	                        (rev 0)
+++ community-staging-x86_64/synapse.install	2013-04-09 04:11:41 UTC (rev 87943)
@@ -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