Lines 1-59
Link Here
|
1 |
# Copyright 1999-2008 Gentoo Foundation |
1 |
# Copyright 1999-2008 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/sitecopy/sitecopy-0.16.3_p17.ebuild,v 1.3 2008/06/30 20:40:11 armin76 Exp $ |
3 |
# $Header:$ |
4 |
|
4 |
|
5 |
inherit eutils autotools |
5 |
EAPI="1" |
6 |
|
6 |
|
7 |
IUSE="expat nls rsh ssl webdav xml zlib" |
7 |
inherit autotools eutils |
8 |
|
8 |
|
9 |
DEB_PL="${P##*_p}" |
9 |
DEB_PL="${P##*_p}" |
10 |
MY_P="${P%%_*}" |
10 |
MY_P="${P%%_*}" |
11 |
MY_P="${MY_P/-/_}" |
11 |
MY_P="${MY_P/-/_}" |
12 |
DESCRIPTION="sitecopy is for easily maintaining remote web sites" |
12 |
DESCRIPTION="sitecopy is for easily maintaining remote web sites" |
|
|
13 |
HOMEPAGE="http://www.manyfish.co.uk/sitecopy/ http://packages.debian.org/unstable/sitecopy" |
13 |
SRC_URI="mirror://debian/pool/main/s/${PN}/${MY_P}.orig.tar.gz |
14 |
SRC_URI="mirror://debian/pool/main/s/${PN}/${MY_P}.orig.tar.gz |
14 |
mirror://debian/pool/main/s/${PN}/${MY_P}-${DEB_PL}.diff.gz" |
15 |
mirror://debian/pool/main/s/${PN}/${MY_P}-${DEB_PL}.diff.gz" |
15 |
HOMEPAGE="http://packages.debian.org/unstable/sitecopy http://www.lyra.org/sitecopy/" |
|
|
16 |
KEYWORDS="~amd64 ppc sparc x86" |
17 |
|
16 |
|
18 |
LICENSE="GPL-2" |
17 |
LICENSE="GPL-2" |
19 |
SLOT="0" |
18 |
SLOT="0" |
20 |
DEPEND="rsh? ( net-misc/netkit-rsh ) |
19 |
KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
21 |
>=net-misc/neon-0.24.6" |
20 |
IUSE="debug +ftp nls +rsh +sftp threads +webdav" |
|
|
21 |
# some features are directly provided by neon |
22 |
# if we want them to be added when emerging sitecopy |
23 |
# with EAPI 2, add neon[zlib?], neon[ipv6?] |
24 |
# in the same way ssl/gnutls support check can be done |
25 |
|
26 |
DEPEND=">=net-misc/neon-0.24" |
27 |
RDEPEND="${DEPEND} |
28 |
rsh? ( net-misc/netkit-rsh )" |
22 |
|
29 |
|
23 |
S="${WORKDIR}"/${MY_P/_/-} |
30 |
S="${WORKDIR}"/${MY_P/_/-} |
24 |
|
31 |
|
25 |
pkg_setup() { |
|
|
26 |
if use zlib ; then |
27 |
built_with_use net-misc/neon zlib || die "neon needs zlib support" |
28 |
fi |
29 |
|
30 |
if use ssl ; then |
31 |
built_with_use net-misc/neon ssl || die "neon needs ssl support" |
32 |
myconf="${myconf} --with-ssl=openssl" |
33 |
fi |
34 |
|
35 |
if use expat ; then |
36 |
built_with_use net-misc/neon expat || die "neon needs expat support" |
37 |
fi |
38 |
|
39 |
if use xml ; then |
40 |
built_with_use net-misc/neon expat && die "neon needs expat support disabled for |
41 |
libxml2 support to be enabled" |
42 |
fi |
43 |
} |
44 |
|
45 |
src_unpack() { |
32 |
src_unpack() { |
46 |
unpack ${A} |
33 |
unpack ${A} |
47 |
|
34 |
|
48 |
# Debian patches |
35 |
# Debian patches |
49 |
epatch ${MY_P}-${DEB_PL}.diff |
36 |
epatch ${MY_P}-${DEB_PL}.diff |
|
|
37 |
|
38 |
# dpatch files are using 0.16.3 version as a reference |
39 |
# changing them to 0.16.6 because patch can't manage this |
40 |
sed -i s/sitecopy-0.16.3/sitecopy-0.16.6/g "${S}"/debian/patches/*.dpatch \ |
41 |
|| die "Changing patches directory failed" |
50 |
epatch "${S}"/debian/patches/*.dpatch |
42 |
epatch "${S}"/debian/patches/*.dpatch |
51 |
|
43 |
|
52 |
cd "${S}" |
44 |
cd "${S}" |
53 |
|
45 |
|
54 |
# Make it work with neon .29 |
|
|
55 |
epatch "${FILESDIR}"/${PV}-neon-29.patch |
56 |
|
57 |
sed -i -e \ |
46 |
sed -i -e \ |
58 |
"s:docdir \= .*:docdir \= \$\(prefix\)\/share/doc\/${PF}:" \ |
47 |
"s:docdir \= .*:docdir \= \$\(prefix\)\/share/doc\/${PF}:" \ |
59 |
Makefile.in || die "Documentation directory patching failed" |
48 |
Makefile.in || die "Documentation directory patching failed" |
Lines 63-80
Link Here
|
63 |
} |
52 |
} |
64 |
|
53 |
|
65 |
src_compile() { |
54 |
src_compile() { |
66 |
econf ${myconf} \ |
55 |
econf $(use_enable debug) \ |
67 |
$(use_enable webdav) \ |
56 |
$(use_enable ftp) \ |
68 |
$(use_enable nls) \ |
57 |
$(use_enable nls) \ |
69 |
$(use_enable rsh) \ |
58 |
$(use_enable rsh) \ |
70 |
$(use_with expat) \ |
59 |
$(use_enable sftp) \ |
71 |
$(use_with xml libxml2 ) \ |
60 |
$(use_enable threads) \ |
72 |
--with-neon \ |
61 |
$(use_enable webdav) \ |
73 |
|| die "econf failed" |
62 |
--disable-gnomefe \ |
|
|
63 |
|| die "econf failed" |
74 |
|
64 |
|
75 |
emake || die "eake failed" |
65 |
emake || die "emake failed" |
76 |
} |
66 |
} |
77 |
|
67 |
|
78 |
src_install() { |
68 |
src_install() { |
79 |
emake DESTDIR="${D}" install || die "emake install failed" |
69 |
emake DESTDIR="${D}" install || die "emake install failed" |
80 |
} |
70 |
} |
|
|
71 |
|
72 |
pkg_postinst() { |
73 |
# Trying to launch sitecopy doesn't work if there isn't an open rcfile |
74 |
# into the home directory. |
75 |
# It should help. |
76 |
ewarn "You have to write your open rcfile to execute sitecopy." |
77 |
ewarn "Look at the open rcfile example here : /usr/share/sitecopy/examplerc" |
78 |
} |