blob: ca19bfe3aecaa356203ebac21b0cafadd207db78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/http-fetcher/http-fetcher-1.0.1-r1.ebuild,v 1.3 2004/06/24 23:12:33 agriffis Exp $
DESCRIPTION="HTTP Fetcher is a small, robust, flexible library for downloading files via HTTP using the GET method."
HOMEPAGE="http://cs.nmu.edu/~lhanson/http_fetcher/"
SRC_URI="http://cs.nmu.edu/~lhanson/http_fetcher/dls/${P/-/_}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="x86"
IUSE=""
DEPEND="virtual/glibc"
S=${WORKDIR}/${P/-/_}
src_unpack () {
unpack ${A}
# source: InetCop Security Advisory, Bugtraq, 06 Jan 2003
cd ${S}/src && patch -p0 <${FILESDIR}/buffer-overflow-gentoo.patch || die
# glibc2.3.2 linking problems
cd ${S} && patch -p1 <${FILESDIR}/errno-link-gentoo.patch || die
}
src_compile() {
./configure \
--host=${CHOST} \
--prefix=/usr \
--infodir=/usr/share/info \
--mandir=/usr/share/man || die "./configure failed"
emake || die
}
src_install() {
make DESTDIR=${D} install || die
dohtml -r docs/index.html docs/html
dodoc README ChangeLog INSTALL LICENSE
}
|