xdg-utils:moved into main repo for pisi 2.0
This commit is contained in:
@@ -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())
|
||||
@@ -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@
|
||||
@@ -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)
|
||||
@@ -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
|
||||
;;
|
||||
@@ -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
|
||||
@@ -0,0 +1,68 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>xdg-utils</Name>
|
||||
<Homepage>http://portland.freedesktop.org/wiki/</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>MIT</License>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>Common desktop utilities</Summary>
|
||||
<Description>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.</Description>
|
||||
<Archive sha1sum="c72dde66a056aebcc376aae3be6f91e8d76ae2b5" type="tarxz">http://source.pisilinux.org/1.0/xdg-utils.tar.xz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>xmlto</Dependency>
|
||||
<Dependency>docbook-xsl</Dependency>
|
||||
<Dependency>lynx</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<!-- <Patch level="1">gksu.patch</Patch> -->
|
||||
<Patch level="1">enable-other-xdg.patch</Patch>
|
||||
<Patch level="0">xfce-detection.patch</Patch>
|
||||
<!--<Patch level="1">fix-terminal-detection.patch</Patch>--> <!--Fixed-->
|
||||
<Patch level="1">drop-xmlto-stuff.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>xdg-utils</Name>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="4">
|
||||
<Date>2014-02-16</Date>
|
||||
<Version>1.1.0_20140207</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Yusuf Aydemir</Name>
|
||||
<Email>yusuf.aydemir@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2013-10-23</Date>
|
||||
<Version>20131006</Version>
|
||||
<Comment>Release bump.</Comment>
|
||||
<Name>Yusuf Aydemir</Name>
|
||||
<Email>yusuf.aydemir@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2013-08-26</Date>
|
||||
<Version>1.1.0_rc1</Version>
|
||||
<Comment>Release bump.</Comment>
|
||||
<Name>Serdar Soytetir</Name>
|
||||
<Email>kaptan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2013-04-05</Date>
|
||||
<Version>1.1.0_rc1</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Pisi Linux Admins</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>xdg-utils</Name>
|
||||
<Summary xml:lang="tr">Ortak masaüstü komutları</Summary>
|
||||
<Summary xml:lang="fr">Utilitaires de bureaux communs.</Summary>
|
||||
</Source>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user