From 101fe26e1b1893bd09298ffa0732b95071157726 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 4 Jul 2016 14:49:47 +0200 Subject: [PATCH] httpie: update to 0.9.4 Add python3.4 flavor. --- srcpkgs/httpie/template | 26 +++++++++++++++++++++----- srcpkgs/python3.4-httpie | 1 + 2 files changed, 22 insertions(+), 5 deletions(-) create mode 120000 srcpkgs/python3.4-httpie diff --git a/srcpkgs/httpie/template b/srcpkgs/httpie/template index cc63c2b7ca..08ecf2192b 100644 --- a/srcpkgs/httpie/template +++ b/srcpkgs/httpie/template @@ -1,19 +1,35 @@ # Template file for 'httpie' pkgname=httpie -version=0.9.3 +version=0.9.4 revision=1 noarch=yes build_style=python-module -hostmakedepends="python-setuptools" -depends="${hostmakedepends} python-requests python-Pygments" +python_versions="2.7 3.4" pycompile_module="httpie" -short_desc="Human-friendly command line HTTP client" +hostmakedepends="python-setuptools python3.4-setuptools" +depends="python-setuptools python-requests python-Pygments" +short_desc="Human-friendly command line HTTP client (Python2)" maintainer="Alessio Sergi " homepage="https://github.com/jakubroztocil/httpie" license="3-clause-BSD" distfiles="${PYPI_SITE}/h/httpie/httpie-${version}.tar.gz" -checksum=30a8ff2a72b75cb6033cc84f5b76c336999f91c325f169e78dc6339351ee7f4b +checksum=0fc288a85d6c018c64bbc86dfcc9c7fad063e79816840dfa91e8d6c43654761e +alternatives="httpie:http:/usr/bin/http2.7" post_install() { vlicense LICENSE } + +python3.4-httpie_package() { + noarch=yes + pycompile_version="3.4" + pycompile_module="httpie" + depends="python3.4-setuptools python3.4-requests python3.4-Pygments" + short_desc="${short_desc/Python2/Python3.4}" + alternatives="httpie:http:/usr/bin/http3.4" + pkg_install() { + vmove usr/bin/*3.4 + vmove usr/lib/python3.4 + vlicense LICENSE + } +} diff --git a/srcpkgs/python3.4-httpie b/srcpkgs/python3.4-httpie new file mode 120000 index 0000000000..425dce2f4d --- /dev/null +++ b/srcpkgs/python3.4-httpie @@ -0,0 +1 @@ +httpie \ No newline at end of file