Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/cherrytree/
Date: Fri, 01 Jul 2016 07:25:21
Message-Id: 1467356231.562c33b09723e25c816bc12bc77b5ad054c9fb17.monsieurp@gentoo
1 commit: 562c33b09723e25c816bc12bc77b5ad054c9fb17
2 Author: Jan Chren <dev.rindeal <AT> gmail <DOT> com>
3 AuthorDate: Wed Jun 22 18:48:06 2016 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 1 06:57:11 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=562c33b0
7
8 app-text/cherrytree: bump to v0.37.0
9
10 Closes: https://github.com/gentoo/gentoo/pull/1722
11
12 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
13
14 app-text/cherrytree/Manifest | 1 +
15 app-text/cherrytree/cherrytree-0.37.0.ebuild | 59 ++++++++++++++++++++++++++++
16 2 files changed, 60 insertions(+)
17
18 diff --git a/app-text/cherrytree/Manifest b/app-text/cherrytree/Manifest
19 index 6b78200..c6fd335 100644
20 --- a/app-text/cherrytree/Manifest
21 +++ b/app-text/cherrytree/Manifest
22 @@ -1 +1,2 @@
23 DIST cherrytree-0.36.9.tar.gz 8725402 SHA256 37314cd9ba3e9bb87fb8ef9384da95db583543f2421f5243f7470d9903b3d8bf SHA512 fca9679dc1508b5db1fea9b10f3434f24b4545a53c9a586f1b21298e134242705e4ecc050e0ebffc972caca63c5f2803245b1e65191eed19b82a9cbdec3a40aa WHIRLPOOL edec306131fc09bde6f470c7e8bb1f795d7e54e3d1d0093c421bf515724f8f7d48fc3d024569279ee6db2e46b270db68d41fa4a1f816dfb1f8c9df40380d350d
24 +DIST cherrytree-0.37.0.tar.gz 8888703 SHA256 fa51071c8060fe337bf3092ab75188ce0bbd2ab1b34092607806787b116e54ed SHA512 a1aaf92657c58c70430a45adaa771050b43476bc2a33dc929b108842d5ef46aa83c4fa4cfe8c4f54a9a3656fc0d30046fae34cbac5aa9fe3f32aa539058636f5 WHIRLPOOL 59a8e68c9f2c031bf2acbee827dc73923f0e8f49ab9bf3a40f8b89683f0f2c343466783575b70a13821fc7409f47710fe089bbfcc4bc310a64cd78e68a25c319
25
26 diff --git a/app-text/cherrytree/cherrytree-0.37.0.ebuild b/app-text/cherrytree/cherrytree-0.37.0.ebuild
27 new file mode 100644
28 index 0000000..3d8fa89
29 --- /dev/null
30 +++ b/app-text/cherrytree/cherrytree-0.37.0.ebuild
31 @@ -0,0 +1,59 @@
32 +# Copyright 1999-2016 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=6
37 +
38 +PYTHON_COMPAT=( python2_7 )
39 +DISTUTILS_SINGLE_IMPL=true
40 +
41 +inherit fdo-mime distutils-r1
42 +
43 +DESCRIPTION='A hierarchical note taking application'
44 +HOMEPAGE='http://www.giuspen.com/cherrytree'
45 +LICENSE='GPL-3'
46 +
47 +SLOT='0'
48 +SRC_URI="https://github.com/giuspen/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
49 +
50 +KEYWORDS='~amd64 ~x86'
51 +IUSE='nls'
52 +
53 +RDEPEND="
54 + x11-libs/libX11
55 + dev-python/dbus-python[${PYTHON_USEDEP}]
56 + dev-python/pyenchant[${PYTHON_USEDEP}]
57 + >=dev-python/pygtk-2.16:2[${PYTHON_USEDEP}]
58 + dev-python/pygtksourceview:2[${PYTHON_USEDEP}]
59 +"
60 +DEPEND="${RDEPEND}
61 + nls? ( sys-devel/gettext )
62 +"
63 +
64 +PLOCALES='cs de es fr hy it ja lt nl pl pt_BR ru sl tr uk zh_CN'
65 +inherit l10n
66 +
67 +python_prepare_all() {
68 + if use nls ; then
69 + l10n_find_plocales_changes 'locale' '' '.po'
70 +
71 + rm_loc() {
72 + rm -v -f "locale/${1}.po" || return 1
73 + }
74 + l10n_for_each_disabled_locale_do rm_loc
75 + fi
76 +
77 + sed -i '\|update-desktop-database|d' 'setup.py' || die
78 +
79 + distutils-r1_python_prepare_all
80 +}
81 +
82 +python_configure_all() {
83 + use nls || mydistutilsargs+=( '--without-gettext' )
84 + distutils-r1_python_configure_all
85 +}
86 +
87 +pkg_postinst() {
88 + fdo-mime_desktop_database_update
89 + fdo-mime_mime_database_update
90 +}