Gentoo Archives: gentoo-commits

From: Jason Zaman <perfinion@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/offlineimap/, net-mail/offlineimap/files/
Date: Sun, 31 Jul 2016 16:35:12
Message-Id: 1469982855.8dca56705fd45cc4b58533a9879ad1a3ce0706f2.perfinion@gentoo
1 commit: 8dca56705fd45cc4b58533a9879ad1a3ce0706f2
2 Author: Jason Zaman <perfinion <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 31 16:32:53 2016 +0000
4 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 31 16:34:15 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8dca5670
7
8 net-mail/offlineimap: bump to 7.0.3 and EAPI6
9
10 Package-Manager: portage-2.2.28
11
12 net-mail/offlineimap/Manifest | 1 +
13 ...ConfigHelperMixin-must-be-new-style-class.patch | 25 +++++++++
14 .../files/offlineimap-7.0.3-darwin10.patch | 12 +++++
15 net-mail/offlineimap/offlineimap-7.0.3.ebuild | 59 ++++++++++++++++++++++
16 4 files changed, 97 insertions(+)
17
18 diff --git a/net-mail/offlineimap/Manifest b/net-mail/offlineimap/Manifest
19 index 219d09b..2bddcb4 100644
20 --- a/net-mail/offlineimap/Manifest
21 +++ b/net-mail/offlineimap/Manifest
22 @@ -1,3 +1,4 @@
23 DIST offlineimap-6.5.5.tar.gz 175338 SHA256 9724245dbd7822a6b1eca340101d8eb785394e8d949b08932d887c41c5ab411d SHA512 d7571acfc1cb6cc60e263f7aa5ce0fec454f3f0a9f7ffe4c6c4fdc43316f938a25ca5229bd58828eac17498248be6a90777c46cbac2c39d3f7b829f7605274ef WHIRLPOOL f024a59d05e1ec91f5a7c2f4fdd6bf52d047982c4d0097120ee290e5f44116145348301cbcaa27b7833c914cc082f156d55155f009634568da54a247df6edd70
24 DIST offlineimap-6.5.6.tar.gz 187801 SHA256 650fa588bdf86624575a5196fa12e9059b74673a51593718d058365230189abd SHA512 3f7cb63d00486de2d648aa9dd3637ce252dd100bc8237742d11f749726b2b14907c07c802ba0fd5891c88f5062f9a2d05ebc78ceee8c30981f4c4579c3143d6e WHIRLPOOL 0ca66a196683555c5a9e193ccb0a84a8104b2a7715a3839f364d77d1376637a4938b39fa7e9a47f925cde2516a4b0ace94d9e4f9d62dcff50501510c834cb023
25 DIST offlineimap-6.5.7.tar.gz 666620 SHA256 b7de52c7d8995e0657bb55da13531c8d6f96d828217159477c685ae408e390a3 SHA512 eb2d7c627b1a5563cb685549eeaaef2cd164e69ab5c541ee64b2d081dfe5493cd51de449e6283447e8132503545f7f37cb6bf7e6764b626f243e502cf77bda4f WHIRLPOOL dbedde3030f1483dda00ee56d2a735c6d131f65dcafac37f476b136de86dbd0d76d87b8701c99e642f050a181f6bb657be9bbae44e2f289137e785759136395f
26 +DIST offlineimap-7.0.3.tar.gz 688967 SHA256 db002ba68ac5ce9336487741d9828e33dd435ee33dc5009ae91c3586d1b4507e SHA512 5ebb0411810b617f7b878df147d10bedf1a9d928645f8080f6d81683f621f503bda3ecc50dbaa86fe0d8b500e355236eebced3833313abb694b0593e626be330 WHIRLPOOL 3e4b3b42f732771e5b1d680dac12a49e2dac2c0e45174e3b40fef961f8917280d76612a048121a7f379edb014f553966f6b40df362a65a93dcf2f752666b8ca3
27
28 diff --git a/net-mail/offlineimap/files/offlineimap-7.0.3-ConfigHelperMixin-must-be-new-style-class.patch b/net-mail/offlineimap/files/offlineimap-7.0.3-ConfigHelperMixin-must-be-new-style-class.patch
29 new file mode 100644
30 index 0000000..38f3c3b
31 --- /dev/null
32 +++ b/net-mail/offlineimap/files/offlineimap-7.0.3-ConfigHelperMixin-must-be-new-style-class.patch
33 @@ -0,0 +1,25 @@
34 +From b19eaebad1e9ae58ed8db028b65c5391cab1271a Mon Sep 17 00:00:00 2001
35 +From: Nicolas Sebrecht <nicolas.s-dev@×××××××.net>
36 +Date: Sat, 30 Jul 2016 04:23:25 +0200
37 +Subject: [PATCH] ConfigHelperMixin must be new-style class to not break
38 + inheritance
39 +
40 +Github-fix: https://github.com/OfflineIMAP/offlineimap/issues/363
41 +Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@×××××××.net>
42 +---
43 + offlineimap/CustomConfig.py | 2 +-
44 + 1 file changed, 1 insertion(+), 1 deletion(-)
45 +
46 +diff --git a/offlineimap/CustomConfig.py b/offlineimap/CustomConfig.py
47 +index b528e70..7dce4a6 100644
48 +--- a/offlineimap/CustomConfig.py
49 ++++ b/offlineimap/CustomConfig.py
50 +@@ -165,7 +165,7 @@ def CustomConfigDefault():
51 +
52 +
53 +
54 +-class ConfigHelperMixin:
55 ++class ConfigHelperMixin(object):
56 + """Allow comfortable retrieving of config values pertaining
57 + to a section.
58 +
59
60 diff --git a/net-mail/offlineimap/files/offlineimap-7.0.3-darwin10.patch b/net-mail/offlineimap/files/offlineimap-7.0.3-darwin10.patch
61 new file mode 100644
62 index 0000000..9ac221c
63 --- /dev/null
64 +++ b/net-mail/offlineimap/files/offlineimap-7.0.3-darwin10.patch
65 @@ -0,0 +1,12 @@
66 +see http://pogma.com/2009/09/09/snow-leopard-and-offlineimap/ and bug 284925
67 +
68 +--- a/offlineimap.py 2016-07-31 23:58:39.131404136 +0800
69 ++++ b/offlineimap.py 2016-07-31 23:58:57.987466173 +0800
70 +@@ -20,6 +20,7 @@
71 + import os
72 + import sys
73 +
74 ++from locale import *
75 + from offlineimap import OfflineImap
76 +
77 + oi = OfflineImap()
78
79 diff --git a/net-mail/offlineimap/offlineimap-7.0.3.ebuild b/net-mail/offlineimap/offlineimap-7.0.3.ebuild
80 new file mode 100644
81 index 0000000..f69cfee
82 --- /dev/null
83 +++ b/net-mail/offlineimap/offlineimap-7.0.3.ebuild
84 @@ -0,0 +1,59 @@
85 +# Copyright 1999-2016 Gentoo Foundation
86 +# Distributed under the terms of the GNU General Public License v2
87 +# $Id$
88 +
89 +EAPI=6
90 +
91 +# Normally you need only one version of this.
92 +DISTUTILS_SINGLE_IMPL=1
93 +PYTHON_COMPAT=( python2_7 python3_4 )
94 +PYTHON_REQ_USE="threads,sqlite?,ssl?"
95 +
96 +inherit distutils-r1
97 +
98 +DESCRIPTION="Powerful IMAP/Maildir synchronization and reader support"
99 +HOMEPAGE="http://offlineimap.org"
100 +SRC_URI="https://github.com/OfflineIMAP/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
101 +
102 +LICENSE="GPL-2"
103 +SLOT="0"
104 +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
105 +IUSE="doc ssl sqlite"
106 +
107 +RDEPEND="dev-python/six"
108 +DEPEND="doc? ( app-text/asciidoc )"
109 +
110 +# see http://pogma.com/2009/09/09/snow-leopard-and-offlineimap/ and bug 284925
111 +PATCHES=(
112 + "${FILESDIR}/${PN}-7.0.3-darwin10.patch"
113 + "${FILESDIR}/${PN}-7.0.3-ConfigHelperMixin-must-be-new-style-class.patch"
114 +)
115 +
116 +src_compile() {
117 + distutils-r1_src_compile
118 + use doc && emake -C docs man
119 +}
120 +
121 +src_install() {
122 + distutils-r1_src_install
123 + dodoc offlineimap.conf offlineimap.conf.minimal
124 + use doc && doman docs/{offlineimap.1,offlineimapui.7}
125 +}
126 +
127 +pkg_postinst() {
128 + echo
129 + elog "You will need to configure offlineimap by creating ~/.offlineimaprc"
130 + elog "Sample configurations are in /usr/share/doc/${PF}/"
131 + elog ""
132 + elog "If you connect via ssl/tls and don't use CA cert checking, it will"
133 + elog "display the server's cert fingerprint and require you to add it to the"
134 + elog "configuration file to be sure it connects to the same server every"
135 + elog "time. This serves to help fixing CVE-2010-4532 (offlineimap doesn't"
136 + elog "check SSL server certificate) in cases where you have no CA cert."
137 + echo
138 +
139 + if use sqlite ; then
140 + elog "The sqlite USE flag only enables a dependency on sqlite. To use"
141 + elog "the sqlite backend you need to enable it in your .offlineimaprc"
142 + fi
143 +}