blob: 427e19aff03e4ef93e9351a032c1902985e70c51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-doc/kchmviewer/kchmviewer-2.0-r1.ebuild,v 1.1 2006/02/12 16:22:58 carlo Exp $
inherit kde-functions eutils
DESCRIPTION="Qt-based feature rich CHM file viewer."
HOMEPAGE="http://kchmviewer.sourceforge.net/"
SRC_URI="mirror://sourceforge/kchmviewer/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="arts kde"
DEPEND="=x11-libs/qt-3*
~app-doc/chmlib-0.37.4
kde? ( kde-base/kdelibs )"
pkg_setup() {
if use kde && use arts && ! built_with_use kde-base/kdelibs arts ; then
eerror "You are trying to compile ${CATEGORY}/${PF} with the \"arts\" USE flag enabled."
eerror "However, $(best_version kde-base/kdelibs) was compiled with this flag disabled."
eerror
eerror "You must either disable this use flag, or recompile"
eerror "$(best_version kde-base/kdelibs) with this use flag enabled."
die
fi
}
src_unpack() {
unpack ${A}
# broken configure script, assure it doesn't fall back to internal libs
echo "# We use the external chmlib!" > chmlib/chm_lib.h
}
src_compile() {
set-kdedir 3
econf $(use_with kde) $(use_with arts) || die
emake || die
}
src_install() {
make DESTDIR="${D}" install || die
dodoc ChangeLog
}
|