1 |
commit: 876c69b8de39357064dfa4d4533e6fa8bed2c4a5 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 4 20:37:49 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 4 21:50:30 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=876c69b8 |
7 |
|
8 |
dev-python/imapclient: Clean old up |
9 |
|
10 |
dev-python/imapclient/Manifest | 1 - |
11 |
dev-python/imapclient/imapclient-0.12.ebuild | 62 ---------------------------- |
12 |
2 files changed, 63 deletions(-) |
13 |
|
14 |
diff --git a/dev-python/imapclient/Manifest b/dev-python/imapclient/Manifest |
15 |
index d34758a74b3..38d18b9e8f3 100644 |
16 |
--- a/dev-python/imapclient/Manifest |
17 |
+++ b/dev-python/imapclient/Manifest |
18 |
@@ -1,2 +1 @@ |
19 |
-DIST IMAPClient-0.12.tar.gz 100698 BLAKE2B d5a9ce4285d468ac827c4f33b140317cbff45e28b503e601e2755463957d3eca0144e54f6f59b9564bd1d530d77f791714bd4a72fc44da7e4aace34970bac5a0 SHA512 bd7d3e3911ff5ef1cc4a66f20e261955851562e76228f941d35f16a4680678be6a3741d520cc3133925a2dba9e8b6b5b988d7a740ff8abb63c14db1cf962acda |
20 |
DIST IMAPClient-0.13.tar.gz 102427 BLAKE2B f087b6e89c45810f359bed889345e6748ebf9ae90f6e3c4e013097a4e57d3f5ab0ec21906cfdccc03a344d92ccc442d58e38e687cd0761d86956047e89fedb03 SHA512 daebaf7f4180b6c9c6f4a486b313abfdd06f3ed8ece18a19bf46a50e56c2094e85de8a8e4efb8850566378eba016c10816611d03852caf637ee1d43f3c8a418f |
21 |
|
22 |
diff --git a/dev-python/imapclient/imapclient-0.12.ebuild b/dev-python/imapclient/imapclient-0.12.ebuild |
23 |
deleted file mode 100644 |
24 |
index 8c024c439d8..00000000000 |
25 |
--- a/dev-python/imapclient/imapclient-0.12.ebuild |
26 |
+++ /dev/null |
27 |
@@ -1,62 +0,0 @@ |
28 |
-# Copyright 1999-2015 Gentoo Foundation |
29 |
-# Distributed under the terms of the GNU General Public License v2 |
30 |
- |
31 |
-EAPI=5 |
32 |
- |
33 |
-PYTHON_COMPAT=( python{2_7,3_4} pypy ) |
34 |
- |
35 |
-inherit distutils-r1 |
36 |
- |
37 |
-MY_PN="IMAPClient" |
38 |
-MY_P="${MY_PN}-${PV}" |
39 |
- |
40 |
-DESCRIPTION="easy-to-use, pythonic, and complete IMAP client library" |
41 |
-HOMEPAGE="http://imapclient.freshfoo.com/" |
42 |
-SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
43 |
- |
44 |
-LICENSE="BSD" |
45 |
-SLOT="0" |
46 |
-KEYWORDS="amd64 x86" |
47 |
-IUSE="doc examples test" |
48 |
- |
49 |
-RDEPEND="dev-python/six[${PYTHON_USEDEP}]" |
50 |
-DEPEND="${RDEPEND} |
51 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
52 |
- test? ( $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7 pypy) )" |
53 |
- |
54 |
-S=${WORKDIR}/${MY_P} |
55 |
- |
56 |
-python_prepare_all() { |
57 |
- # use system setuptools |
58 |
- sed -i '/use_setuptools/d' setup.py || die |
59 |
- |
60 |
- # drop explicit mock version test dep |
61 |
- sed -i "/tests_require/s:'mock==.\+':'mock':" setup.py || die |
62 |
- |
63 |
- # use system six library. patch proven less preferable to use of sed (< maintenance) |
64 |
- # but a copy of the working hunks from prior version works fine for now. |
65 |
- rm imapclient/six.py || die |
66 |
- epatch "${FILESDIR}"/0.12-tests.patch |
67 |
- sed -e 's:from .six:from six:g' \ |
68 |
- -e 's:from . import six:import six:g' \ |
69 |
- -i ${PN}/*.py || die |
70 |
- |
71 |
- distutils-r1_python_prepare_all |
72 |
-} |
73 |
- |
74 |
-python_test() { |
75 |
- "${PYTHON}" -m unittest discover || die "tests failed under ${EPYTHON}" |
76 |
-} |
77 |
- |
78 |
-python_install() { |
79 |
- distutils-r1_python_install |
80 |
- # don't install examples and tests in module dir |
81 |
- rm -r "${D}"$(python_get_sitedir)/imapclient/{examples,test} || die |
82 |
-} |
83 |
- |
84 |
-python_install_all() { |
85 |
-# local DOCS=( AUTHORS HACKING.rst NEWS.rst README.rst THANKS ) |
86 |
- use doc && local HTML_DOCS=( doc/html/. ) |
87 |
- distutils-r1_python_install_all |
88 |
- use examples && dodoc -r ${PN}/examples |
89 |
-} |