diff options
author | Peter Volkov <pva@gentoo.org> | 2008-11-10 23:43:03 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2008-11-10 23:43:03 +0000 |
commit | 13e477b3939d1f7b010139bbd6611bad2c1874cd (patch) | |
tree | 85e8262d97ebc1c927f51c1dc71b0ea52d3af0ea /app-text/kchmviewer | |
parent | Fixed a few java problems, thanks to Serkan, bug #246094 (diff) | |
download | gentoo-2-13e477b3939d1f7b010139bbd6611bad2c1874cd.tar.gz gentoo-2-13e477b3939d1f7b010139bbd6611bad2c1874cd.tar.bz2 gentoo-2-13e477b3939d1f7b010139bbd6611bad2c1874cd.zip |
Added kde4 support; fixed path to .desktop file, bug #246028, thank Alexandr for the fix. qt3support is not needed any more.
(Portage version: 2.2_rc13/cvs/Linux 2.6.26-openvz.git-35f41f1 i686)
Diffstat (limited to 'app-text/kchmviewer')
-rw-r--r-- | app-text/kchmviewer/ChangeLog | 9 | ||||
-rw-r--r-- | app-text/kchmviewer/kchmviewer-4.0_beta3-r1.ebuild | 99 |
2 files changed, 107 insertions, 1 deletions
diff --git a/app-text/kchmviewer/ChangeLog b/app-text/kchmviewer/ChangeLog index 45dffe882991..5efe3fbcca2d 100644 --- a/app-text/kchmviewer/ChangeLog +++ b/app-text/kchmviewer/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-text/kchmviewer # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/kchmviewer/ChangeLog,v 1.5 2008/10/25 15:53:01 pva Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/kchmviewer/ChangeLog,v 1.6 2008/11/10 23:43:03 pva Exp $ + +*kchmviewer-4.0_beta3-r1 (10 Nov 2008) + + 10 Nov 2008; Peter Volkov <pva@gentoo.org> + +kchmviewer-4.0_beta3-r1.ebuild: + Added kde4 support; fixed path to .desktop file, bug #246028, thank + Alexandr for the fix. qt3support is not needed any more. *kchmviewer-4.0_beta3 (25 Oct 2008) diff --git a/app-text/kchmviewer/kchmviewer-4.0_beta3-r1.ebuild b/app-text/kchmviewer/kchmviewer-4.0_beta3-r1.ebuild new file mode 100644 index 000000000000..f8f9e839458b --- /dev/null +++ b/app-text/kchmviewer/kchmviewer-4.0_beta3-r1.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/kchmviewer/kchmviewer-4.0_beta3-r1.ebuild,v 1.1 2008/11/10 23:43:03 pva Exp $ + +EAPI="2" +NEED_KDE="none" + +if use kdeprefix; then + KDEDIR="/usr/kde/4.1" +else + KDEDIR="/usr" +fi +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="http://www.kchmviewer.net/files/${MY_P}.tar.gz" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="kde" + +RDEPEND="dev-libs/chmlib + !kde? ( || ( x11-libs/qt-gui:4 + =x11-libs/qt-4.3*:4 ) ) + kde? ( || ( x11-libs/qt-dbus:4 + =x11-libs/qt-4.3*:4 ) + !kde-base/okular[chm] + >=kde-base/kdelibs-4.1[kdeprefix=] )" +DEPEND="${RDEPEND} + kde? ( dev-util/cmake )" + +S=${WORKDIR}/${MY_P} + +src_unpack() { + unpack ${A} + cd "${S}" + sed -e "s:KDE4_LIB_INSTALL_DIR:PLUGIN_INSTALL_DIR:" \ + -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 + sed -e "/^MimeType=/{s:$:;:}" -i src/kde/kchmviewer.desktop +} + +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 + dodoc DCOP-bingings FAQ || die + # 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 + kde4-base_src_install + else + dobin bin/kchmviewer || die "dobin kchmviewer failed" + newmenu src/kde/kchmviewer.desktop kchmviewer.desktop + 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 ChangeLog README FAQ || die + fi +} + +pkg_postinst() { + use kde && kde4-base_pkg_postinst + fdo-mime_desktop_database_update +} + +pkg_postrm() { + use kde && kde4-base_pkg_postinst +} |