diff options
Diffstat (limited to 'net-misc/sitecopy/sitecopy-0.16.3_p15.ebuild')
-rw-r--r-- | net-misc/sitecopy/sitecopy-0.16.3_p15.ebuild | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/net-misc/sitecopy/sitecopy-0.16.3_p15.ebuild b/net-misc/sitecopy/sitecopy-0.16.3_p15.ebuild new file mode 100644 index 000000000000..36cbe75231aa --- /dev/null +++ b/net-misc/sitecopy/sitecopy-0.16.3_p15.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $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 $ + +inherit eutils autotools + +IUSE="expat nls rsh ssl webdav xml zlib" + +DEB_PL="${P##*_p}" +MY_P="${P%%_*}" +MY_P="${MY_P/-/_}" +DESCRIPTION="sitecopy is for easily maintaining remote web sites" +SRC_URI="mirror://debian/pool/main/s/${PN}/${MY_P}.orig.tar.gz + mirror://debian/pool/main/s/${PN}/${MY_P}-${DEB_PL}.diff.gz" +HOMEPAGE="http://packages.debian.org/unstable/sitecopy http://www.lyra.org/sitecopy/" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" + +LICENSE="GPL-2" +SLOT="0" +DEPEND="rsh? ( net-misc/netkit-rsh ) + >=net-misc/neon-0.24.6" + +S="${WORKDIR}"/${MY_P/_/-} + +pkg_setup() { + if use zlib ; then + built_with_use net-misc/neon zlib || die "neon needs zlib support" + fi + + if use ssl ; then + built_with_use net-misc/neon ssl || die "neon needs ssl support" + myconf="${myconf} --with-ssl=openssl" + fi + + if use expat ; then + built_with_use net-misc/neon expat || die "neon needs expat support" + fi + + if use xml ; then + built_with_use net-misc/neon expat && die "neon needs expat support disabled for + libxml2 support to be enabled" + fi +} + +src_unpack() { + unpack ${A} + + # Debian patches + epatch ${MY_P}-${DEB_PL}.diff + epatch "${S}"/debian/patches/*.dpatch + + cd "${S}" + + # Make it work with neon .28 and newer + epatch "${FILESDIR}"/0.16.3-neon-28.patch + + sed -i -e \ + "s:docdir \= .*:docdir \= \$\(prefix\)\/share/doc\/${PF}:" \ + Makefile.in || die "Documentation directory patching failed" + + eautoconf + eautomake +} + +src_compile() { + econf ${myconf} \ + $(use_enable webdav) \ + $(use_enable nls) \ + $(use_enable rsh) \ + $(use_with expat) \ + $(use_with xml libxml2 ) \ + --with-neon \ + || die "econf failed" + + emake || die "eake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" +} |