From 8a1b87c199dc8375657b1bedce51f3fa6a951df0 Mon Sep 17 00:00:00 2001 From: Joseph LaFreniere Date: Wed, 8 Feb 2017 15:31:12 -0600 Subject: [PATCH] New package: python-ndg_httpsclient-0.4.2 --- srcpkgs/python-ndg_httpsclient/template | 34 +++++++++++++++++++++++++ srcpkgs/python3-ndg_httpsclient | 1 + 2 files changed, 35 insertions(+) create mode 100644 srcpkgs/python-ndg_httpsclient/template create mode 120000 srcpkgs/python3-ndg_httpsclient diff --git a/srcpkgs/python-ndg_httpsclient/template b/srcpkgs/python-ndg_httpsclient/template new file mode 100644 index 00000000000..7fde46b2b1d --- /dev/null +++ b/srcpkgs/python-ndg_httpsclient/template @@ -0,0 +1,34 @@ +# Template file for 'python-ndg_httpsclient' +pkgname=python-ndg_httpsclient +version=0.4.2 +revision=1 +noarch=yes +wrksrc="ndg_httpsclient-${version}" +build_style=python-module +pycompile_module="ndg/httpsclient" +hostmakedepends="python-setuptools python3-setuptools" +depends="python-openssl python-pyasn1" +short_desc="HTTPS support for httplib and urllib2 (Python2)" +maintainer="Joseph LaFreniere " +homepage="https://github.com/cedadev/ndg_httpsclient" +license="BSD" +distfiles="${PYPI_SITE}/n/ndg_httpsclient/ndg_httpsclient-${version}.tar.gz" +checksum=580987ef194334c50389e0d7de885fccf15605c13c6eecaabd8d6c43768eb8ac +alternatives="ndg_httpclient:ndg_httpclient:/usr/bin/ndg_httpclient2" + +post_install() { + vlicense ndg/httpsclient/LICENSE +} + +python3-ndg_httpsclient_package() { + noarch=yes + depends="python3-openssl python3-pyasn1" + pycompile_module="ndg/httpsclient" + short_desc="${short_desc/Python2/Python3}" + alternatives="ndg_httpclient:ndg_httpclient:/usr/bin/ndg_httpclient3" + pkg_install() { + vmove usr/bin/*3 + vmove usr/lib/python3* + vlicense ndg/httpsclient/LICENSE + } +} diff --git a/srcpkgs/python3-ndg_httpsclient b/srcpkgs/python3-ndg_httpsclient new file mode 120000 index 00000000000..c7fe8790b83 --- /dev/null +++ b/srcpkgs/python3-ndg_httpsclient @@ -0,0 +1 @@ +python-ndg_httpsclient \ No newline at end of file