summaryrefslogtreecommitdiff
blob: 84daa85b789d03876577a777b924679bbc46dacb (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-www/konqueror-embedded/konqueror-embedded-20010207-r1.ebuild,v 1.12 2003/09/08 06:58:01 vapier Exp $

DESCRIPTION="The Konqueror/Embedded project attempts to build up a special version of the web browsing component of the KDE browser Konqueror (in particular its html rendering engine khtml and its io subsystem)"
HOMEPAGE="http://www.konqueror.org/embedded.html"
SRC_URI="http://devel-home.kde.org/~hausmann/${PN}-snapshot.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 sparc"

S=${WORKDIR}/${PN}-snapshot

src_compile() {
	local myconf
	if [ "`use qt-embedded`" ]
	then
		export QTDIR=/opt/qt-embedded
		export PATH=$QTDIR/bin:$PATH
		export LDFLAGS="-L/usr/lib -lmng -ljpeg"
		myconf="--with-qt-dir=$QTDIR --enable-qt-embedded --enable-static --disable-shared --prefix=/usr/embedded"
	else
		myconf="--prefix=/usr"
	fi
	/configure ${myconf} --host=${CHOST} --with-ssl-dir=/usr || die
	make || die
}

src_install() {
	make DESTDIR=${D} install || die
	if [ "`use qt-embedded`" ]
	then
		dodir /usr/embedded/bin
		mv ${D}/usr/embedded/konq* ${D}/usr/embedded/bin
	else
		dodir /usr/bin
		# i don't know what an embedded konq loks like, bt it had better not
		# conflict with the main konqueror of kde! - danarmak
		mv ${D}/usr/konq* ${D}/usr/bin
	fi
}