net-misc/axel: Version Bump and live ebuild
authorJustin Lecher <jlec@gentoo.org>
Thu, 5 Jan 2017 22:33:27 +0000 (22:33 +0000)
committerJustin Lecher <jlec@gentoo.org>
Thu, 5 Jan 2017 22:50:32 +0000 (22:50 +0000)
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=385155
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=604522

Package-Manager: Portage-2.3.3, Repoman-2.3.1
Signed-off-by: Justin Lecher <jlec@gentoo.org>
net-misc/axel/Manifest
net-misc/axel/axel-2.12.ebuild [new file with mode: 0644]
net-misc/axel/axel-9999.ebuild [new file with mode: 0644]

index f63ee4beac3730e3ab85d5edad45256f71659264..48500a58b56240b87482ed82df6ce55d76729764 100644 (file)
@@ -1 +1,2 @@
+DIST axel-2.12.tar.gz 82995 SHA256 28e7bb26b7be3f56a61b60ef07e15e05ea9a41850b0ed45a0c56d6d2202f4a8b SHA512 5e163c319366f7efd16f8b35dbcf901300c884ab303696dabe87ad47511f56cc3f1e399af738dc79ca717ca70fd529b6dd1adf30f5162cfb530105ce34e2eaf2 WHIRLPOOL dece4ad9eae5441e0b24952a96189417e75eb155ad46b199ce531b35fa6d027ffb75a16c016044a37dd4e76601865e51c0310b69b7fc70b974f9b67a6b2b1fe5
 DIST axel-2.4.tar.bz2 44995 SHA256 ebc7d40e989c680d2afa632a17e5208101608924cf446da20814a6f3c3338612 SHA512 34d73cea19f2bf393aa8d3e4b6c24296f8b1d4e6177da6f4728763e013d5d9d073aa5dae31d0ff175126e8fcbd973daf94674a70f100afc9e7d00b92b78b8ec9 WHIRLPOOL 373af984738008572847ae0ed84a518d0b61323e3612f48affa96175792b0856c2bd13601ddcdd0c81ead5059ee41130759bf9b0ada2a2654f767ec69d992a0f
diff --git a/net-misc/axel/axel-2.12.ebuild b/net-misc/axel/axel-2.12.ebuild
new file mode 100644 (file)
index 0000000..78df255
--- /dev/null
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="Light Unix download accelerator"
+HOMEPAGE="https://github.com/eribertomota/axel"
+SRC_URI="https://github.com/eribertomota/axel/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc64-solaris"
+IUSE="debug libressl nls ssl"
+
+REQUIRED_USE="libressl? ( ssl )"
+
+CDEPEND="
+       ssl? (
+               !libressl? ( dev-libs/openssl:0= )
+               libressl? ( dev-libs/libressl:0= )
+       )
+"
+DEPEND="${CDEPEND}
+       nls? ( sys-devel/gettext )"
+RDEPEND="${CDEPEND}
+       nls? ( virtual/libintl virtual/libiconv )"
+
+DOCS=( doc/. )
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_configure() {
+       econf \
+               $(use_enable nls) \
+               $(use_with ssl openssl)
+}
+
+pkg_postinst() {
+       einfo 'To use axel with portage, try these settings in your make.conf'
+       einfo
+       einfo ' FETCHCOMMAND='\''axel -a -o "\${DISTDIR}/\${FILE}.axel" "\${URI}" && mv "\${DISTDIR}/\${FILE}.axel" "\${DISTDIR}/\${FILE}"'\'
+       einfo ' RESUMECOMMAND="${FETCHCOMMAND}"'
+}
diff --git a/net-misc/axel/axel-9999.ebuild b/net-misc/axel/axel-9999.ebuild
new file mode 100644 (file)
index 0000000..e69e0ba
--- /dev/null
@@ -0,0 +1,50 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit autotools git-r3
+
+DESCRIPTION="Light Unix download accelerator"
+HOMEPAGE="https://github.com/eribertomota/axel"
+SRC_URI=""
+EGIT_REPO_URI="https://github.com/eribertomota/axel.git"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE="debug libressl nls ssl"
+
+REQUIRED_USE="libressl? ( ssl )"
+
+CDEPEND="
+       ssl? (
+               !libressl? ( dev-libs/openssl:0= )
+               libressl? ( dev-libs/libressl:0= )
+       )
+"
+DEPEND="${CDEPEND}
+       nls? ( sys-devel/gettext )"
+RDEPEND="${CDEPEND}
+       nls? ( virtual/libintl virtual/libiconv )"
+
+DOCS=( doc/. )
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_configure() {
+       econf \
+               $(use_enable nls) \
+               $(use_with ssl openssl)
+}
+
+pkg_postinst() {
+       einfo 'To use axel with portage, try these settings in your make.conf'
+       einfo
+       einfo ' FETCHCOMMAND='\''axel -a -o "\${DISTDIR}/\${FILE}.axel" "\${URI}" && mv "\${DISTDIR}/\${FILE}.axel" "\${DISTDIR}/\${FILE}"'\'
+       einfo ' RESUMECOMMAND="${FETCHCOMMAND}"'
+}