1 |
commit: 20ab017d937b2c2ef418b9ad261f435d182e538b |
2 |
Author: Ralph Seichter <github <AT> seichter <DOT> de> |
3 |
AuthorDate: Fri Feb 14 11:03:48 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 25 06:04:47 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20ab017d |
7 |
|
8 |
net-misc/httpie: Bump to version 2.0.0 |
9 |
|
10 |
This ebuild also adds support for Python 3.7. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/709438 |
13 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
14 |
Signed-off-by: Ralph Seichter <gentoo <AT> seichter.de> |
15 |
Closes: https://github.com/gentoo/gentoo/pull/14658 |
16 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
17 |
|
18 |
net-misc/httpie/Manifest | 1 + |
19 |
net-misc/httpie/httpie-2.0.0.ebuild | 39 +++++++++++++++++++++++++++++++++++++ |
20 |
2 files changed, 40 insertions(+) |
21 |
|
22 |
diff --git a/net-misc/httpie/Manifest b/net-misc/httpie/Manifest |
23 |
index bd9a04f9dcf..0ad06b6c918 100644 |
24 |
--- a/net-misc/httpie/Manifest |
25 |
+++ b/net-misc/httpie/Manifest |
26 |
@@ -1 +1,2 @@ |
27 |
DIST httpie-1.0.3.tar.gz 1745537 BLAKE2B 82279804bf10c1882a163f7b361917c9013a5d4ec9ace934f4d89a8c42d18575863cec57768bb4ccfed3b9913a7f2cba593f398a36f87d045a68f21c7237e381 SHA512 80e540dcb92a55fb8b3c5dd56f380cb1795e4296827591853070a5b775c1f87cd881758d9dd0bdfeff383d06ce8ffafe68ec0269e3d269473e528952a769ecb7 |
28 |
+DIST httpie-2.0.0.tar.gz 1752529 BLAKE2B 212e7a142f3efdf1bf238d6eb7e472579a8a8248950caf19ec584eba4f903de09b08433805105a61714046857d32b662f54cde927d20db2a2a1ab81bc99bc753 SHA512 ddac5206107241c9fdc2d2697a31fc7a123c3a01c2ccbd0aad8d52e1472f093b201e422522972cce992bfb2fc7d32ffc6380d457112c83ab643008086f9a7f2d |
29 |
|
30 |
diff --git a/net-misc/httpie/httpie-2.0.0.ebuild b/net-misc/httpie/httpie-2.0.0.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..12211f339e9 |
33 |
--- /dev/null |
34 |
+++ b/net-misc/httpie/httpie-2.0.0.ebuild |
35 |
@@ -0,0 +1,39 @@ |
36 |
+# Copyright 1999-2020 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=7 |
40 |
+ |
41 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
42 |
+PYTHON_COMPAT=( python3_6 python3_7 ) |
43 |
+PYTHON_REQ_USE="ssl(+)" |
44 |
+ |
45 |
+inherit bash-completion-r1 distutils-r1 |
46 |
+ |
47 |
+DESCRIPTION="Modern command line HTTP client" |
48 |
+HOMEPAGE="https://httpie.org/ https://pypi.org/project/httpie/" |
49 |
+SRC_URI="https://github.com/jakubroztocil/httpie/archive/${PV}.tar.gz -> ${P}.tar.gz" |
50 |
+ |
51 |
+LICENSE="BSD" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~x86" |
54 |
+IUSE="test" |
55 |
+RESTRICT="!test? ( test )" |
56 |
+ |
57 |
+RDEPEND="dev-python/pygments[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/requests-2.22.0[${PYTHON_USEDEP}]" |
59 |
+DEPEND="test? ( |
60 |
+ ${RDEPEND} |
61 |
+ dev-python/mock[${PYTHON_USEDEP}] |
62 |
+ dev-python/pyopenssl[${PYTHON_USEDEP}] |
63 |
+ dev-python/pytest-httpbin[${PYTHON_USEDEP}] |
64 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
65 |
+ )" |
66 |
+ |
67 |
+distutils_enable_tests pytest |
68 |
+ |
69 |
+python_install_all() { |
70 |
+ newbashcomp extras/httpie-completion.bash http |
71 |
+ insinto /usr/share/fish/vendor_completions.d |
72 |
+ newins extras/httpie-completion.fish http.fish |
73 |
+ distutils-r1_python_install_all |
74 |
+} |