summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2009-12-15 10:44:25 +0000
committerPeter Volkov <pva@gentoo.org>2009-12-15 10:44:25 +0000
commitec1eb2b629bf491941ac2105a6d61082a5ebabbb (patch)
tree08cfed42cc1c5be77884bea5381ec0263255e6b7 /app-text/kchmviewer
parentrevbump to ruby-ng, fixing bug 261141 (diff)
downloadgentoo-2-ec1eb2b629bf491941ac2105a6d61082a5ebabbb.tar.gz
gentoo-2-ec1eb2b629bf491941ac2105a6d61082a5ebabbb.tar.bz2
gentoo-2-ec1eb2b629bf491941ac2105a6d61082a5ebabbb.zip
Version bump, bug #297000, thank Samuli Suominen for report.
(Portage version: 2.2_rc59/cvs/Linux i686)
Diffstat (limited to 'app-text/kchmviewer')
-rw-r--r--app-text/kchmviewer/ChangeLog7
-rw-r--r--app-text/kchmviewer/kchmviewer-5.0.ebuild85
2 files changed, 91 insertions, 1 deletions
diff --git a/app-text/kchmviewer/ChangeLog b/app-text/kchmviewer/ChangeLog
index 05feeff7167a..788eec59e68e 100644
--- a/app-text/kchmviewer/ChangeLog
+++ b/app-text/kchmviewer/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-text/kchmviewer
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/kchmviewer/ChangeLog,v 1.23 2009/11/16 22:03:16 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/kchmviewer/ChangeLog,v 1.24 2009/12/15 10:44:25 pva Exp $
+
+*kchmviewer-5.0 (15 Dec 2009)
+
+ 15 Dec 2009; Peter Volkov <pva@gentoo.org> +kchmviewer-5.0.ebuild:
+ Version bump, bug #297000, thank Samuli Suominen for report.
16 Nov 2009; Markus Meier <maekke@gentoo.org> kchmviewer-4.1.ebuild:
amd64/x86 stable, bug #292192
diff --git a/app-text/kchmviewer/kchmviewer-5.0.ebuild b/app-text/kchmviewer/kchmviewer-5.0.ebuild
new file mode 100644
index 000000000000..aca181d124b5
--- /dev/null
+++ b/app-text/kchmviewer/kchmviewer-5.0.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/kchmviewer/kchmviewer-5.0.ebuild,v 1.1 2009/12/15 10:44:25 pva Exp $
+
+EAPI="2"
+KDE_REQUIRED="never"
+inherit fdo-mime qt4 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? ( >=kde-base/kdelibs-4.1
+ !kde-base/okular[chm] )"
+DEPEND="${RDEPEND}
+ kde? ( dev-util/cmake )"
+
+S=${WORKDIR}/build-${PV}
+
+pkg_setup() {
+ use kde && kde4-base_pkg_setup
+}
+
+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
+}