summaryrefslogtreecommitdiff
blob: 093e6a3d71222f6cf8f103461e4418ad738bf392 (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
47
48
# Copyright 2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/net-www/skipstone/skipstone-0.8.3.ebuild,v 1.2 2002/07/11 06:30:49 drobbins Exp $

S=${WORKDIR}/${P}
DESCRIPTION="GTK+ based web browser based on the Mozilla engine"
SRC_URI="http://www.muhri.net/skipstone/${P}.tar.gz"
HOMEPAGE="http://www.muhri.net/skipstone/"

DEPEND=">=net-www/mozilla-0.9.9
	=x11-libs/gtk+-1.2*"

RDEPEND="${DEPEND}
	nls? ( sys-devel/gettext )"

src_unpack() {

	unpack ${A}
	use nls && ( \
		cd ${S}/src
		xgettext -k_ -kN_  ../src/*.[ch]  -o ../locale/skipstone.pot

		# Now we apply a patch to rid the files of duplicate translations
		cd ${WORKDIR}
		patch -p0 < ${FILESDIR}/${PN}-gentoo.patch
	)
}

src_compile() {

	local myconf
	use nls \
		&& myconf="${myconf} --enable-nls"

	econf ${myconf} || die
	
	emake \
		PREFIX="/usr/lib/mozilla" || die
}

src_install () {

	einstall \
		PREFIX=${D}/usr \
		LOCALEDIR=${D}/usr/share/locale \
	|| die
	dodoc AUTHORS COPYING README README.copying 
}