# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: [...] $ EAPI=5 inherit autotools eutils DESCRIPTION="Maintain remote web sites with ease" SRC_URI="http://www.manyfish.co.uk/sitecopy/${P}.tar.gz" HOMEPAGE=" http://www.manyfish.co.uk/sitecopy/" # Removed all Debian related stuff. If you want more patches, they can be ported from # http://ftp.debian.org/debian/pool/main/s/sitecopy/ # The sitecopy_0.16.6-5.debian.tar.gz contains their build scripts and patches. # This SiteCopy now builds using the original sources. KEYWORDS="~amd64 ~x86" LICENSE="GPL-2" SLOT="0" IUSE="expat nls rsh ssl webdav xml zlib" # TODO: Depends copied over from old ebuild file, ensure they're still correct! DEPEND="rsh? ( net-misc/netkit-rsh ) >=net-libs/neon-0.24.6[zlib?,ssl?,expat?] <=net-libs/neon-0.30.9999[zlib?,ssl?,expat?] xml? ( >=net-libs/neon-0.24.6[-expat] )" RDEPEND="${DEPEND}" src_unpack() { unpack ${A} cd "${S}" } src_prepare() { # NOTE: Insert patches here. # SiteCopy patches are being currently pulled & ported from # http://ftp.debian.org/debian/pool/main/s/sitecopy/ # Consider SiteCopy to be more or less being actively maintained by # Debian maintainers, but GPL patches ported into Gentoo. epatch "${FILESDIR}/sitecopy-0.16.6-01-remote-dynamic-rc.patch" epatch "${FILESDIR}/sitecopy-0.16.6-02-french-po-fix.patch" epatch "${FILESDIR}/sitecopy-0.16.6-03-wrong-memory-397155.patch" epatch "${FILESDIR}/sitecopy-0.16.6-04-manpages-addition-fixes.patch" epatch "${FILESDIR}/sitecopy-0.16.6-06-sftpdriver.c-fix-for-new-openssh.patch" epatch "${FILESDIR}/sitecopy-0.16.6-10-bts410703-preserve-storage-files-sigint.patch" epatch "${FILESDIR}/sitecopy-0.16.6-20-bts549721-add-compatibility-for-neon-0.29.0.patch" epatch "${FILESDIR}/sitecopy-0.16.6-30-bts320586-manpage-document-sftp.patch" # Source package uses incorrect '/usr/doc' folder, so change install # for doc folder to /usr/share/doc sed -i -e \ "s:docdir \= .*:docdir \= \$\(prefix\)\/share/doc\/${PF}:" \ Makefile.in || die "Documentation directory patching failed" # NOTE: eautoconf/eautomake requires 'inherit autotools' # Need to recreate the source package provided configure script, # because the package provided configure script only supports #