rev 6305 - in kde-extras: . qtemu qtemu/trunk qtemu/trunk/debian qtemu/trunk/debian/patches

Fathi Boudra fboudra-guest at alioth.debian.org
Sun May 20 18:27:31 UTC 2007


Author: fboudra-guest
Date: 2007-05-20 18:27:30 +0000 (Sun, 20 May 2007)
New Revision: 6305

Added:
   kde-extras/qtemu/
   kde-extras/qtemu/branches/
   kde-extras/qtemu/tags/
   kde-extras/qtemu/trunk/
   kde-extras/qtemu/trunk/debian/
   kde-extras/qtemu/trunk/debian/changelog
   kde-extras/qtemu/trunk/debian/cmake.mk
   kde-extras/qtemu/trunk/debian/compat
   kde-extras/qtemu/trunk/debian/control
   kde-extras/qtemu/trunk/debian/copyright
   kde-extras/qtemu/trunk/debian/docs
   kde-extras/qtemu/trunk/debian/patches/
   kde-extras/qtemu/trunk/debian/patches/10_fix_install_path.diff
   kde-extras/qtemu/trunk/debian/rules
   kde-extras/qtemu/trunk/debian/watch
Log:
* Add QtEmu -- GUI for QEMU to kde-extras

Added: kde-extras/qtemu/trunk/debian/changelog
===================================================================
--- kde-extras/qtemu/trunk/debian/changelog	                        (rev 0)
+++ kde-extras/qtemu/trunk/debian/changelog	2007-05-20 18:27:30 UTC (rev 6305)
@@ -0,0 +1,7 @@
+qtemu (1.0.3-1) unstable; urgency=low
+
+  * Initial release. (Closes: #425289)
+  * Add patch to fix install path and FHS support.
+
+ -- Fathi Boudra <fboudra at free.fr>  Sun, 20 May 2007 17:16:50 +0200
+

Added: kde-extras/qtemu/trunk/debian/cmake.mk
===================================================================
--- kde-extras/qtemu/trunk/debian/cmake.mk	                        (rev 0)
+++ kde-extras/qtemu/trunk/debian/cmake.mk	2007-05-20 18:27:30 UTC (rev 6305)
@@ -0,0 +1,76 @@
+# -*- mode: makefile; coding: utf-8 -*-
+# Copyright (C) 2006 Peter Rockai <me at mornfall.net>
+# Copyright (C) 2006 Fathi Boudra <fboudra at free.fr>
+# Description: A class for cmake packages
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2, or (at
+# your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+# 02111-1307 USA.
+
+ifndef _cdbs_bootstrap
+_cdbs_scripts_path ?= /usr/lib/cdbs
+_cdbs_rules_path ?= /usr/share/cdbs/1/rules
+_cdbs_class_path ?= /usr/share/cdbs/1/class
+endif
+
+ifndef _cdbs_class_cmake
+_cdbs_class_cmake := 1
+
+include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix)
+
+ifdef _cdbs_tarball_dir
+DEB_BUILDDIR = $(_cdbs_tarball_dir)/obj-$(DEB_BUILD_GNU_TYPE)
+else
+DEB_BUILDDIR = obj-$(DEB_BUILD_GNU_TYPE)
+endif
+
+DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(DEB_DESTDIR)
+DEB_CMAKE_PREFIX =/usr
+
+# Overriden from makefile-vars.mk
+# We pass CFLAGS and friends to ./configure, so no need to pass them to make
+DEB_MAKE_INVOKE = $(DEB_MAKE_ENVVARS) $(MAKE) -C $(DEB_BUILDDIR)
+
+include $(_cdbs_class_path)/makefile.mk$(_cdbs_makefile_suffix)
+
+ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+# well, -O0
+endif
+
+ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+# semi-debug
+else
+# final
+endif
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+# debug
+endif
+
+#DEB_COMPRESS_EXCLUDE = .dcl .docbook -license .tag .sty .el
+
+common-configure-arch common-configure-indep:: common-configure-impl
+common-configure-impl:: $(DEB_BUILDDIR)/CMakeCache.txt
+$(DEB_BUILDDIR)/CMakeCache.txt:
+	cd $(DEB_BUILDDIR) && cmake $(CURDIR)/$(DEB_SRCDIR) \
+	-DCMAKE_INSTALL_PREFIX="$(DEB_CMAKE_PREFIX)" \
+	$(DEB_CMAKE_EXTRA_FLAGS) -DCMAKE_CXX_FLAGS="$(CXXFLAGS)" \
+	-DCMAKE_C_FLAGS="$(CFLAGS)" -DCMAKE_VERBOSE_MAKEFILE=ON
+	mkdir -p $(DEB_DESTDIR)
+
+cleanbuilddir::
+	-if test "$(DEB_BUILDDIR)" != "$(DEB_SRCDIR)"; then rm -rf $(DEB_BUILDDIR); fi
+
+endif
+

Added: kde-extras/qtemu/trunk/debian/compat
===================================================================
--- kde-extras/qtemu/trunk/debian/compat	                        (rev 0)
+++ kde-extras/qtemu/trunk/debian/compat	2007-05-20 18:27:30 UTC (rev 6305)
@@ -0,0 +1 @@
+5

Added: kde-extras/qtemu/trunk/debian/control
===================================================================
--- kde-extras/qtemu/trunk/debian/control	                        (rev 0)
+++ kde-extras/qtemu/trunk/debian/control	2007-05-20 18:27:30 UTC (rev 6305)
@@ -0,0 +1,18 @@
+Source: qtemu
+Section: x11
+Priority: optional
+Maintainer: Debian KDE Extras Team <pkg-kde-extras at lists.alioth.debian.org>
+Uploaders: Fathi Boudra <fboudra at free.fr>, Mark Purcell <msp at debian.org>
+Build-Depends: cdbs, debhelper (>= 5), cmake, libqt4-dev
+Standards-Version: 3.7.2
+
+Package: qtemu
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, qemu
+Description: graphical user interface for QEMU
+ QtEmu is a graphical user interface for QEMU written in Qt4. It has the
+ ability to run virtual operating systems on native systems. This way you can
+ easily test a new operating system or try a Live CD on your system without any
+ troubles and dangers.
+ .
+  Homepage: http://qtemu.org

Added: kde-extras/qtemu/trunk/debian/copyright
===================================================================
--- kde-extras/qtemu/trunk/debian/copyright	                        (rev 0)
+++ kde-extras/qtemu/trunk/debian/copyright	2007-05-20 18:27:30 UTC (rev 6305)
@@ -0,0 +1,55 @@
+This package was debianized by Fathi Boudra <fboudra at free.fr> on
+Sun, 20 May 2007 17:16:50 +0200.
+
+It was downloaded from http://qtemu.org
+
+Upstream Author: Urs Wolfer <uwolfer at fwo.ch>
+
+Copyright:
+    Copyright (C) 2006-2007 Urs Wolfer <uwolfer at fwo.ch>
+
+Copyright for wizard.cpp/h code (some parts of the files have been taken
+from examples/dialogs/complexwizard of Qt 4.1):
+    Copyright (C) 2006-2007 Urs Wolfer <uwolfer at fwo.ch>
+    Copyright (C) 2004-2006 Trolltech ASA. All rights reserved.
+
+The icons have been taken from the KDE Crystal theme which is LGPL licensed:
+
+    This package is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 2 of the License, or (at your option) any later version.
+
+    This package is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this package; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian systems, the complete text of the GNU Lesser General
+Public License can be found in `/usr/share/common-licenses/LGPL'.
+
+QtEmu license:
+
+    This package is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This package is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this package; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
+The Debian packaging is (C) 2007, Fathi Boudra <fboudra at free.fr> and
+is licensed under the GPL, see above.

Added: kde-extras/qtemu/trunk/debian/docs
===================================================================
--- kde-extras/qtemu/trunk/debian/docs	                        (rev 0)
+++ kde-extras/qtemu/trunk/debian/docs	2007-05-20 18:27:30 UTC (rev 6305)
@@ -0,0 +1 @@
+README

Added: kde-extras/qtemu/trunk/debian/patches/10_fix_install_path.diff
===================================================================
--- kde-extras/qtemu/trunk/debian/patches/10_fix_install_path.diff	                        (rev 0)
+++ kde-extras/qtemu/trunk/debian/patches/10_fix_install_path.diff	2007-05-20 18:27:30 UTC (rev 6305)
@@ -0,0 +1,80 @@
+diff -Nur qtemu-1.0.3/CMakeLists.txt qtemu-1.0.3.new/CMakeLists.txt
+--- qtemu-1.0.3/CMakeLists.txt	2007-03-19 13:56:21.000000000 +0100
++++ qtemu-1.0.3.new/CMakeLists.txt	2007-05-20 18:56:20.000000000 +0200
+@@ -114,7 +114,7 @@
+                    DEPENDS ${QM_FILES})
+ 
+ INSTALL (FILES ${QM_FILES}
+-         DESTINATION translations)
++         DESTINATION share/qtemu/translations)
+ # translation end
+ 
+ SET(QT_USE_QTXML)
+@@ -146,13 +146,13 @@
+ )
+ 
+ FILE(GLOB helpfiles "${CMAKE_CURRENT_SOURCE_DIR}/help/*.png")
+-INSTALL(FILES ${helpfiles} DESTINATION help)
++INSTALL(FILES ${helpfiles} DESTINATION share/qtemu/help)
+ 
+-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/help/main.htm DESTINATION help)
++INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/help/main.htm DESTINATION share/qtemu/help)
+ 
+ FILE(GLOB helpfiles_de "${CMAKE_CURRENT_SOURCE_DIR}/help/de/*.png")
+-INSTALL(FILES ${helpfiles_de} DESTINATION help/de)
++INSTALL(FILES ${helpfiles_de} DESTINATION share/qtemu/help/de)
+ 
+-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/help/de/main.htm DESTINATION help/de)
++INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/help/de/main.htm DESTINATION share/qtemu/help/de)
+ 
+ INSTALL(TARGETS qtemu DESTINATION bin)
+diff -Nur qtemu-1.0.3/helpwindow.cpp qtemu-1.0.3.new/helpwindow.cpp
+--- qtemu-1.0.3/helpwindow.cpp	2007-03-19 13:56:21.000000000 +0100
++++ qtemu-1.0.3.new/helpwindow.cpp	2007-05-20 19:43:36.000000000 +0200
+@@ -75,6 +75,11 @@
+         testUrl = QUrl(QCoreApplication::applicationDirPath()+"/../help/" + locale + "/main.htm");
+         if (QFile::exists(testUrl.toString()))
+             return testUrl;
++
++        //check for case when FHS is supported (installed on linux)
++        testUrl = QUrl("/usr/share/qtemu/help/" + locale + "/main.htm");
++        if (QFile::exists(testUrl.toString()))
++            return testUrl;
+     }
+ 
+     //check for case when qtemu executable is in same dir (windows)
+@@ -92,6 +97,11 @@
+     if (QFile::exists(testUrl.toString()))
+         return testUrl;
+ 
++    //check for case when FHS is supported (installed on linux)
++    testUrl = QUrl("/usr/share/qtemu/help/main.htm");
++    if (QFile::exists(testUrl.toString()))
++        return testUrl;
++
+     //qDebug(testUrl.toString().toLocal8Bit().constData());
+     QMessageBox::critical(this, tr("Help not found"),
+                                 tr("Help not found. It is probably not installed."));
+diff -Nur qtemu-1.0.3/main.cpp qtemu-1.0.3.new/main.cpp
+--- qtemu-1.0.3/main.cpp	2007-03-19 13:56:21.000000000 +0100
++++ qtemu-1.0.3.new/main.cpp	2007-05-20 20:01:14.000000000 +0200
+@@ -43,12 +43,13 @@
+     path = QCoreApplication::applicationDirPath()+"/translations/qtemu_" + locale + ".qm";
+     if (QFile::exists(path))
+         translator.load(path);
+-    else
+-    {
+-        path = QCoreApplication::applicationDirPath()+"/../translations/qtemu_" + locale + ".qm";
+-        if (QFile::exists(path))
+-            translator.load(path);
+-    }
++    path = QCoreApplication::applicationDirPath()+"/../translations/qtemu_" + locale + ".qm";
++    if (QFile::exists(path))
++        translator.load(path);
++    //check for case when FHS is supported (installed on linux)
++    path = "/usr/share/qtemu/translations/qtemu_" + locale + ".qm";
++    if (QFile::exists(path))
++        translator.load(path);
+     app.installTranslator(&translator);
+ 
+     MainWindow mainWin;

Added: kde-extras/qtemu/trunk/debian/rules
===================================================================
--- kde-extras/qtemu/trunk/debian/rules	                        (rev 0)
+++ kde-extras/qtemu/trunk/debian/rules	2007-05-20 18:27:30 UTC (rev 6305)
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+include debian/cmake.mk
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+include /usr/share/cdbs/1/rules/utils.mk
+


Property changes on: kde-extras/qtemu/trunk/debian/rules
___________________________________________________________________
Name: svn:executable
   + *

Added: kde-extras/qtemu/trunk/debian/watch
===================================================================
--- kde-extras/qtemu/trunk/debian/watch	                        (rev 0)
+++ kde-extras/qtemu/trunk/debian/watch	2007-05-20 18:27:30 UTC (rev 6305)
@@ -0,0 +1,2 @@
+version=3
+http://downloads.sourceforge.net/qtemu/qtemu-(.*)\.tar\.bz2




More information about the pkg-kde-commits mailing list