From ef5c2a2a74b71d301db3d5ef6b808f73150d4c1c Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Fri, 2 Oct 2015 11:52:48 -0700 Subject: [PATCH] Add latest aws-cli --- app-admin/aws-cli/Manifest | 2 ++ app-admin/aws-cli/aws-cli-1.8.9.ebuild | 40 ++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 app-admin/aws-cli/Manifest create mode 100644 app-admin/aws-cli/aws-cli-1.8.9.ebuild diff --git a/app-admin/aws-cli/Manifest b/app-admin/aws-cli/Manifest new file mode 100644 index 0000000..d432fcb --- /dev/null +++ b/app-admin/aws-cli/Manifest @@ -0,0 +1,2 @@ +DIST aws-cli-1.8.9.tar.gz 733188 SHA256 55c206db87ada46ca06f41065f35490f6907fad7f295d2c3e0dbd2b4cdbdb6ba SHA512 0dc66d2fa8c24584ce8a22200934eb94cf1fd2c89d1ece04af6b518e66cdbe22feb41e60d67029cacc625b7c1054271cef392b9e906c44b18405bddfcef1c1b5 WHIRLPOOL cae3605ffb7792d52aa2c5d50db1ac74129336ec283f0f4c7efa728dd2178b8a4d58ea278f8e6684f1cafa4f936f3d735d1155c2e1879a332884db3790ce99ba +EBUILD aws-cli-1.8.9.ebuild 1101 SHA256 4749b4f77e6f848b9b59afd39f23b3d11d91b0ffa2ec2ad086ecef4f1c7bcd00 SHA512 c4d6452b6a5465b891ec5d5688906379b36fb36cb5c80dec8371c5ba6813831eb8b7d0481e288867e920ca372e6494deb8129aeea37d8789d7e0906293c925e4 WHIRLPOOL 6895eed8601fc1ebbbb6df6bf62ae4e81042d2bdd9e5e448ceee534bad3ce48abb86d911c10e68ab4957bcb0b7323ba4e73043777efed7ae7e58649c21d83c29 diff --git a/app-admin/aws-cli/aws-cli-1.8.9.ebuild b/app-admin/aws-cli/aws-cli-1.8.9.ebuild new file mode 100644 index 0000000..cd5cb14 --- /dev/null +++ b/app-admin/aws-cli/aws-cli-1.8.9.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_2,3_3,3_4} ) +inherit distutils-r1 + +DESCRIPTION="Universal Command Line Interface for Amazon Web Services" +HOMEPAGE="https://github.com/aws/aws-cli" +SRC_URI="https://github.com/aws/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND="dev-python/botocore[${PYTHON_USEDEP}] + dev-python/colorama[${PYTHON_USEDEP}] + dev-python/docutils[${PYTHON_USEDEP}] + dev-python/rsa[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + test? ( dev-python/nose[${PYTHON_USEDEP}] )" + +src_prepare() { + # Unbundled in dev-python/botocore + grep -rl 'botocore.vendored' | xargs \ + sed -i -e "/import requests/s/from botocore.vendored //" \ + -e "/^from/s/botocore\.vendored\.//" \ + -e "s/^from botocore\.vendored //" \ + -e "s/'botocore\.vendored\./'/" \ + || die "sed failed" +} + +python_test() { + # Only run unit tests + nosetests tests/unit || die "Tests fail with ${EPYTHON}" +}