/[gentoo-x86]/net-misc/sitecopy/sitecopy-0.16.3_p15.ebuild
Gentoo

Contents of /net-misc/sitecopy/sitecopy-0.16.3_p15.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Jun 30 20:40:11 2008 UTC (11 years, 5 months ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
sparc/x86 stable, remove old
(Portage version: 2.1.4.4)

1 # Copyright 1999-2008 Gentoo Foundation
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_p15.ebuild,v 1.1 2008/03/25 16:49:25 armin76 Exp $
4
5 inherit eutils autotools
6
7 IUSE="expat nls rsh ssl webdav xml zlib"
8
9 DEB_PL="${P##*_p}"
10 MY_P="${P%%_*}"
11 MY_P="${MY_P/-/_}"
12 DESCRIPTION="sitecopy is for easily maintaining remote web sites"
13 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 HOMEPAGE="http://packages.debian.org/unstable/sitecopy http://www.lyra.org/sitecopy/"
16 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
17
18 LICENSE="GPL-2"
19 SLOT="0"
20 DEPEND="rsh? ( net-misc/netkit-rsh )
21 >=net-misc/neon-0.24.6"
22
23 S="${WORKDIR}"/${MY_P/_/-}
24
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() {
46 unpack ${A}
47
48 # Debian patches
49 epatch ${MY_P}-${DEB_PL}.diff
50 epatch "${S}"/debian/patches/*.dpatch
51
52 cd "${S}"
53
54 # Make it work with neon .28 and newer
55 epatch "${FILESDIR}"/0.16.3-neon-28.patch
56
57 sed -i -e \
58 "s:docdir \= .*:docdir \= \$\(prefix\)\/share/doc\/${PF}:" \
59 Makefile.in || die "Documentation directory patching failed"
60
61 eautoconf
62 eautomake
63 }
64
65 src_compile() {
66 econf ${myconf} \
67 $(use_enable webdav) \
68 $(use_enable nls) \
69 $(use_enable rsh) \
70 $(use_with expat) \
71 $(use_with xml libxml2 ) \
72 --with-neon \
73 || die "econf failed"
74
75 emake || die "eake failed"
76 }
77
78 src_install() {
79 emake DESTDIR="${D}" install || die "emake install failed"
80 }

  ViewVC Help
Powered by ViewVC 1.1.20