Gentoo Archives: gentoo-commits

From: "Amadeusz Piotr Żołnowski" <aidecoe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-client/alot/
Date: Sun, 03 Jan 2016 15:52:41
Message-Id: 1451836315.7ca14e6de277fc3dcb1309695bc034055db49d00.aidecoe@gentoo
1 commit: 7ca14e6de277fc3dcb1309695bc034055db49d00
2 Author: Amadeusz Żołnowski <aidecoe <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 3 15:51:55 2016 +0000
4 Commit: Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 3 15:51:55 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ca14e6d
7
8 mail-client/alot: Bump version to 0.3.7
9
10 Package-Manager: portage-2.2.26
11
12 mail-client/alot/Manifest | 1 +
13 mail-client/alot/alot-0.3.7.ebuild | 86 ++++++++++++++++++++++++++++++++++++++
14 2 files changed, 87 insertions(+)
15
16 diff --git a/mail-client/alot/Manifest b/mail-client/alot/Manifest
17 index 55c4496..ea64bef 100644
18 --- a/mail-client/alot/Manifest
19 +++ b/mail-client/alot/Manifest
20 @@ -1 +1,2 @@
21 DIST alot-0.3.6.tar.gz 1492278 SHA256 b8e6092f18e503a528e934231c448db0e03d00e11d844192ba7eeb483838fee7 SHA512 30037ca1d2c169dda6c1660a24dadee12c6b5858d733ec7cd78e49d633850eecb763852c16565340596e32a6831ff8c36764d3f812de7f7947584defe05322b4 WHIRLPOOL cd4aab9dd84a441b92f5d4c62c783d58d8c4fafca614bf8bf462c1b3f0ffb4266e083380712b16f9469a0b418af1672625a21a6ae1f82f6623c6c22e005be6e9
22 +DIST alot-0.3.7.tar.gz 1475759 SHA256 fe281f6b5fbfcd371a1810c8f59084e8cbc3f69068269e3f787adb1df6f977b5 SHA512 a0b7e5a7b77f8cdee38c273eec2822bee2e7c409ab4b8803817a49d679dd53ff29750ba7f8a9214368cc7b0b17bd76a40b0263b4701b2ef695c7669316b1b116 WHIRLPOOL 3c37a037fc5543ff569f6a5364302462f71f5599c14d17661707cd4beb0e2a8597098dd4f4a42aec27793ace7095bba4eb80c35ed5fd8e470f6b7b9dbbecc46e
23
24 diff --git a/mail-client/alot/alot-0.3.7.ebuild b/mail-client/alot/alot-0.3.7.ebuild
25 new file mode 100644
26 index 0000000..7579a5a
27 --- /dev/null
28 +++ b/mail-client/alot/alot-0.3.7.ebuild
29 @@ -0,0 +1,86 @@
30 +# Copyright 1999-2016 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=5
35 +
36 +PYTHON_COMPAT=( python2_7 )
37 +
38 +inherit distutils-r1 vcs-snapshot
39 +
40 +DESCRIPTION="Experimental terminal UI for net-mail/notmuch written in Python"
41 +HOMEPAGE="https://github.com/pazz/alot"
42 +SRC_URI="${HOMEPAGE}/tarball/${PV} -> ${P}.tar.gz"
43 +
44 +LICENSE="GPL-3"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +IUSE="doc"
48 +
49 +DEPEND="
50 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
51 + "
52 +RDEPEND="
53 + >=dev-python/configobj-4.6.0[${PYTHON_USEDEP}]
54 + dev-python/pygpgme[${PYTHON_USEDEP}]
55 + >=dev-python/twisted-core-10.2.0
56 + >=dev-python/urwid-1.1.0[${PYTHON_USEDEP}]
57 + >=dev-python/urwidtrees-1.0[${PYTHON_USEDEP}]
58 + net-mail/mailbase
59 + >=net-mail/notmuch-0.13[crypt,python]
60 + sys-apps/file[python]
61 + "
62 +
63 +ALOT_UPDATE=""
64 +
65 +pkg_setup() {
66 + if has_version "<${CATEGORY}/${PN}-0.3.2"; then
67 + ALOT_UPDATE="yes"
68 + fi
69 +}
70 +
71 +src_prepare() {
72 + find "${S}" -name '*.py' -print0 | xargs -0 -- sed \
73 + -e '1i# -*- coding: utf-8 -*-' -i || die
74 +
75 + distutils-r1_src_prepare
76 +
77 + local md
78 + for md in *.md; do
79 + mv "${md}" "${md%.md}"
80 + done
81 +}
82 +
83 +src_compile() {
84 + distutils-r1_src_compile
85 +
86 + if use doc; then
87 + pushd docs || die
88 + emake html
89 + popd || die
90 + fi
91 +}
92 +
93 +src_install() {
94 + distutils-r1_src_install
95 +
96 + dodir /usr/share/alot
97 + insinto /usr/share/alot
98 + doins -r extra
99 +
100 + if use doc; then
101 + dohtml -r docs/build/html/*
102 + fi
103 +}
104 +
105 +pkg_postinst() {
106 + if [[ ${ALOT_UPDATE} = yes ]]; then
107 + ewarn "The syntax of theme-files and custom tags-sections of the config"
108 + ewarn "has been changed. You have to revise your config. There are"
109 + ewarn "converter scripts in /usr/share/alot/extra to help you out with"
110 + ewarn "this:"
111 + ewarn ""
112 + ewarn " * tagsections_convert.py for your ~/.config/alot/config"
113 + ewarn " * theme_convert.py to update your custom theme files"
114 + fi
115 +}