diff options
author | Tiziano Müller <dev-zero@gentoo.org> | 2008-02-22 18:52:23 +0000 |
---|---|---|
committer | Tiziano Müller <dev-zero@gentoo.org> | 2008-02-22 18:52:23 +0000 |
commit | a29d316817910c888eb6ae227a07aedc2eb907b6 (patch) | |
tree | fa7ce060df2732f7fd0fed7688c1e4b837c76829 /app-emulation | |
parent | Version bump (fixed problem with boost test framework and --as-needed). (diff) | |
download | sunrise-reviewed-a29d316817910c888eb6ae227a07aedc2eb907b6.tar.gz sunrise-reviewed-a29d316817910c888eb6ae227a07aedc2eb907b6.tar.bz2 sunrise-reviewed-a29d316817910c888eb6ae227a07aedc2eb907b6.zip |
app-emulation/qtemu: New ebuild for bug #184112 (rewritten by me).
svn path=/sunrise/; revision=5749
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/qtemu/ChangeLog | 9 | ||||
-rw-r--r-- | app-emulation/qtemu/Manifest | 5 | ||||
-rw-r--r-- | app-emulation/qtemu/files/1.0.5-help_and_translation_paths.patch | 63 | ||||
-rw-r--r-- | app-emulation/qtemu/metadata.xml | 5 | ||||
-rw-r--r-- | app-emulation/qtemu/qtemu-1.0.5.ebuild | 33 |
5 files changed, 115 insertions, 0 deletions
diff --git a/app-emulation/qtemu/ChangeLog b/app-emulation/qtemu/ChangeLog new file mode 100644 index 000000000..f3c9c2919 --- /dev/null +++ b/app-emulation/qtemu/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for app-emulation/qtemu +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 22 Feb 2008; Tiziano Müller <dev-zero@gentoo.org> + +files/1.0.5-help_and_translation_paths.patch, +metadata.xml, + +qtemu-1.0.5.ebuild: + New ebuild for bug #184112 (rewritten by me). + diff --git a/app-emulation/qtemu/Manifest b/app-emulation/qtemu/Manifest new file mode 100644 index 000000000..164328633 --- /dev/null +++ b/app-emulation/qtemu/Manifest @@ -0,0 +1,5 @@ +AUX 1.0.5-help_and_translation_paths.patch 2730 RMD160 ba9fcbad2bfcfe9fbf7b13b7aaf9ed441f12a543 SHA1 d0ea9662b5e5b485ac6d2b0d14f91f67cc88bfed SHA256 ac25bfb7e2eaa0ff4bccdc2d21ad14f73c1e246fb069ef5b4dcca2d20270abf7 +DIST qtemu-1.0.5.tar.bz2 555872 RMD160 a0b9f1cf591c1f1df264fae36d72879b19ee3952 SHA1 5800806ae0c767f11b3801af923905017833a2e4 SHA256 752942fae239996c826580fd0b32986cf96a92a0982710f726947ddf791dc921 +EBUILD qtemu-1.0.5.ebuild 751 RMD160 0b0911a6d697548018f5a5f4e91215fa261a8400 SHA1 759401a1f171e85764ec3663fb72d9870821e202 SHA256 f3d073cae0f5bd07d3467436bb129a88a595ef2d564ec6e8bf1464f2db045e05 +MISC ChangeLog 309 RMD160 bcaf071e143669c2ab538dba71544d0f1c3106a2 SHA1 e1f4bb9b0d1b261d34aeda68c42fa83239f9688a SHA256 790fbb2f1a51de6ab3c518d1c585d4242ab35e7302077ca815e28c7c00d0631b +MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 diff --git a/app-emulation/qtemu/files/1.0.5-help_and_translation_paths.patch b/app-emulation/qtemu/files/1.0.5-help_and_translation_paths.patch new file mode 100644 index 000000000..8fc1680aa --- /dev/null +++ b/app-emulation/qtemu/files/1.0.5-help_and_translation_paths.patch @@ -0,0 +1,63 @@ +diff -Naur qtemu-1.0.5.orig/CMakeLists.txt qtemu-1.0.5/CMakeLists.txt +--- qtemu-1.0.5.orig/CMakeLists.txt 2008-02-22 19:32:43.000000000 +0100 ++++ qtemu-1.0.5/CMakeLists.txt 2008-02-22 19:35:29.000000000 +0100 +@@ -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 -Naur qtemu-1.0.5.orig/helpwindow.cpp qtemu-1.0.5/helpwindow.cpp +--- qtemu-1.0.5.orig/helpwindow.cpp 2008-02-22 19:32:44.000000000 +0100 ++++ qtemu-1.0.5/helpwindow.cpp 2008-02-22 19:33:26.000000000 +0100 +@@ -80,7 +80,7 @@ + return testUrl; + + //check for case when qtemu executable is in bin/ (installed on linux) +- testUrl = QUrl(QCoreApplication::applicationDirPath()+"/../help/" + locale + "/main.htm"); ++ testUrl = QUrl(QCoreApplication::applicationDirPath()+"/../share/qtemu/help/" + locale + "/main.htm"); + if (QFile::exists(testUrl.toString())) + return testUrl; + } +@@ -96,7 +96,7 @@ + return testUrl; + + //check for case when qtemu executable is in bin/ (installed on linux) +- testUrl = QUrl(QCoreApplication::applicationDirPath()+"/../help/main.htm"); ++ testUrl = QUrl(QCoreApplication::applicationDirPath()+"/../share/qtemu/help/main.htm"); + if (QFile::exists(testUrl.toString())) + return testUrl; + +diff -Naur qtemu-1.0.5.orig/main.cpp qtemu-1.0.5/main.cpp +--- qtemu-1.0.5.orig/main.cpp 2008-02-22 19:32:43.000000000 +0100 ++++ qtemu-1.0.5/main.cpp 2008-02-22 19:36:32.000000000 +0100 +@@ -45,7 +45,7 @@ + translator.load(path); + else + { +- path = QCoreApplication::applicationDirPath()+"/../translations/qtemu_" + locale + ".qm"; ++ path = QCoreApplication::applicationDirPath()+"/../share/qtemu/translations/qtemu_" + locale + ".qm"; + if (QFile::exists(path)) + translator.load(path); + } diff --git a/app-emulation/qtemu/metadata.xml b/app-emulation/qtemu/metadata.xml new file mode 100644 index 000000000..7e3286984 --- /dev/null +++ b/app-emulation/qtemu/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>maintainer-wanted</herd> +</pkgmetadata> diff --git a/app-emulation/qtemu/qtemu-1.0.5.ebuild b/app-emulation/qtemu/qtemu-1.0.5.ebuild new file mode 100644 index 000000000..6053f4cea --- /dev/null +++ b/app-emulation/qtemu/qtemu-1.0.5.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="1" +inherit eutils cmake-utils qt4 + +DESCRIPTION="A graphical user interface for QEMU written in Qt4." +HOMEPAGE="http://qtemu.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" +LICENSE="GPL-2 LGPL-2.1 CCPL-Attribution-3.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=x11-libs/qt-4.1:4" +RDEPEND="${DEPEND} + app-emulation/qemu" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${PV}-help_and_translation_paths.patch" +} + + +src_install() { + DOCS="ChangeLog README" + cmake-utils_src_install + + doicon "${S}/images/${PN}.ico" + make_desktop_entry "qtemu" "QtEmu" "${PN}.ico" "Qt;Utility;Emulator" +} |