-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=3
+EAPI=6
-inherit eutils toolchain-funcs
+inherit toolchain-funcs
DESCRIPTION="multithreaded HTTP download accelerator"
HOMEPAGE="http://www.enderunix.org/aget/"
KEYWORDS="amd64 ~arm ~mips ~ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux"
IUSE=""
-src_prepare() {
- epatch "${FILESDIR}"/${PF}.patch
-}
+PATCHES=(
+ "${FILESDIR}"/aget-0.4.1-r1.patch
+)
src_compile() {
- emake CC="$(tc-getCC)" || die
+ emake CC="$(tc-getCC)"
}
src_install() {
- emake DESTDIR="${ED}" install || die
- dodoc AUTHORS ChangeLog README* THANKS TODO || die
+ emake DESTDIR="${ED}" install
+ dodoc AUTHORS ChangeLog README* THANKS TODO
}