diff --git a/desktop/misc/xdg-utils/actions.py b/desktop/misc/xdg-utils/actions.py new file mode 100644 index 0000000000..49cd44e248 --- /dev/null +++ b/desktop/misc/xdg-utils/actions.py @@ -0,0 +1,19 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import get + +def setup(): + autotools.autoreconf("-vif") + autotools.configure() + +def build(): + autotools.make() + +def install(): + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) diff --git a/desktop/misc/xdg-utils/files/drop-xmlto-stuff.patch b/desktop/misc/xdg-utils/files/drop-xmlto-stuff.patch new file mode 100644 index 0000000000..9aa060c7e4 --- /dev/null +++ b/desktop/misc/xdg-utils/files/drop-xmlto-stuff.patch @@ -0,0 +1,13 @@ +Index: xdg-utils-1.0.2.20100618/scripts/Makefile.in +=================================================================== +--- xdg-utils-1.0.2.20100618.orig/scripts/Makefile.in ++++ xdg-utils-1.0.2.20100618/scripts/Makefile.in +@@ -5,7 +5,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(IN + INSTALL_LIBRARY = @INSTALL_PROGRAM@ $(INSTALL_PROGRAM_FLAGS) + INSTALL_SCRIPT = @INSTALL_SCRIPT@ $(INSTALL_SCRIPT_FLAGS) + INSTALL_DATA = @INSTALL_DATA@ $(INSTALL_DATA_FLAGS) +-XMLTO = @XMLTO@ ++XMLTO = @XMLTO@ --skip-validation + + prefix = @prefix@ + exec_prefix = @exec_prefix@ diff --git a/desktop/misc/xdg-utils/files/enable-other-xdg.patch b/desktop/misc/xdg-utils/files/enable-other-xdg.patch new file mode 100644 index 0000000000..a020b2c923 --- /dev/null +++ b/desktop/misc/xdg-utils/files/enable-other-xdg.patch @@ -0,0 +1,20 @@ +diff -Nur xdg-utils-1.0.2.20100618-old//scripts/Makefile.in xdg-utils-1.0.2.20100618//scripts/Makefile.in +--- xdg-utils-1.0.2.20100618-old//scripts/Makefile.in 2010-10-27 10:39:56.381000014 +0300 ++++ xdg-utils-1.0.2.20100618//scripts/Makefile.in 2010-10-27 10:41:44.799000093 +0300 +@@ -20,11 +20,11 @@ + xdg-open \ + xdg-email \ + xdg-screensaver \ +- xdg-settings +-# xdg-su +-# xdg-copy \ +-# xdg-file-dialog +-# xdg-terminal ++ xdg-settings \ ++ xdg-su \ ++ xdg-copy \ ++ xdg-file-dialog \ ++ xdg-terminal + + MANPAGES= $(SCRIPTS:%=man/%.1) + WEBPAGES= $(SCRIPTS:%=%.html) diff --git a/desktop/misc/xdg-utils/files/gksu.patch b/desktop/misc/xdg-utils/files/gksu.patch new file mode 100644 index 0000000000..2f55acb754 --- /dev/null +++ b/desktop/misc/xdg-utils/files/gksu.patch @@ -0,0 +1,42 @@ +Index: xdg-utils-1.0.2/scripts/xdg-su +=================================================================== +--- xdg-utils-1.0.2.orig/scripts/xdg-su ++++ xdg-utils-1.0.2/scripts/xdg-su +@@ -351,6 +351,26 @@ su_gnome() + exit_failure_operation_failed + fi + else ++ su_gk ++ fi ++} ++ ++su_gk() ++{ ++ GKSU=`which gksu 2>/dev/null` ++ if [ $? -eq 0 ] ; then ++ if [ -z "$user" ] ; then ++ $GKSU "$cmd" ++ else ++ $GKSU -u "$user" "$cmd" ++ fi ++ ++ if [ $? -eq 0 ]; then ++ exit_success ++ else ++ exit_failure_operation_failed ++ fi ++ else + su_generic + fi + } +@@ -427,6 +447,10 @@ case "$DE" in + su_gnome + ;; + ++ xfce) ++ su_gk ++ ;; ++ + generic) + su_generic + ;; diff --git a/desktop/misc/xdg-utils/files/xfce-detection.patch b/desktop/misc/xdg-utils/files/xfce-detection.patch new file mode 100644 index 0000000000..06445bf86c --- /dev/null +++ b/desktop/misc/xdg-utils/files/xfce-detection.patch @@ -0,0 +1,11 @@ +--- scripts/xdg-utils-common.in.OSmanOS 2012-10-08 18:26:46.000000000 +0300 ++++ scripts/xdg-utils-common.in 2013-04-05 18:22:55.816631216 +0300 +@@ -280,7 +280,7 @@ + elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome; + elif [ x"$MATE_DESKTOP_SESSION_ID" != x"" ]; then DE=mate; + elif `dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetNameOwner string:org.gnome.SessionManager > /dev/null 2>&1` ; then DE=gnome; +- elif xprop -root _DT_SAVE_MODE 2> /dev/null | grep ' = \"xfce4\"$' >/dev/null 2>&1; then DE=xfce; ++ elif xprop -root | grep -qw XFCE_DESKTOP_WINDOW 2>&1; then DE=xfce; + elif xprop -root 2> /dev/null | grep -i '^xfce_desktop_window' >/dev/null 2>&1; then DE=xfce + fi + fi diff --git a/desktop/misc/xdg-utils/pspec.xml b/desktop/misc/xdg-utils/pspec.xml new file mode 100644 index 0000000000..a2d2b94b74 --- /dev/null +++ b/desktop/misc/xdg-utils/pspec.xml @@ -0,0 +1,68 @@ + + + + + xdg-utils + http://portland.freedesktop.org/wiki/ + + PisiLinux Community + admins@pisilinux.org + + MIT + app:console + Common desktop utilities + Xdg-utils is a set of command line tools that assist applications with a variety of desktop integration tasks. About half of the tools focus on tasks commonly required during the installation of a desktop application and the other half focuses on integration with the desktop environment while the application is running. + http://source.pisilinux.org/1.0/xdg-utils.tar.xz + + xmlto + docbook-xsl + lynx + + + + enable-other-xdg.patch + xfce-detection.patch + + drop-xmlto-stuff.patch + + + + + xdg-utils + + /usr/bin + /usr/share/man + + + + + + 2014-02-16 + 1.1.0_20140207 + Version bump. + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + 2013-10-23 + 20131006 + Release bump. + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + 2013-08-26 + 1.1.0_rc1 + Release bump. + Serdar Soytetir + kaptan@pisilinux.org + + + 2013-04-05 + 1.1.0_rc1 + First release + Pisi Linux Admins + admins@pisilinux.org + + + \ No newline at end of file diff --git a/desktop/misc/xdg-utils/translations.xml b/desktop/misc/xdg-utils/translations.xml new file mode 100644 index 0000000000..21bf42fa08 --- /dev/null +++ b/desktop/misc/xdg-utils/translations.xml @@ -0,0 +1,8 @@ + + + + xdg-utils + Ortak masaüstü komutları + Utilitaires de bureaux communs. + +