1 |
# Copyright 1999-2014 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/zsync/zsync-0.6.2.ebuild,v 1.4 2014/05/31 02:14:13 patrick Exp $ |
4 |
|
5 |
EAPI=3 |
6 |
inherit autotools eutils |
7 |
|
8 |
DESCRIPTION="Partial/differential file download client over HTTP which uses the rsync algorithm" |
9 |
HOMEPAGE="http://zsync.moria.org.uk/" |
10 |
|
11 |
ZLIB_PV=1.2.3 |
12 |
ZLIB_P="zlib-${ZLIB_PV}" |
13 |
SRC_URI="http://zsync.moria.org.uk/download/${P}.tar.bz2 |
14 |
http://www.gzip.org/zlib/${ZLIB_P}.tar.bz2 |
15 |
http://www.zlib.net/${ZLIB_P}.tar.bz2" |
16 |
|
17 |
LICENSE="Artistic-2" |
18 |
SLOT="0" |
19 |
KEYWORDS="~amd64 ~arm ~x86" |
20 |
IUSE="" |
21 |
|
22 |
ZLIB_S="${WORKDIR}/${ZLIB_P}" |
23 |
|
24 |
src_prepare() { |
25 |
# Move old zlib-1.2.11 out the way |
26 |
mv "${S}"/zlib zlib-1.2.11-modified |
27 |
|
28 |
cd "${ZLIB_S}" |
29 |
# I am not sure how many other zlib patches we will need to port as well |
30 |
# This covers the security vuln in 1.2.11 |
31 |
epatch "${FILESDIR}"/${P}-${ZLIB_P}-support.patch |
32 |
rm -f Makefile |
33 |
|
34 |
cd "${S}" |
35 |
cp -a "${ZLIB_S}" "${ZLIB_P}-modified" |
36 |
ln -s "${ZLIB_P}-modified" zlib |
37 |
|
38 |
eautoreconf |
39 |
} |
40 |
|
41 |
src_install() { |
42 |
dobin zsync zsyncmake |
43 |
dodoc NEWS README |
44 |
doman doc/zsync.1 doc/zsyncmake.1 |
45 |
} |