From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 41DC9138351 for ; Wed, 1 Apr 2020 14:38:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2782DE0C0E; Wed, 1 Apr 2020 14:38:06 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EBD46E0C0E for ; Wed, 1 Apr 2020 14:38:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 257CA34F898 for ; Wed, 1 Apr 2020 14:38:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1CD651AC for ; Wed, 1 Apr 2020 14:38:00 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1585751852.a99484f44d5447410c3c25823746e7b103eafaf2.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/bleachbit/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/bleachbit/Manifest sys-apps/bleachbit/bleachbit-3.9.0.ebuild X-VCS-Directories: sys-apps/bleachbit/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: a99484f44d5447410c3c25823746e7b103eafaf2 X-VCS-Branch: master Date: Wed, 1 Apr 2020 14:38:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e0c70fd6-a32d-433f-830d-846a8cc5ad10 X-Archives-Hash: 29b083ec10f9c7b2f73df56ff5fb538c commit: a99484f44d5447410c3c25823746e7b103eafaf2 Author: Christian Tietz mailbox org> AuthorDate: Wed Mar 25 03:10:54 2020 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Wed Apr 1 14:37:32 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a99484f4 sys-apps/bleachbit: Bump to 3.9.0 beta (Py3 port), implement tests Tests require FEATURES=-usersandbox. Hence, restrict them. Closes: https://bugs.gentoo.org/711962 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Christian Tietz mailbox.org> Closes: https://github.com/gentoo/gentoo/pull/15102 Closes: https://github.com/gentoo/gentoo/pull/14902 Signed-off-by: Joonas Niilola gentoo.org> sys-apps/bleachbit/Manifest | 1 + sys-apps/bleachbit/bleachbit-3.9.0.ebuild | 78 +++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) diff --git a/sys-apps/bleachbit/Manifest b/sys-apps/bleachbit/Manifest index 9a75f2900af..f1f68a470f6 100644 --- a/sys-apps/bleachbit/Manifest +++ b/sys-apps/bleachbit/Manifest @@ -1 +1,2 @@ DIST bleachbit-3.0.tar.bz2 562646 BLAKE2B 4acdd5469ac1b36ff149231ad0b1b2e4e85a54a81c24c7751ceeed569526b905c1cc6be5201c4fb6929eb48e0553f0b27016de2584ee2f702492cc3fe659c2f9 SHA512 0d61f0b183c0d453275913741020c54c2915be9df45be706203e2278b125f4a02c75865117a7a2d587a034caa9bf109b2f498a4d522cc103c3879cc4a5d4854d +DIST bleachbit-3.9.0.tar.bz2 578754 BLAKE2B cafce09ccc45e2a1b058730597571f4ef94672376e067b2b8f5fb6df674bac48ee7ad40cb52165b38afee0513e8b687f46d27264c562f863fe29d80d08093264 SHA512 bb93825b8dffdb62058315683fc3d3c77e0b0aa9adc2901be73abeae07667e15b91a4266c6ca7cecdfcf10cef8c179d8796b39dd76866ccddc0cd50e5e097bdc diff --git a/sys-apps/bleachbit/bleachbit-3.9.0.ebuild b/sys-apps/bleachbit/bleachbit-3.9.0.ebuild new file mode 100644 index 00000000000..1caaed30cb4 --- /dev/null +++ b/sys-apps/bleachbit/bleachbit-3.9.0.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) +PYTHON_REQ_USE="sqlite(+)" + +inherit desktop distutils-r1 virtualx + +DESCRIPTION="Clean junk to free disk space and to maintain privacy" +HOMEPAGE="https://www.bleachbit.org" +SRC_URI="https://download.bleachbit.org/beta/${PV}/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/chardet[$PYTHON_USEDEP] + dev-python/pygobject:3[$PYTHON_USEDEP] +" +BDEPEND=" + sys-devel/gettext + test? ( dev-python/mock[${PYTHON_USEDEP}] ) +" + +distutils_enable_tests unittest + +# tests fail under FEATURES=usersandbox +RESTRICT+=" test" + +python_prepare_all() { + if use test; then + # avoid tests requiring internet access + rm tests/Test{Chaff,Update}.py || die + + # fails due to non-existent $HOME/.profile + rm tests/TestInit.py || die + + # permission error on $PORTAGE_TMPDIR + sed -e "s/test_encoding(self)/_&/" \ + -i tests/TestCLI.py || die + + # fails on upstream Travis CI as well as on Gentoo + sed -e "s/test_get_proc_swaps(self)/_&/" \ + -i tests/TestMemory.py || die + fi + + distutils-r1_python_prepare_all +} + +python_compile_all() { + emake -C po local +} + +python_install() { + distutils-r1_python_install + python_newscript ${PN}.py ${PN} +} + +python_install_all() { + distutils-r1_python_install_all + emake -C po DESTDIR="${D}" install + + insinto /usr/share/bleachbit/cleaners + doins cleaners/*.xml + + insinto /usr/share/bleachbit + doins data/app-menu.ui + + doicon ${PN}.png + domenu org.${PN}.BleachBit.desktop +} + +python_test() { + virtx emake tests +}