wok-current rev 3544
Add emesene
author | Liu Peng <rocky@slitaz.org> |
---|---|
date | Tue Jun 23 11:57:38 2009 +0800 (2009-06-23) |
parents | 5a2f3102bcdd |
children | f88cf39e28c3 |
files | emesene/receipt emesene/stuff/emesene emesene/stuff/slitaz-openbox.patch |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/emesene/receipt Tue Jun 23 11:57:38 2009 +0800 1.3 @@ -0,0 +1,37 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="emesene" 1.7 +VERSION="1.0.1" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="Instant messaging client for Windows Live Messenger (tm) network." 1.10 +MAINTAINER="rocky@slitaz.org" 1.11 +DEPENDS="python pygtk pycairo pysqlite" 1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.13 +WEB_SITE="http://www.emesene.org" 1.14 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.15 + 1.16 +# Rules to configure and make the package. 1.17 +compile_rules() 1.18 +{ 1.19 + cd $src 1.20 + patch -p1 < ../stuff/slitaz-openbox.patch 1.21 +} 1.22 + 1.23 + 1.24 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.25 +genpkg_rules() 1.26 +{ 1.27 + mkdir -p $fs/usr/bin \ 1.28 + $fs/usr/share/emesene \ 1.29 + $fs/usr/share/pixmaps \ 1.30 + $fs/usr/share/applications 1.31 + 1.32 + cp stuff/emesene $fs/usr/bin 1.33 + cp -a $src/* $fs/usr/share/emesene 1.34 + cp $fs/usr/share/emesene/misc/emesene.png $fs/usr/share/pixmaps 1.35 + cp $fs/usr/share/emesene/misc/emesene.desktop $fs/usr/share/applications 1.36 + 1.37 + rm -rf $fs/usr/share/emesene/misc 1.38 + rm -rf $fs/usr/share/emesene/po 1.39 + rm -rf $fs/usr/share/emesene/doc 1.40 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/emesene/stuff/emesene Tue Jun 23 11:57:38 2009 +0800 2.3 @@ -0,0 +1,1 @@ 2.4 +/usr/share/emesene/emesene
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/emesene/stuff/slitaz-openbox.patch Tue Jun 23 11:57:38 2009 +0800 3.3 @@ -0,0 +1,25 @@ 3.4 +--- emesene-1.0.1/emesene.orig Fri Jun 19 13:58:30 2009 3.5 ++++ emesene-1.0.1/emesene Fri Jun 19 13:59:15 2009 3.6 +@@ -25,6 +25,22 @@ 3.7 + except: 3.8 + pass 3.9 + 3.10 ++# for slitaz openbox WM 3.11 ++import os 3.12 ++if not os.environ.has_key("KDE_FULL_SESSION") and \ 3.13 ++ not os.environ.has_key("DESKTOP_SESSION") and \ 3.14 ++ not os.environ.has_key("GNOME_DESKTOP_SESSION_ID"): 3.15 ++ if not os.environ.has_key("DESKTOP_LAUNCH"): 3.16 ++ if os.path.isfile('/usr/bin/firefox'): 3.17 ++ browser = '/usr/bin/firefox ' 3.18 ++ elif os.path.isfile('/usr/bin/opera'): 3.19 ++ browser = '/usr/bin/opera ' 3.20 ++ elif os.path.isfile('/usr/bin/midori'): 3.21 ++ browser = '/usr/bin/midori ' 3.22 ++ 3.23 ++ if browser: 3.24 ++ os.environ["DESKTOP_LAUNCH"] = browser 3.25 ++ 3.26 + try: 3.27 + from emesene import Controller 3.28 + except ImportError: