blob: ad09854915d05a9d69581be3e6f84e49f481182e (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/sitecopy/sitecopy-0.14.3.ebuild,v 1.2 2005/01/30 11:54:06 slarti Exp $
inherit eutils toolchain-funcs
IUSE="ssl xml xml2 gnome nls"
DESCRIPTION="sitecopy is for easily maintaining remote web sites"
SRC_URI="http://www.lyra.org/${PN}/${P}.tar.gz"
HOMEPAGE="http://www.lyra.org/sitecopy/"
KEYWORDS="~x86 ~ppc ~sparc ~amd64"
LICENSE="GPL-2"
SLOT="0"
DEPEND="virtual/libc
>=sys-libs/zlib-1.1.3
xml? ( dev-libs/libxml )
dev-libs/libxml2
ssl? ( >=dev-libs/openssl-0.9.6 )
gnome? (
gnome-base/gnome-libs
=x11-libs/gtk+-1*
)
>=net-misc/neon-0.24.6"
src_unpack() {
unpack ${A}
cd ${S}
if [ $(gcc-version) = "3.4" ]
then
epatch ${FILESDIR}/${PN}-gcc3.4.patch
fi
}
src_compile() {
local myconf=""
use xml && myconf="${myconf} $(use_with xml libxml1)"
if use xml && use xml2 ; then
myconf="${myconf} --with-libxml2 --without-libxml1"
else
myconf="${myconf} $(use_with xml2 libxml2)"
fi
# Bug 51585, GLSA 200406-03
einfo "Forcing the use of the system-wide neon library (BR #51585)."
myconf="${myconf} --with-neon"
econf ${myconf} \
$(use_with ssl) \
$(use_enable nls) \
$(use_enable gnome gnomefe) \
|| die "configuration failed"
# fixes some gnome compile issues
if use gnome
then
echo "int fe_accept_cert(const ne_ssl_certificate *cert, int failures) { return 0; }" >> gnome/gcommon.c
sed -i -e "s:-lglib:-lglib -lgthread:" Makefile
fi
emake || die "Make failed"
}
src_install() {
make DESTDIR=${D} install || die "install failed"
}
|