blob: 98313374bc52f4de2ef727ca73faf3c0a094a344 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/pavuk/pavuk-0.9.34-r1.ebuild,v 1.2 2006/10/27 13:23:04 gustavoz Exp $
inherit eutils
DESCRIPTION="Web spider and website mirroring tool"
HOMEPAGE="http://www.pavuk.org/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc sparc ~x86"
IUSE="gnome gtk nls ssl"
DEPEND=">=sys-apps/sed-4
sys-devel/gettext
ssl? ( dev-libs/openssl )
gnome? ( gnome-base/gnome-libs )
=dev-libs/glib-1.2*
gtk? ( >=x11-libs/gtk+-2.8.8
( || ( x11-proto/xproto
virtual/x11 )
) )"
RDEPEND="gtk? ( >=x11-libs/gtk+-2.8.8
|| ( ( x11-libs/libXt
x11-libs/libXmu
x11-libs/libX11 )
virtual/x11 )
)
virtual/libintl
ssl? ( dev-libs/openssl )
gnome? ( gnome-base/gnome-libs )"
src_unpack() {
unpack ${A}
epatch "${FILESDIR}"/${PN}-0.9.34-nls.patch
}
src_compile() {
econf \
--enable-threads \
--with-regex=auto \
--disable-socks \
$(use_enable gtk) \
$(use_enable ssl) \
$(use_enable gnome) \
$(use_enable nls) \
|| die "econf failed"
emake || die
}
src_install() {
# fix sandbox violation for gnome .desktop and icon, and gnome menu entry
if use gnome
then
sed -i 's:GNOME_PREFIX = /usr:GNOME_PREFIX = ${D}usr:' Makefile
sed -i 's:GNOME_PREFIX = /usr:GNOME_PREFIX = ${D}usr:' icons/Makefile
sed -i 's:Type=Internet:Type=Application:' pavuk.desktop
fi
make DESTDIR="${D}" install || die
dodoc README CREDITS FAQ NEWS AUTHORS BUGS \
TODO MAILINGLIST ChangeLog wget-pavuk.HOWTO jsbind.txt \
pavuk_authinfo.sample pavukrc.sample
}
|