Gentoo Archives: gentoo-commits

From: Craig Andrews <candrews@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/bleachbit/
Date: Fri, 29 Dec 2017 19:54:43
Message-Id: 1514577270.6c76bd429e92f20a651e15c4b1d3ecb98f93e8bd.candrews@gentoo
1 commit: 6c76bd429e92f20a651e15c4b1d3ecb98f93e8bd
2 Author: Christian Tietz <christian.tietz <AT> mailbox <DOT> org>
3 AuthorDate: Thu Dec 28 16:18:40 2017 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 29 19:54:30 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c76bd42
7
8 sys-apps/bleachbit: Bump to 1.19.
9
10 Package-Manager: Portage-2.3.13, Repoman-2.3.3
11
12 sys-apps/bleachbit/Manifest | 1 +
13 sys-apps/bleachbit/bleachbit-1.19.ebuild | 66 ++++++++++++++++++++++++++++++++
14 2 files changed, 67 insertions(+)
15
16 diff --git a/sys-apps/bleachbit/Manifest b/sys-apps/bleachbit/Manifest
17 index a02db1f71fd..de67cfee1ac 100644
18 --- a/sys-apps/bleachbit/Manifest
19 +++ b/sys-apps/bleachbit/Manifest
20 @@ -1,2 +1,3 @@
21 DIST bleachbit-1.12.tar.bz2 396838 BLAKE2B 1784b5bc6602e5599b29ffbd0ad0f27f05ffe3aaab25756e3e07fff56c72517493b551063975c943a0e16efc2ecb30fdf69878577b8a5b27eccfdfb3bdd59c40 SHA512 b9c13a75b86eebbedaf928394714ac4d7847b8d53d345a4884acee68cd9c46ff1d5f4108479d7695109bad03c0fcdbb6f89e77d8794a60697fd5c6acdb34530c
22 DIST bleachbit-1.17.tar.gz 867671 BLAKE2B aca71b2e552ff21aab3e86a4200096d5d22bd451111d38bd487dd6ca77aff862917c324ede679e7860cad3d6671aec900d16f8b08a5eb488780bfb18631efd7c SHA512 c1d7d266e7baef532a9826ce1a0fb8cd247136a335c3236ba7cf6e4f7af4420e4f0f424fb98579c5433ebd55138860657a3fad3ad56ed4f4a3f8163526a73e95
23 +DIST bleachbit-1.19.tar.gz 881530 BLAKE2B b3a9ebe066828ead728f4393ba9d52b92967004638f7d74a5dd0576693d2e7ee37eb9e4e4352b973602b7bd6179c7b3a5816109f3f57a56e95c5cbfde32472c3 SHA512 2543a121786ae41c535c7faaf9741808bca57bde75da9b7df75c2653e2864441713fe3b3388ff71db2e88dc9626b457c656fa713774899b7a4912d05329b7eb2
24
25 diff --git a/sys-apps/bleachbit/bleachbit-1.19.ebuild b/sys-apps/bleachbit/bleachbit-1.19.ebuild
26 new file mode 100644
27 index 00000000000..f6f51d04867
28 --- /dev/null
29 +++ b/sys-apps/bleachbit/bleachbit-1.19.ebuild
30 @@ -0,0 +1,66 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +PLOCALES="
37 + ar ast be bg bn bs ca cs da de el en_AU en_CA en_GB eo es et eu fa fi fo fr
38 + gl he hi hr hu hy ia id it ja ko ku ky lt lv ms my nb nds nl nn pl pt pt_BR
39 + ro ru se si sk sl sq sr sv ta te th tr ug uk uz vi zh_CN zh_TW"
40 +PYTHON_COMPAT=( python2_7 )
41 +PYTHON_REQ_USE="sqlite(+)"
42 +
43 +inherit distutils-r1 eutils l10n
44 +
45 +DESCRIPTION="Clean junk to free disk space and to maintain privacy"
46 +HOMEPAGE="https://www.bleachbit.org"
47 +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
48 +
49 +LICENSE="GPL-3"
50 +SLOT="0"
51 +KEYWORDS="~amd64 ~x86"
52 +IUSE="+gtk nls"
53 +
54 +RDEPEND="
55 + dev-python/notify-python[$PYTHON_USEDEP]
56 + gtk? ( dev-python/pygtk:2[$PYTHON_USEDEP] )"
57 +
58 +DEPEND="${RDEPEND}
59 + nls? ( sys-devel/gettext )"
60 +
61 +python_prepare_all() {
62 + rem_locale() {
63 + rm "po/${1}.po" &>/dev/null
64 + if [[ $? -ne 0 ]]; then
65 + eerror "Removing of ${1}.po failed"
66 + die
67 + fi
68 + }
69 +
70 + l10n_find_plocales_changes po "" ".po"
71 + l10n_for_each_disabled_locale_do rem_locale
72 +
73 + # choose correct Python implementation, bug #465254
74 + sed -i 's/python/$(PYTHON)/g' po/Makefile || die
75 +
76 + distutils-r1_python_prepare_all
77 +}
78 +
79 +python_compile_all() {
80 + use nls && emake -C po
81 +}
82 +
83 +python_install_all() {
84 + distutils-r1_python_install_all
85 + use nls && emake -C po DESTDIR="${D}" install
86 +
87 + # https://bugs.gentoo.org/388999
88 + insinto /usr/share/${PN}/cleaners
89 + doins cleaners/*.xml
90 +
91 + newbin ${PN}.py ${PN}
92 + python_replicate_script "${D}/usr/bin/${PN}"
93 +
94 + doicon ${PN}.png
95 + domenu ${PN}.desktop
96 +}