summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2011-03-13 09:26:08 +0000
committerPeter Volkov <pva@gentoo.org>2011-03-13 09:26:08 +0000
commitf93eb259b870bafc33b4cc2ca5786d2a672dec34 (patch)
tree38b3bba98b7f0a6e209d3ad11fea46d499b40897 /app-text
parentppc64 stable wrt #353434 (diff)
downloadgentoo-2-f93eb259b870bafc33b4cc2ca5786d2a672dec34.tar.gz
gentoo-2-f93eb259b870bafc33b4cc2ca5786d2a672dec34.tar.bz2
gentoo-2-f93eb259b870bafc33b4cc2ca5786d2a672dec34.zip
Version bump, bug #355249, thank Vasileios Lourdas for report and Andrés Becerra Sandoval for this job.
(Portage version: 2.1.9.42/cvs/Linux x86_64)
Diffstat (limited to 'app-text')
-rw-r--r--app-text/kchmviewer/ChangeLog8
-rw-r--r--app-text/kchmviewer/kchmviewer-5.3.ebuild87
2 files changed, 94 insertions, 1 deletions
diff --git a/app-text/kchmviewer/ChangeLog b/app-text/kchmviewer/ChangeLog
index 442a2fc2b328..590bcf81b452 100644
--- a/app-text/kchmviewer/ChangeLog
+++ b/app-text/kchmviewer/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-text/kchmviewer
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/kchmviewer/ChangeLog,v 1.41 2011/02/15 07:29:55 xarthisius Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/kchmviewer/ChangeLog,v 1.42 2011/03/13 09:26:08 pva Exp $
+
+*kchmviewer-5.3 (13 Mar 2011)
+
+ 13 Mar 2011; Peter Volkov <pva@gentoo.org> +kchmviewer-5.3.ebuild:
+ Version bump, bug #355249, thank Vasileios Lourdas for report and Andrés
+ Becerra Sandoval for this job.
15 Feb 2011; Kacper Kowalik <xarthisius@gentoo.org>
-kchmviewer-5.2.ebuild, kchmviewer-5.2-r1.ebuild:
diff --git a/app-text/kchmviewer/kchmviewer-5.3.ebuild b/app-text/kchmviewer/kchmviewer-5.3.ebuild
new file mode 100644
index 000000000000..e65817a6d00c
--- /dev/null
+++ b/app-text/kchmviewer/kchmviewer-5.3.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/kchmviewer/kchmviewer-5.3.ebuild,v 1.1 2011/03/13 09:26:08 pva Exp $
+
+EAPI=3
+KDE_REQUIRED="never"
+inherit fdo-mime qt4-r2 kde4-base
+
+DESCRIPTION="KchmViewer is a feature rich chm file viewer, based on Qt."
+HOMEPAGE="http://www.kchmviewer.net/"
+SRC_URI="mirror://sourceforge/kchmviewer/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="kde"
+
+RDEPEND="
+ dev-libs/chmlib
+ >=x11-libs/qt-dbus-4.5:4
+ >=x11-libs/qt-webkit-4.5:4
+ !kde? ( >=x11-libs/qt-gui-4.5:4 )
+ kde? (
+ $(add_kdebase_dep kdelibs)
+ !kde-base/okular[chm]
+ )
+"
+DEPEND="${RDEPEND}"
+
+pkg_setup() {
+ use kde && kde4-base_pkg_setup
+}
+
+src_prepare() {
+ base_src_prepare
+ sed -e "s:KDE4_SERVICES_INSTALL_DIR:SERVICES_INSTALL_DIR:" \
+ -i lib/kio-msits/CMakeLists.txt
+ sed -e "s:KDE4_ICON_INSTALL_DIR:ICON_INSTALL_DIR:" \
+ -e "s:KDE4_XDG_APPS_INSTALL_DIR:XDG_APPS_INSTALL_DIR:" \
+ -i packages/CMakeLists.txt
+ sed -e "s:KDE4_BIN_INSTALL_DIR:BIN_INSTALL_DIR:" \
+ -i src/CMakeLists.txt
+ echo "CONFIG += ordered" >> kchmviewer.pro # parallel build fix #281954
+}
+
+src_configure() {
+ if use kde; then
+ kde4-base_src_configure
+ else
+ eqmake4
+ fi
+}
+
+src_compile() {
+ if use kde; then
+ kde4-base_src_compile
+ else
+ emake || die
+ fi
+}
+
+src_test() {
+ einfo "No tests exist."
+}
+
+src_install() {
+ if use kde; then
+ kde4-base_src_install
+ else
+ dobin bin/kchmviewer || die "dobin kchmviewer failed"
+ domenu packages/kchmviewer.desktop || die
+ dodoc ChangeLog README || die
+ fi
+ insinto /usr/share/pixmaps/
+ doins packages/kchmviewer.png || die
+ dodoc DBUS-bindings FAQ || die
+}
+
+pkg_postinst() {
+ use kde && kde4-base_pkg_postinst
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ use kde && kde4-base_pkg_postrm
+ fdo-mime_desktop_database_update
+}