commit:     ed02d0a88cd110d63c6b4d8f3c0a675ad216d151
Author:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 24 19:08:25 2017 +0000
Commit:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Fri Feb 24 19:09:04 2017 +0000
URL:        https://gitweb.gentoo.org/proj/betagarden.git/commit/?id=ed02d0a8

app-crypt/wile: 0.3.1

 app-crypt/wile/files/wile-0.3.1-setup.patch | 46 +++++++++++++++++++++++++++++
 app-crypt/wile/metadata.xml                 |  7 +++++
 app-crypt/wile/wile-0.3.1.ebuild            | 32 ++++++++++++++++++++
 3 files changed, 85 insertions(+)

diff --git a/app-crypt/wile/files/wile-0.3.1-setup.patch 
b/app-crypt/wile/files/wile-0.3.1-setup.patch
new file mode 100644
index 0000000..76072b4
--- /dev/null
+++ b/app-crypt/wile/files/wile-0.3.1-setup.patch
@@ -0,0 +1,46 @@
+From 120fbe77e695c39744e4e620e24aa57585f5ee57 Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <[email protected]>
+Date: Fri, 24 Feb 2017 19:56:34 +0100
+Subject: [PATCH] Fix "./setup.py build" for when there is no .git around
+
+---
+ setup.py | 13 ++++++++++---
+ 1 file changed, 10 insertions(+), 3 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index 3ed03c2..cfce972 100755
+--- a/setup.py
++++ b/setup.py
+@@ -1,15 +1,14 @@
+ #!/usr/bin/python
+ import os
++import sys
+ from setuptools import setup
+ 
+ 
+ def read(filename):
+     return open(os.path.join(os.path.dirname(__file__), filename)).read()
+ 
+-setup(
++config = dict(
+     name="wile",
+-    use_scm_version=True,
+-    setup_requires=['setuptools_scm'],
+     author="Leo Antunes",
+     author_email="[email protected]",
+     description=("A stripped down Let's Encrypt (ACME) client"),
+@@ -42,3 +41,11 @@ setup(
+         'Topic :: Utilities',
+     ],
+ )
++
++if 'sdist' in sys.argv:
++    config.update(dict(
++        use_scm_version=True,
++        setup_requires=['setuptools_scm'],
++    ))
++
++setup(**config)
+-- 
+2.11.1
+

diff --git a/app-crypt/wile/metadata.xml b/app-crypt/wile/metadata.xml
new file mode 100644
index 0000000..82b7b79
--- /dev/null
+++ b/app-crypt/wile/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+       </maintainer>
+</pkgmetadata>

diff --git a/app-crypt/wile/wile-0.3.1.ebuild b/app-crypt/wile/wile-0.3.1.ebuild
new file mode 100644
index 0000000..31c9514
--- /dev/null
+++ b/app-crypt/wile/wile-0.3.1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+inherit distutils-r1
+
+DESCRIPTION="Stripped down letsencrypt (ACME) client"
+HOMEPAGE="https://github.com/costela/wile";
+SRC_URI="https://github.com/costela/wile/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+       dev-python/six[${PYTHON_USEDEP}]
+       dev-python/click[${PYTHON_USEDEP}]
+       dev-python/pyopenssl[${PYTHON_USEDEP}]
+       dev-python/cryptography[${PYTHON_USEDEP}]
+       "
+RDEPEND="${DEPEND}
+       >=app-crypt/acme-0.6[${PYTHON_USEDEP}]
+       dev-python/setuptools_scm[${PYTHON_USEDEP}]
+       "
+
+DOCS=( README.md )
+
+PATCHES=( "${FILESDIR}"/${P}-setup.patch )

Reply via email to