summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Alexander <wired@gentoo.org>2009-11-14 19:30:28 +0000
committerAlex Alexander <wired@gentoo.org>2009-11-14 19:30:28 +0000
commit6966d05e8399c2388f62964137ab64c437d81a5e (patch)
tree73bf7a94d835ce59527b527f91b08a35b059a3b0
parentAdd ~x86 keyword. (diff)
downloadgentoo-2-6966d05e8399c2388f62964137ab64c437d81a5e.tar.gz
gentoo-2-6966d05e8399c2388f62964137ab64c437d81a5e.tar.bz2
gentoo-2-6966d05e8399c2388f62964137ab64c437d81a5e.zip
version bump, bug #292925
(Portage version: 2.2_rc49/cvs/Linux x86_64)
-rw-r--r--app-text/kchmviewer/ChangeLog7
-rw-r--r--app-text/kchmviewer/kchmviewer-4.2.ebuild93
2 files changed, 99 insertions, 1 deletions
diff --git a/app-text/kchmviewer/ChangeLog b/app-text/kchmviewer/ChangeLog
index 619e6617f8ab..0439c14d8552 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.20 2009/10/25 12:56:33 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/kchmviewer/ChangeLog,v 1.21 2009/11/14 19:30:28 wired Exp $
+
+*kchmviewer-4.2 (14 Nov 2009)
+
+ 14 Nov 2009; Alex Alexander <wired@gentoo.org> +kchmviewer-4.2.ebuild:
+ version bump, bug #292925
25 Oct 2009; Tomáš Chvátal <scarabeus@gentoo.org>
-kchmviewer-4.0-r1.ebuild:
diff --git a/app-text/kchmviewer/kchmviewer-4.2.ebuild b/app-text/kchmviewer/kchmviewer-4.2.ebuild
new file mode 100644
index 000000000000..13f1641c28de
--- /dev/null
+++ b/app-text/kchmviewer/kchmviewer-4.2.ebuild
@@ -0,0 +1,93 @@
+# 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-4.2.ebuild,v 1.1 2009/11/14 19:30:28 wired Exp $
+
+EAPI="2"
+KDE_REQUIRED="never"
+inherit fdo-mime qt4 kde4-base
+
+MY_P="${PN}-${PV/_beta/beta}"
+
+DESCRIPTION="KchmViewer is a feature rich chm file viewer, based on Qt."
+HOMEPAGE="http://www.kchmviewer.net/"
+SRC_URI="mirror://sourceforge/kchmviewer/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="kde"
+
+RDEPEND="dev-libs/chmlib
+ x11-libs/qt-dbus:4
+ x11-libs/qt-webkit:4
+ !kde? ( x11-libs/qt-gui:4
+ x11-libs/qt-qt3support:4 )
+ kde? ( >=kde-base/kdelibs-4.1
+ !kde-base/okular[chm] )"
+DEPEND="${RDEPEND}
+ kde? ( dev-util/cmake )"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ if use kde; then
+ kde4-base_pkg_setup
+ fi
+}
+
+src_prepare() {
+ sed -e "s:KDE4_SERVICES_INSTALL_DIR:SERVICES_INSTALL_DIR:" \
+ -i lib/kio-msits/CMakeLists.txt
+ sed "s:KDE4_ICON_INSTALL_DIR:ICON_INSTALL_DIR:" -i src/kde/CMakeLists.txt
+ sed -e "s:KDE4_BIN_INSTALL_DIR:BIN_INSTALL_DIR:" \
+ -e "s:KDE4_XDG_APPS_INSTALL_DIR:XDG_APPS_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"
+ newmenu src/kde/kchmviewer.desktop kchmviewer.desktop
+ dodoc ChangeLog README || die
+ fi
+ # install icons in hicolor since it's fallback in kde irrespectively of
+ # ICON_INSTALL_DIR (this is really strange...)
+ for size in 48 64 128; do
+ insinto /usr/share/icons/hicolor/${size}x${size}/apps && \
+ newins src/kde/cr${size}-app-kchmviewer.png kchmviewer.png || die
+ done
+ dodoc "${S}"/{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
+}