/[gentoo-x86]/app-text/kchmviewer/kchmviewer-6.0.ebuild
Gentoo

Contents of /app-text/kchmviewer/kchmviewer-6.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Sep 5 09:27:37 2012 UTC (22 months, 2 weeks ago) by jlec
Branch: MAIN
Changes since 1.4: +3 -4 lines
Use doicon instead insinto + doins to install icon files

(Portage version: 2.2.0_alpha124/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/kchmviewer/kchmviewer-6.0.ebuild,v 1.4 2012/05/29 19:49:07 ranger Exp $
4
5 EAPI=3
6 KDE_REQUIRED="never"
7 inherit fdo-mime qt4-r2 kde4-base eutils
8
9 DESCRIPTION="KchmViewer is a feature rich chm file viewer, based on Qt."
10 HOMEPAGE="http://www.kchmviewer.net/"
11 SRC_URI="mirror://sourceforge/kchmviewer/${P}.tar.gz"
12
13 LICENSE="GPL-3"
14 SLOT="0"
15 KEYWORDS="amd64 ppc x86"
16 IUSE="kde"
17
18 RDEPEND="
19 dev-libs/chmlib
20 >=x11-libs/qt-dbus-4.5:4
21 >=x11-libs/qt-webkit-4.5:4
22 !kde? ( >=x11-libs/qt-gui-4.5:4 )
23 kde? (
24 $(add_kdebase_dep kdelibs)
25 !kde-base/okular[chm]
26 )
27 "
28 DEPEND="${RDEPEND}"
29
30 pkg_setup() {
31 use kde && kde4-base_pkg_setup
32 }
33
34 src_prepare() {
35 base_src_prepare
36 sed -e "s:KDE4_SERVICES_INSTALL_DIR:SERVICES_INSTALL_DIR:" \
37 -i lib/kio-msits/CMakeLists.txt
38 sed -e "s:KDE4_ICON_INSTALL_DIR:ICON_INSTALL_DIR:" \
39 -e "s:KDE4_XDG_APPS_INSTALL_DIR:XDG_APPS_INSTALL_DIR:" \
40 -i packages/CMakeLists.txt
41 sed -e "s:KDE4_BIN_INSTALL_DIR:BIN_INSTALL_DIR:" \
42 -i src/CMakeLists.txt
43 echo "CONFIG += ordered" >> kchmviewer.pro # parallel build fix #281954
44 }
45
46 src_configure() {
47 if use kde; then
48 kde4-base_src_configure
49 else
50 eqmake4
51 fi
52 }
53
54 src_compile() {
55 if use kde; then
56 kde4-base_src_compile
57 else
58 emake || die
59 fi
60 }
61
62 src_test() {
63 einfo "No tests exist."
64 }
65
66 src_install() {
67 if use kde; then
68 kde4-base_src_install
69 else
70 dobin bin/kchmviewer || die "dobin kchmviewer failed"
71 domenu packages/kchmviewer.desktop || die
72 dodoc ChangeLog README || die
73 fi
74 doicon packages/kchmviewer.png || die
75 dodoc DBUS-bindings FAQ || die
76 }
77
78 pkg_postinst() {
79 use kde && kde4-base_pkg_postinst
80 fdo-mime_desktop_database_update
81 }
82
83 pkg_postrm() {
84 use kde && kde4-base_pkg_postrm
85 fdo-mime_desktop_database_update
86 }

  ViewVC Help
Powered by ViewVC 1.1.20