summaryrefslogtreecommitdiff
path: root/dev-libs/libfetch/libfetch-2.33.ebuild
blob: 25f02eb46f986a83d47a980ca1753cb53e63fd8c (plain) (blame)
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
# Copyright 2015-2016 Adélie Linux Team
# Distributed under the terms of the NCSA License

EAPI=5

inherit eutils

DESCRIPTION="High-level retrieval and download library for FTP and HTTP(S)"
HOMEPAGE="http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/net/libfetch/"
SRC_URI="http://distfiles.foxkit.us/source/${PN}/${P}.tar.bz2"

LICENSE="BSD-2"
SLOT="0"
KEYWORDS="arm mips ppc x86 x86_64 ~alpha ~arm64 ~hppa ~ppc64 ~sparc64"
IUSE="+ipv6 +ssl"

DEPEND="ssl? ( dev-libs/openssl:0 )"
RDEPEND="${DEPEND}"

EPATCH_SOURCE=( "${FILESDIR}"/${P}-remove-hardcoded-compiler.patch )

src_prepare() {
	epatch
	epatch_user
}

src_compile() {
	use ssl || export FETCH_WITH_OPENSSL=false
	use ipv6 || export FETCH_WITH_INET6=false

	emake
}