diff options
author | Wulf Krueger <philantrop@gentoo.org> | 2007-09-21 16:11:51 +0000 |
---|---|---|
committer | Wulf Krueger <philantrop@gentoo.org> | 2007-09-21 16:11:51 +0000 |
commit | 2ef208efca1d7e4d592986c742f25dc8e77efeb8 (patch) | |
tree | 3f959b216f7f369c214cf8fe2018ef3c7a32b6ab | |
parent | Version bump to kvm-43. Removed obsolete and buggy version 42. (diff) | |
download | philantrop-2ef208efca1d7e4d592986c742f25dc8e77efeb8.tar.gz philantrop-2ef208efca1d7e4d592986c742f25dc8e77efeb8.tar.bz2 philantrop-2ef208efca1d7e4d592986c742f25dc8e77efeb8.zip |
Initial ebuild for qemulator-0.5.
svn path=/trunk/; revision=40
-rw-r--r-- | app-emulation/qemulator/ChangeLog | 10 | ||||
-rw-r--r-- | app-emulation/qemulator/Manifest | 16 | ||||
-rw-r--r-- | app-emulation/qemulator/files/digest-qemulator-0.5 | 3 | ||||
-rw-r--r-- | app-emulation/qemulator/files/qemulator-0.5-basedir-new.patch | 267 | ||||
-rw-r--r-- | app-emulation/qemulator/files/qemulator-0.5-basedir.patch | 351 | ||||
-rw-r--r-- | app-emulation/qemulator/metadata.xml | 9 | ||||
-rw-r--r-- | app-emulation/qemulator/qemulator-0.5.ebuild | 61 |
7 files changed, 717 insertions, 0 deletions
diff --git a/app-emulation/qemulator/ChangeLog b/app-emulation/qemulator/ChangeLog new file mode 100644 index 0000000..ed4dbe9 --- /dev/null +++ b/app-emulation/qemulator/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-emulation/qemulator +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 21 Sep 2007; Wulf C. Krueger <philantrop@gentoo.org> + +files/qemulator-0.5-basedir.patch, + +files/qemulator-0.5-basedir-new.patch, +metadata.xml, + +qemulator-0.5.ebuild: + Initial ebuild for qemulator-0.5 + diff --git a/app-emulation/qemulator/Manifest b/app-emulation/qemulator/Manifest new file mode 100644 index 0000000..adc9ccf --- /dev/null +++ b/app-emulation/qemulator/Manifest @@ -0,0 +1,16 @@ +AUX qemulator-0.5-basedir-new.patch 10465 RMD160 3c70b81a2bab08d7943571a6b211a0705d60d4a7 SHA1 fe8d11727df0111a12f3c446187c72589a9a2a07 SHA256 33b85fdae445b1370f02522d9df2e37baf11396004717070b33cdafefda0bfb1 +MD5 3e12c9b2d14f7fc438f94a217858fd0e files/qemulator-0.5-basedir-new.patch 10465 +RMD160 3c70b81a2bab08d7943571a6b211a0705d60d4a7 files/qemulator-0.5-basedir-new.patch 10465 +SHA256 33b85fdae445b1370f02522d9df2e37baf11396004717070b33cdafefda0bfb1 files/qemulator-0.5-basedir-new.patch 10465 +AUX qemulator-0.5-basedir.patch 13355 RMD160 54ec665290dd8d45c7e646615c05b78403f343be SHA1 eba5eb799a1148cf8890c14efd503e72a9b7d220 SHA256 0e8714061db0a4eb1b22ef2f2129e7dc3f2ad64fa3e1903b9abe4c9579353e10 +MD5 d46d6a6a2659aac97f339217b4c9812c files/qemulator-0.5-basedir.patch 13355 +RMD160 54ec665290dd8d45c7e646615c05b78403f343be files/qemulator-0.5-basedir.patch 13355 +SHA256 0e8714061db0a4eb1b22ef2f2129e7dc3f2ad64fa3e1903b9abe4c9579353e10 files/qemulator-0.5-basedir.patch 13355 +DIST dodownload.php?file=Qemulator-0.5.tar.gz 769783 RMD160 7c5e316467cb63c364ae698b2d5351ae5576c0ee SHA1 100969511d94986f38d54996d09744cb2c9e00cb SHA256 c658a329214ed557c73dc3f165f4aed65990b4a9a7001e6b1aa9ac904f2abc5a +EBUILD qemulator-0.5.ebuild 1293 RMD160 d2e988134ad35feeb09b76f27852703aa5304462 SHA1 418d4dee7a36087daa29eb0b99b6cb8ea0b87231 SHA256 63d8abd4769333e99f0b7c7393790d24857c11de66d54d110151171f1b0c4c11 +MD5 49b29e10a43eac1a88c3bfb42b37862e qemulator-0.5.ebuild 1293 +RMD160 d2e988134ad35feeb09b76f27852703aa5304462 qemulator-0.5.ebuild 1293 +SHA256 63d8abd4769333e99f0b7c7393790d24857c11de66d54d110151171f1b0c4c11 qemulator-0.5.ebuild 1293 +MD5 b138d68a236396bb38ef5d57fa2df3f9 files/digest-qemulator-0.5 301 +RMD160 96b2eb0d97f431e031df3ca7fd110ebe8843bcc8 files/digest-qemulator-0.5 301 +SHA256 1f371b4519c2fe092105923631445deb160254cc7b6a7f10f4b4eec824bc8c3d files/digest-qemulator-0.5 301 diff --git a/app-emulation/qemulator/files/digest-qemulator-0.5 b/app-emulation/qemulator/files/digest-qemulator-0.5 new file mode 100644 index 0000000..30980d9 --- /dev/null +++ b/app-emulation/qemulator/files/digest-qemulator-0.5 @@ -0,0 +1,3 @@ +MD5 a2ab585f2a987b5fafa5f76b785d6c1a dodownload.php?file=Qemulator-0.5.tar.gz 769783 +RMD160 7c5e316467cb63c364ae698b2d5351ae5576c0ee dodownload.php?file=Qemulator-0.5.tar.gz 769783 +SHA256 c658a329214ed557c73dc3f165f4aed65990b4a9a7001e6b1aa9ac904f2abc5a dodownload.php?file=Qemulator-0.5.tar.gz 769783 diff --git a/app-emulation/qemulator/files/qemulator-0.5-basedir-new.patch b/app-emulation/qemulator/files/qemulator-0.5-basedir-new.patch new file mode 100644 index 0000000..b7e7f6e --- /dev/null +++ b/app-emulation/qemulator/files/qemulator-0.5-basedir-new.patch @@ -0,0 +1,267 @@ +diff -Naur Qemulator-0.5.orig/usr/local/lib/qemulator/qml_audioenviron.py Qemulator-0.5/usr/local/lib/qemulator/qml_audioenviron.py +--- Qemulator-0.5.orig/usr/local/lib/qemulator/qml_audioenviron.py 2007-05-20 09:12:02.000000000 +0200 ++++ Qemulator-0.5/usr/local/lib/qemulator/qml_audioenviron.py 2007-07-26 15:10:06.000000000 +0200 +@@ -44,21 +44,15 @@ + + #for param in os.environ.keys(): + # print "%20s %s" % (param,os.environ[param]) +- +-current_path = os.path.realpath(__file__) +-basedir = os.path.dirname(os.path.realpath(__file__)) +-if not os.path.exists(os.path.join(basedir, "main.py")): +- if os.path.exists(os.path.join(os.getcwd(), "main.py")): +- basedir = os.getcwd() +-sys.path.insert(0, basedir) +-os.chdir(basedir) ++ ++_libdir = "@GENTOO_LIBDIR@" ++basedir = "/usr" ++ + #print "basedir: " + basedir +-basedir = basedir.replace ( '/bin', '' ) +-basedir = basedir.replace ( '/lib/qemulator', '' ) + sys.path.append(basedir) + bindir = basedir + "/bin" + #print "bindir: " + bindir +-libdir = basedir + "/lib/qemulator" ++libdir = basedir + "/" + _libdir + "/qemulator" + #print "libdir: " + libdir + sharedir = basedir + "/share/qemulator" + #print "sharedir: " + sharedir +diff -Naur Qemulator-0.5.orig/usr/local/lib/qemulator/qml_configuration.py Qemulator-0.5/usr/local/lib/qemulator/qml_configuration.py +--- Qemulator-0.5.orig/usr/local/lib/qemulator/qml_configuration.py 2007-05-17 03:53:39.000000000 +0200 ++++ Qemulator-0.5/usr/local/lib/qemulator/qml_configuration.py 2007-07-26 15:09:12.000000000 +0200 +@@ -45,17 +45,10 @@ + except: + print "locale and/or gettext for language support not installed" + sys.exit(1) +- +-current_path = os.path.realpath(__file__) +-basedir = os.path.dirname(os.path.realpath(__file__)) +-if not os.path.exists(os.path.join(basedir, "main.py")): +- if os.path.exists(os.path.join(os.getcwd(), "main.py")): +- basedir = os.getcwd() +-sys.path.insert(0, basedir) +- +-basedir = basedir.replace ( '/bin', '' ) +-basedir = basedir.replace ( '/lib/qemulator', '' ) + ++_libdir = "@GENTOO_LIBDIR@" ++basedir = "/usr" ++ + APP = 'Qemulator' + #DIR = 'locale' + DIR = basedir + '/share/locale' +@@ -71,7 +64,7 @@ + + homedir = os.path.expanduser('~/.qemulator') + configdir = homedir + "/config" +-libdir = basedir + "/lib/qemulator" ++libdir = basedir + "/" + _libdir + "/qemulator" + class Configuration: + def __init__(self, callback_func=None): + self.settings_autoshow = True +@@ -604,4 +597,4 @@ + except: + outdata = { } + print "no config file" +- return outdata +\ No newline at end of file ++ return outdata +diff -Naur Qemulator-0.5.orig/usr/local/lib/qemulator/qml_controlmon.py Qemulator-0.5/usr/local/lib/qemulator/qml_controlmon.py +--- Qemulator-0.5.orig/usr/local/lib/qemulator/qml_controlmon.py 2007-05-30 11:14:48.000000000 +0200 ++++ Qemulator-0.5/usr/local/lib/qemulator/qml_controlmon.py 2007-07-26 15:11:23.000000000 +0200 +@@ -55,19 +55,13 @@ + print "locale and/or gettext for language support not installed" + sys.exit(1) + +-current_path = os.path.realpath(__file__) +-basedir = os.path.dirname(os.path.realpath(__file__)) +-if not os.path.exists(os.path.join(basedir, "main.py")): +- if os.path.exists(os.path.join(os.getcwd(), "main.py")): +- basedir = os.getcwd() +-sys.path.insert(0, basedir) ++_libdir = "@GENTOO_LIBDIR@" ++basedir = "/usr" + +-basedir = basedir.replace ( '/bin', '' ) +-basedir = basedir.replace ( '/lib/qemulator', '' ) + sys.path.append(basedir) + bindir = basedir + "/bin" + #print "bindir: " + bindir +-libdir = basedir + "/lib/qemulator" ++libdir = basedir + "/" + _libdir + "/qemulator" + #print "libdir: " + libdir + sharedir = basedir + "/share/qemulator" + #print "sharedir: " + sharedir +@@ -1682,4 +1676,4 @@ + else: + return data + +- +\ No newline at end of file ++ +diff -Naur Qemulator-0.5.orig/usr/local/lib/qemulator/qml_filehandlers.py Qemulator-0.5/usr/local/lib/qemulator/qml_filehandlers.py +--- Qemulator-0.5.orig/usr/local/lib/qemulator/qml_filehandlers.py 2007-05-16 23:13:01.000000000 +0200 ++++ Qemulator-0.5/usr/local/lib/qemulator/qml_filehandlers.py 2007-07-26 15:14:21.000000000 +0200 +@@ -36,18 +36,12 @@ + encoding = locale.getpreferredencoding() + utf8conv = lambda x : unicode(x, encoding).encode('utf8') + +-current_path = os.path.realpath(__file__) +-basedir = os.path.dirname(os.path.realpath(__file__)) +-if not os.path.exists(os.path.join(basedir, "main.py")): +- if os.path.exists(os.path.join(os.getcwd(), "main.py")): +- basedir = os.getcwd() +-sys.path.insert(0, basedir) ++_libdir = "@GENTOO_LIBDIR@" ++basedir = "/usr" + +-basedir = basedir.replace ( '/bin', '' ) +-basedir = basedir.replace ( '/lib/qemulator', '' ) + sys.path.append(basedir) + bindir = basedir + "/bin" +-libdir = basedir + "/lib/qemulator" ++libdir = basedir + "/" + _libdir + "/qemulator" + sharedir = basedir + "/share/qemulator" + pixmapdir = basedir + "/share/pixmaps/qemulator" + homedir = os.path.expanduser('~/.qemulator') +@@ -244,4 +238,4 @@ + returnmesg = "no command given!" + return returnmesg + +- +\ No newline at end of file ++ +diff -Naur Qemulator-0.5.orig/usr/local/lib/qemulator/qml_imagecreation.py Qemulator-0.5/usr/local/lib/qemulator/qml_imagecreation.py +--- Qemulator-0.5.orig/usr/local/lib/qemulator/qml_imagecreation.py 2007-05-31 06:30:35.000000000 +0200 ++++ Qemulator-0.5/usr/local/lib/qemulator/qml_imagecreation.py 2007-07-26 15:15:42.000000000 +0200 +@@ -47,15 +47,8 @@ + print "locale and/or gettext for language support not installed" + sys.exit(1) + +-current_path = os.path.realpath(__file__) +-basedir = os.path.dirname(os.path.realpath(__file__)) +-if not os.path.exists(os.path.join(basedir, "main.py")): +- if os.path.exists(os.path.join(os.getcwd(), "main.py")): +- basedir = os.getcwd() +-sys.path.insert(0, basedir) +- +-basedir = basedir.replace ( '/bin', '' ) +-basedir = basedir.replace ( '/lib/qemulator', '' ) ++_libdir = "@GENTOO_LIBDIR@" ++basedir = "/usr" + + APP = 'Qemulator' + #DIR = 'locale' +@@ -72,7 +65,7 @@ + + homedir = os.path.expanduser('~/.qemulator') + configdir = homedir + "/config" +-libdir = basedir + "/lib/qemulator" ++libdir = basedir + "/" + _libdir + "/qemulator" + + class CreateImage: + def __init__(self, imagespath, callback_func=None): +@@ -258,4 +251,4 @@ + pass + + def return_newimage(self): +- return self.newimage +\ No newline at end of file ++ return self.newimage +diff -Naur Qemulator-0.5.orig/usr/local/lib/qemulator/qml_installwizzard.py Qemulator-0.5/usr/local/lib/qemulator/qml_installwizzard.py +--- Qemulator-0.5.orig/usr/local/lib/qemulator/qml_installwizzard.py 2007-05-31 07:55:33.000000000 +0200 ++++ Qemulator-0.5/usr/local/lib/qemulator/qml_installwizzard.py 2007-07-26 15:16:40.000000000 +0200 +@@ -49,15 +49,9 @@ + print "locale and/or gettext for language support not installed" + sys.exit(1) + +-current_path = os.path.realpath(__file__) +-basedir = os.path.dirname(os.path.realpath(__file__)) +-if not os.path.exists(os.path.join(basedir, "main.py")): +- if os.path.exists(os.path.join(os.getcwd(), "main.py")): +- basedir = os.getcwd() +-sys.path.insert(0, basedir) ++_libdir = "@GENTOO_LIBDIR@" ++basedir = "/usr" + +-basedir = basedir.replace ( '/bin', '' ) +-basedir = basedir.replace ( '/lib/qemulator', '' ) + pixmapdir = basedir + "/share/pixmaps/qemulator" + + APP = 'Qemulator' +@@ -75,7 +69,7 @@ + + homedir = os.path.expanduser('~/.qemulator') + configdir = homedir + "/config" +-libdir = basedir + "/lib/qemulator" ++libdir = basedir + "/" + _libdir + "/qemulator" + + class Installwizzard: + def __init__(self, qemulator_instance, callback_func=None): +@@ -756,4 +750,4 @@ + isset = True + else: + isset = False +- return isset +\ No newline at end of file ++ return isset +diff -Naur Qemulator-0.5.orig/usr/local/lib/qemulator/qml_machinesetup.py Qemulator-0.5/usr/local/lib/qemulator/qml_machinesetup.py +--- Qemulator-0.5.orig/usr/local/lib/qemulator/qml_machinesetup.py 2007-06-04 22:24:04.000000000 +0200 ++++ Qemulator-0.5/usr/local/lib/qemulator/qml_machinesetup.py 2007-07-26 15:17:42.000000000 +0200 +@@ -50,15 +50,9 @@ + print "locale and/or gettext for language support not installed" + sys.exit(1) + +-current_path = os.path.realpath(__file__) +-basedir = os.path.dirname(os.path.realpath(__file__)) +-if not os.path.exists(os.path.join(basedir, "main.py")): +- if os.path.exists(os.path.join(os.getcwd(), "main.py")): +- basedir = os.getcwd() +-sys.path.insert(0, basedir) ++_libdir = "@GENTOO_LIBDIR@" ++basedir = "/usr" + +-basedir = basedir.replace ( '/bin', '' ) +-basedir = basedir.replace ( '/lib/qemulator', '' ) + pixmapdir = basedir + "/share/pixmaps/qemulator" + + APP = 'Qemulator' +@@ -76,7 +70,7 @@ + + homedir = os.path.expanduser('~/.qemulator') + configdir = homedir + "/config" +-libdir = basedir + "/lib/qemulator" ++libdir = basedir + "/" + _libdir + "/qemulator" + + class Machinesetup: + def __init__(self, qemulator_instance, init_image=None, callback_func=None): +diff -Naur Qemulator-0.5.orig/usr/local/lib/qemulator/qml_tools.py Qemulator-0.5/usr/local/lib/qemulator/qml_tools.py +--- Qemulator-0.5.orig/usr/local/lib/qemulator/qml_tools.py 2007-05-31 07:09:19.000000000 +0200 ++++ Qemulator-0.5/usr/local/lib/qemulator/qml_tools.py 2007-07-26 15:18:46.000000000 +0200 +@@ -73,20 +73,13 @@ + #for param in os.environ.keys(): + # print "%20s %s" % (param,os.environ[param]) + +-current_path = os.path.realpath(__file__) +-basedir = os.path.dirname(os.path.realpath(__file__)) +-if not os.path.exists(os.path.join(basedir, "main.py")): +- if os.path.exists(os.path.join(os.getcwd(), "main.py")): +- basedir = os.getcwd() +-sys.path.insert(0, basedir) +-os.chdir(basedir) +-#print "basedir: " + basedir +-basedir = basedir.replace ( '/bin', '' ) +-basedir = basedir.replace ( '/lib/qemulator', '' ) ++_libdir = "@GENTOO_LIBDIR@" ++basedir = "/usr" ++ + sys.path.append(basedir) + bindir = basedir + "/bin" + #print "bindir: " + bindir +-libdir = basedir + "/lib/qemulator" ++libdir = basedir + "/" + _libdir + "/qemulator" + #print "libdir: " + libdir + sharedir = basedir + "/share/qemulator" + #print "sharedir: " + sharedir diff --git a/app-emulation/qemulator/files/qemulator-0.5-basedir.patch b/app-emulation/qemulator/files/qemulator-0.5-basedir.patch new file mode 100644 index 0000000..6716c05 --- /dev/null +++ b/app-emulation/qemulator/files/qemulator-0.5-basedir.patch @@ -0,0 +1,351 @@ +diff -Naur Qemulator-0.5.orig/usr/local/bin/qemulator Qemulator-0.5/usr/local/bin/qemulator +--- Qemulator-0.5.orig/usr/local/bin/qemulator 2007-07-26 18:08:29.000000000 +0200 ++++ Qemulator-0.5/usr/local/bin/qemulator 2007-07-26 18:09:44.000000000 +0200 +@@ -75,21 +75,16 @@ + + #for param in os.environ.keys(): + # print "%20s %s" % (param,os.environ[param]) +- +-current_path = os.path.realpath(__file__) +-basedir = os.path.dirname(os.path.realpath(__file__)) +-if not os.path.exists(os.path.join(basedir, "main.py")): +- if os.path.exists(os.path.join(os.getcwd(), "main.py")): +- basedir = os.getcwd() +-sys.path.insert(0, basedir) +-os.chdir(basedir) ++_libdir = "@GENTOO_LIBDIR@" ++basedir = "/usr" ++ ++ ++ + #print "basedir: " + basedir +-basedir = basedir.replace ( '/bin', '' ) +-basedir = basedir.replace ( '/lib/qemulator', '' ) +-sys.path.append(basedir) ++sys.path.append(basedir) + bindir = basedir + "/bin" + #print "bindir: " + bindir +-libdir = basedir + "/lib/qemulator" ++libdir = basedir + "/" + _libdir + "/qemulator" + #print "libdir: " + libdir + sharedir = basedir + "/share/qemulator" + #print "sharedir: " + sharedir +@@ -99,7 +94,8 @@ + configdir = homedir + "/config" + #print "configdir: " + configdir + icondirs = [sharedir + "/icons",homedir + "/icons"] +- ++sys.path.insert(0, libdir) ++os.chdir(libdir) + ## Import all Qemulator classes + import qml_network + import qml_controlmon +diff -Naur Qemulator-0.5.orig/usr/local/lib/qemulator/qemulator.py Qemulator-0.5/usr/local/lib/qemulator/qemulator.py +--- Qemulator-0.5.orig/usr/local/lib/qemulator/qemulator.py 2007-07-26 18:08:29.000000000 +0200 ++++ Qemulator-0.5/usr/local/lib/qemulator/qemulator.py 2007-07-26 18:09:44.000000000 +0200 +@@ -75,21 +75,16 @@ + + #for param in os.environ.keys(): + # print "%20s %s" % (param,os.environ[param]) +- +-current_path = os.path.realpath(__file__) +-basedir = os.path.dirname(os.path.realpath(__file__)) +-if not os.path.exists(os.path.join(basedir, "main.py")): +- if os.path.exists(os.path.join(os.getcwd(), "main.py")): +- basedir = os.getcwd() +-sys.path.insert(0, basedir) +-os.chdir(basedir) ++_libdir = "@GENTOO_LIBDIR@" ++basedir = "/usr" ++ ++ ++ + #print "basedir: " + basedir +-basedir = basedir.replace ( '/bin', '' ) +-basedir = basedir.replace ( '/lib/qemulator', '' ) +-sys.path.append(basedir) ++sys.path.append(basedir) + bindir = basedir + "/bin" + #print "bindir: " + bindir +-libdir = basedir + "/lib/qemulator" ++libdir = basedir + "/" + _libdir + "/qemulator" + #print "libdir: " + libdir + sharedir = basedir + "/share/qemulator" + #print "sharedir: " + sharedir +@@ -99,7 +94,8 @@ + configdir = homedir + "/config" + #print "configdir: " + configdir + icondirs = [sharedir + "/icons",homedir + "/icons"] +- ++sys.path.insert(0, libdir) ++os.chdir(libdir) + ## Import all Qemulator classes + import qml_network + import qml_controlmon +diff -Naur Qemulator-0.5.orig/usr/local/lib/qemulator/qml_audioenviron.py Qemulator-0.5/usr/local/lib/qemulator/qml_audioenviron.py +--- Qemulator-0.5.orig/usr/local/lib/qemulator/qml_audioenviron.py 2007-07-26 18:08:29.000000000 +0200 ++++ Qemulator-0.5/usr/local/lib/qemulator/qml_audioenviron.py 2007-07-26 18:10:06.000000000 +0200 +@@ -44,21 +44,15 @@ + + #for param in os.environ.keys(): + # print "%20s %s" % (param,os.environ[param]) +- +-current_path = os.path.realpath(__file__) +-basedir = os.path.dirname(os.path.realpath(__file__)) +-if not os.path.exists(os.path.join(basedir, "main.py")): +- if os.path.exists(os.path.join(os.getcwd(), "main.py")): +- basedir = os.getcwd() +-sys.path.insert(0, basedir) +-os.chdir(basedir) ++ ++_libdir = "@GENTOO_LIBDIR@" ++basedir = "/usr" ++ + #print "basedir: " + basedir +-basedir = basedir.replace ( '/bin', '' ) +-basedir = basedir.replace ( '/lib/qemulator', '' ) + sys.path.append(basedir) + bindir = basedir + "/bin" + #print "bindir: " + bindir +-libdir = basedir + "/lib/qemulator" ++libdir = basedir + "/" + _libdir + "/qemulator" + #print "libdir: " + libdir + sharedir = basedir + "/share/qemulator" + #print "sharedir: " + sharedir +diff -Naur Qemulator-0.5.orig/usr/local/lib/qemulator/qml_configuration.py Qemulator-0.5/usr/local/lib/qemulator/qml_configuration.py +--- Qemulator-0.5.orig/usr/local/lib/qemulator/qml_configuration.py 2007-07-26 18:08:29.000000000 +0200 ++++ Qemulator-0.5/usr/local/lib/qemulator/qml_configuration.py 2007-07-26 18:10:06.000000000 +0200 +@@ -45,17 +45,10 @@ + except: + print "locale and/or gettext for language support not installed" + sys.exit(1) +- +-current_path = os.path.realpath(__file__) +-basedir = os.path.dirname(os.path.realpath(__file__)) +-if not os.path.exists(os.path.join(basedir, "main.py")): +- if os.path.exists(os.path.join(os.getcwd(), "main.py")): +- basedir = os.getcwd() +-sys.path.insert(0, basedir) +- +-basedir = basedir.replace ( '/bin', '' ) +-basedir = basedir.replace ( '/lib/qemulator', '' ) + ++_libdir = "@GENTOO_LIBDIR@" ++basedir = "/usr" ++ + APP = 'Qemulator' + #DIR = 'locale' + DIR = basedir + '/share/locale' +@@ -71,7 +64,7 @@ + + homedir = os.path.expanduser('~/.qemulator') + configdir = homedir + "/config" +-libdir = basedir + "/lib/qemulator" ++libdir = basedir + "/" + _libdir + "/qemulator" + class Configuration: + def __init__(self, callback_func=None): + self.settings_autoshow = True +@@ -604,4 +597,4 @@ + except: + outdata = { } + print "no config file" +- return outdata +\ No newline at end of file ++ return outdata +diff -Naur Qemulator-0.5.orig/usr/local/lib/qemulator/qml_controlmon.py Qemulator-0.5/usr/local/lib/qemulator/qml_controlmon.py +--- Qemulator-0.5.orig/usr/local/lib/qemulator/qml_controlmon.py 2007-07-26 18:08:29.000000000 +0200 ++++ Qemulator-0.5/usr/local/lib/qemulator/qml_controlmon.py 2007-07-26 18:10:06.000000000 +0200 +@@ -55,19 +55,13 @@ + print "locale and/or gettext for language support not installed" + sys.exit(1) + +-current_path = os.path.realpath(__file__) +-basedir = os.path.dirname(os.path.realpath(__file__)) +-if not os.path.exists(os.path.join(basedir, "main.py")): +- if os.path.exists(os.path.join(os.getcwd(), "main.py")): +- basedir = os.getcwd() +-sys.path.insert(0, basedir) ++_libdir = "@GENTOO_LIBDIR@" ++basedir = "/usr" + +-basedir = basedir.replace ( '/bin', '' ) +-basedir = basedir.replace ( '/lib/qemulator', '' ) + sys.path.append(basedir) + bindir = basedir + "/bin" + #print "bindir: " + bindir +-libdir = basedir + "/lib/qemulator" ++libdir = basedir + "/" + _libdir + "/qemulator" + #print "libdir: " + libdir + sharedir = basedir + "/share/qemulator" + #print "sharedir: " + sharedir +@@ -1682,4 +1676,4 @@ + else: + return data + +- +\ No newline at end of file ++ +diff -Naur Qemulator-0.5.orig/usr/local/lib/qemulator/qml_filehandlers.py Qemulator-0.5/usr/local/lib/qemulator/qml_filehandlers.py +--- Qemulator-0.5.orig/usr/local/lib/qemulator/qml_filehandlers.py 2007-07-26 18:08:29.000000000 +0200 ++++ Qemulator-0.5/usr/local/lib/qemulator/qml_filehandlers.py 2007-07-26 18:10:06.000000000 +0200 +@@ -36,18 +36,12 @@ + encoding = locale.getpreferredencoding() + utf8conv = lambda x : unicode(x, encoding).encode('utf8') + +-current_path = os.path.realpath(__file__) +-basedir = os.path.dirname(os.path.realpath(__file__)) +-if not os.path.exists(os.path.join(basedir, "main.py")): +- if os.path.exists(os.path.join(os.getcwd(), "main.py")): +- basedir = os.getcwd() +-sys.path.insert(0, basedir) ++_libdir = "@GENTOO_LIBDIR@" ++basedir = "/usr" + +-basedir = basedir.replace ( '/bin', '' ) +-basedir = basedir.replace ( '/lib/qemulator', '' ) + sys.path.append(basedir) + bindir = basedir + "/bin" +-libdir = basedir + "/lib/qemulator" ++libdir = basedir + "/" + _libdir + "/qemulator" + sharedir = basedir + "/share/qemulator" + pixmapdir = basedir + "/share/pixmaps/qemulator" + homedir = os.path.expanduser('~/.qemulator') +@@ -244,4 +238,4 @@ + returnmesg = "no command given!" + return returnmesg + +- +\ No newline at end of file ++ +diff -Naur Qemulator-0.5.orig/usr/local/lib/qemulator/qml_imagecreation.py Qemulator-0.5/usr/local/lib/qemulator/qml_imagecreation.py +--- Qemulator-0.5.orig/usr/local/lib/qemulator/qml_imagecreation.py 2007-07-26 18:08:29.000000000 +0200 ++++ Qemulator-0.5/usr/local/lib/qemulator/qml_imagecreation.py 2007-07-26 18:10:06.000000000 +0200 +@@ -47,15 +47,8 @@ + print "locale and/or gettext for language support not installed" + sys.exit(1) + +-current_path = os.path.realpath(__file__) +-basedir = os.path.dirname(os.path.realpath(__file__)) +-if not os.path.exists(os.path.join(basedir, "main.py")): +- if os.path.exists(os.path.join(os.getcwd(), "main.py")): +- basedir = os.getcwd() +-sys.path.insert(0, basedir) +- +-basedir = basedir.replace ( '/bin', '' ) +-basedir = basedir.replace ( '/lib/qemulator', '' ) ++_libdir = "@GENTOO_LIBDIR@" ++basedir = "/usr" + + APP = 'Qemulator' + #DIR = 'locale' +@@ -72,7 +65,7 @@ + + homedir = os.path.expanduser('~/.qemulator') + configdir = homedir + "/config" +-libdir = basedir + "/lib/qemulator" ++libdir = basedir + "/" + _libdir + "/qemulator" + + class CreateImage: + def __init__(self, imagespath, callback_func=None): +@@ -258,4 +251,4 @@ + pass + + def return_newimage(self): +- return self.newimage +\ No newline at end of file ++ return self.newimage +diff -Naur Qemulator-0.5.orig/usr/local/lib/qemulator/qml_installwizzard.py Qemulator-0.5/usr/local/lib/qemulator/qml_installwizzard.py +--- Qemulator-0.5.orig/usr/local/lib/qemulator/qml_installwizzard.py 2007-07-26 18:08:29.000000000 +0200 ++++ Qemulator-0.5/usr/local/lib/qemulator/qml_installwizzard.py 2007-07-26 18:10:06.000000000 +0200 +@@ -49,15 +49,9 @@ + print "locale and/or gettext for language support not installed" + sys.exit(1) + +-current_path = os.path.realpath(__file__) +-basedir = os.path.dirname(os.path.realpath(__file__)) +-if not os.path.exists(os.path.join(basedir, "main.py")): +- if os.path.exists(os.path.join(os.getcwd(), "main.py")): +- basedir = os.getcwd() +-sys.path.insert(0, basedir) ++_libdir = "@GENTOO_LIBDIR@" ++basedir = "/usr" + +-basedir = basedir.replace ( '/bin', '' ) +-basedir = basedir.replace ( '/lib/qemulator', '' ) + pixmapdir = basedir + "/share/pixmaps/qemulator" + + APP = 'Qemulator' +@@ -75,7 +69,7 @@ + + homedir = os.path.expanduser('~/.qemulator') + configdir = homedir + "/config" +-libdir = basedir + "/lib/qemulator" ++libdir = basedir + "/" + _libdir + "/qemulator" + + class Installwizzard: + def __init__(self, qemulator_instance, callback_func=None): +@@ -756,4 +750,4 @@ + isset = True + else: + isset = False +- return isset +\ No newline at end of file ++ return isset +diff -Naur Qemulator-0.5.orig/usr/local/lib/qemulator/qml_machinesetup.py Qemulator-0.5/usr/local/lib/qemulator/qml_machinesetup.py +--- Qemulator-0.5.orig/usr/local/lib/qemulator/qml_machinesetup.py 2007-07-26 18:08:29.000000000 +0200 ++++ Qemulator-0.5/usr/local/lib/qemulator/qml_machinesetup.py 2007-07-26 18:10:06.000000000 +0200 +@@ -50,15 +50,9 @@ + print "locale and/or gettext for language support not installed" + sys.exit(1) + +-current_path = os.path.realpath(__file__) +-basedir = os.path.dirname(os.path.realpath(__file__)) +-if not os.path.exists(os.path.join(basedir, "main.py")): +- if os.path.exists(os.path.join(os.getcwd(), "main.py")): +- basedir = os.getcwd() +-sys.path.insert(0, basedir) ++_libdir = "@GENTOO_LIBDIR@" ++basedir = "/usr" + +-basedir = basedir.replace ( '/bin', '' ) +-basedir = basedir.replace ( '/lib/qemulator', '' ) + pixmapdir = basedir + "/share/pixmaps/qemulator" + + APP = 'Qemulator' +@@ -76,7 +70,7 @@ + + homedir = os.path.expanduser('~/.qemulator') + configdir = homedir + "/config" +-libdir = basedir + "/lib/qemulator" ++libdir = basedir + "/" + _libdir + "/qemulator" + + class Machinesetup: + def __init__(self, qemulator_instance, init_image=None, callback_func=None): +diff -Naur Qemulator-0.5.orig/usr/local/lib/qemulator/qml_tools.py Qemulator-0.5/usr/local/lib/qemulator/qml_tools.py +--- Qemulator-0.5.orig/usr/local/lib/qemulator/qml_tools.py 2007-07-26 18:08:29.000000000 +0200 ++++ Qemulator-0.5/usr/local/lib/qemulator/qml_tools.py 2007-07-26 18:10:06.000000000 +0200 +@@ -73,20 +73,13 @@ + #for param in os.environ.keys(): + # print "%20s %s" % (param,os.environ[param]) + +-current_path = os.path.realpath(__file__) +-basedir = os.path.dirname(os.path.realpath(__file__)) +-if not os.path.exists(os.path.join(basedir, "main.py")): +- if os.path.exists(os.path.join(os.getcwd(), "main.py")): +- basedir = os.getcwd() +-sys.path.insert(0, basedir) +-os.chdir(basedir) +-#print "basedir: " + basedir +-basedir = basedir.replace ( '/bin', '' ) +-basedir = basedir.replace ( '/lib/qemulator', '' ) ++_libdir = "@GENTOO_LIBDIR@" ++basedir = "/usr" ++ + sys.path.append(basedir) + bindir = basedir + "/bin" + #print "bindir: " + bindir +-libdir = basedir + "/lib/qemulator" ++libdir = basedir + "/" + _libdir + "/qemulator" + #print "libdir: " + libdir + sharedir = basedir + "/share/qemulator" + #print "sharedir: " + sharedir diff --git a/app-emulation/qemulator/metadata.xml b/app-emulation/qemulator/metadata.xml new file mode 100644 index 0000000..77f5b83 --- /dev/null +++ b/app-emulation/qemulator/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>philantrop@gentoo.org</email> +</maintainer> +<longdescription>KVM (Kernel-based Virtual Machine) is a full virtualization solution for Linux on x86 hardware containing virtualization extensions (Intel VT or AMD-V).</longdescription> +</pkgmetadata> diff --git a/app-emulation/qemulator/qemulator-0.5.ebuild b/app-emulation/qemulator/qemulator-0.5.ebuild new file mode 100644 index 0000000..5172780 --- /dev/null +++ b/app-emulation/qemulator/qemulator-0.5.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils multilib python + +MY_PN="${PN/q/Q}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="a gtk/glade front-end for Qemu" +HOMEPAGE="http://qemulator.createweb.de/" +SRC_URI="http://qemulator.createweb.de/plugins/downloads/dodownload.php?file=${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND=">=dev-python/pygtk-2.8.6" + +S=${WORKDIR}/${MY_P} + +FILES_TO_CHANGE="${PN}.py + qml_audioenviron.py + qml_configuration.py + qml_controlmon.py + qml_filehandlers.py + qml_imagecreation.py + qml_installwizzard.py + qml_machinesetup.py + qml_tools.py" + +src_unpack(){ + unpack ${A} + cd "${S}" +# epatch "${FILESDIR}/${P}-basedir.patch" +# epatch "${FILESDIR}/${P}-basedir-new.patch" + + for x in ${FILES_TO_CHANGE}; do + sed -i -e "s:@GENTOO_LIBDIR@:$(get_libdir):" \ + usr/local/lib/${PN}/${x} || die "sed for ${x} failed" + done +} + +src_install() { + dobin usr/local/bin/* + insinto /usr/$(get_libdir) + doins -r usr/local/lib/* + insinto /usr/share + doins -r usr/local/share/* + dodoc TRANSLATION README +} + +pkg_postinst() { + python_mod_optimize "${ROOT}/usr/$(get_libdir)/${PN}" +} + +pkg_postrm() { + python_mod_cleanup "${ROOT}/usr/$(get_libdir)/${PN}" +} |