commit:     15e6258dd3bbf39663c6f1768e97181d499c0cc6
Author:     Wolfgang E. Sanyer <ezzieyguywuf <AT> gmail <DOT> com>
AuthorDate: Wed Apr  3 00:42:07 2024 +0000
Commit:     Wolfgang E. Sanyer <ezzieyguywuf <AT> gmail <DOT> com>
CommitDate: Wed Apr  3 02:35:41 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=15e6258d

app-backup/b2: bump to 3.18.0

Signed-off-by: Wolfgang E. Sanyer <ezzieyguywuf <AT> gmail.com>

 app-backup/b2/Manifest                        |  1 +
 app-backup/b2/b2-3.18.0.ebuild                | 61 +++++++++++++++++++++++++++
 app-backup/b2/files/b2-3.18.0-nameclash.patch | 29 +++++++++++++
 3 files changed, 91 insertions(+)

diff --git a/app-backup/b2/Manifest b/app-backup/b2/Manifest
index 1bd1b86f8b..ae607ca74f 100644
--- a/app-backup/b2/Manifest
+++ b/app-backup/b2/Manifest
@@ -1,2 +1,3 @@
+DIST b2-3.18.0.gh.tar.gz 189572 BLAKE2B 
9516d98c7c493791f120c345480f16c8d615cbf425f692fa3fe6688c21ef7d26f14cdd7b44cfb22f2c13a5554166c046eb5fa1712a1e1994fa4e4181399eda84
 SHA512 
45c784e961b8b650d27e7fe642cacd194462b3c0864fdc1af52e41a70b435c36fbb803e80cfb2c88b8165ea95459a7e62b1995f26caf612110f8c77418cb6669
 DIST b2-3.4.0.tar.gz 86706 BLAKE2B 
2aa1f4934db0bcf8c1334a5def94fd74824a9ca19d293b201b29f8c4511e8d423fd77d71734c386aeb41e60747ea71d36d8c049676cf6fcd3e101354440da8cc
 SHA512 
5b0f411301f9b022c066ab3a1170d2ef3b21a76fe9c4e668d1da0cbd07334d11614f93d283e5c0482cb4f6985466d28b0fe59b4c058a87643218dd7a96857418
 DIST b2-3.9.0.tar.gz 131326 BLAKE2B 
c357831b7c0b4ae6abc4fafb6e09690f8ffe833d2c58c05610ffdbf94ba276f5fa143dd1528f7e7424b6fa96857c8328be993e6ffc60b61c44037bd9ef0b0e96
 SHA512 
db2fab07e973d6d39db3931dd7f645ee3c9737f4de0ab29327490607d52aad4df2e9049782ef347ee44f80b76dbe91f495ce273285001d49195abe91d5b2cb5d

diff --git a/app-backup/b2/b2-3.18.0.ebuild b/app-backup/b2/b2-3.18.0.ebuild
new file mode 100644
index 0000000000..de51fe0a3d
--- /dev/null
+++ b/app-backup/b2/b2-3.18.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_10 python3_11 python3_12 )
+DISTUTILS_USE_PEP517="pdm-backend"
+DISTUTILS_SINGLE_IMPL=1
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Command-line tool for BackBlaze's B2 product"
+HOMEPAGE="https://github.com/Backblaze/B2_Command_Line_Tool";
+SRC_URI="https://github.com/Backblaze/B2_Command_Line_Tool/archive/refs/tags/v${PV}.tar.gz
 -> ${P}.gh.tar.gz"
+
+S="${WORKDIR}/B2_Command_Line_Tool-${PV}"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+PATCHES=(
+       "${FILESDIR}/${P}-nameclash.patch"
+)
+
+export PDM_BUILD_SCM_VERSION=${PV}
+
+RDEPEND="
+       $(python_gen_cond_dep '
+               >=dev-python/argcomplete-2.1.2[${PYTHON_USEDEP}]
+               >=dev-python/arrow-1.3.0[${PYTHON_USEDEP}]
+               >=dev-python/b2sdk-1.21.0[${PYTHON_USEDEP}]
+               >=dev-python/docutils-0.19[${PYTHON_USEDEP}]
+               >=dev-python/phx-class-registry-4.0.6[${PYTHON_USEDEP}]
+               >=dev-python/rst2ansi-0.1.5[${PYTHON_USEDEP}]
+               >=dev-python/tabulate-0.9.0[${PYTHON_USEDEP}]
+               >=dev-python/tqdm-4.65.0[${PYTHON_USEDEP}]
+       ')
+"
+
+DEPEND="
+       test? (
+               $(python_gen_cond_dep '
+                       >=dev-python/backoff-2.2.1[${PYTHON_USEDEP}]
+                       >=dev-python/pexpect-4.8.0[${PYTHON_USEDEP}]
+               ')
+       )
+"
+
+distutils_enable_tests pytest
+
+# - integration tests require an application key and id (which is reasonable)
+# - sync tests require network access
+python_test() {
+       epytest --deselect test/unit/console_tool test/unit
+       epytest test/unit/console_tool
+}
+
+pkg_postinst() {
+       elog "The b2 executable has been renamed to backblaze2 in order to"
+       elog "avoid a name clash with b2 from boost-build"
+}

diff --git a/app-backup/b2/files/b2-3.18.0-nameclash.patch 
b/app-backup/b2/files/b2-3.18.0-nameclash.patch
new file mode 100644
index 0000000000..cea9a8a720
--- /dev/null
+++ b/app-backup/b2/files/b2-3.18.0-nameclash.patch
@@ -0,0 +1,29 @@
+From e454e6e2f3edb9358bfd14c59cfaf88567389492 Mon Sep 17 00:00:00 2001
+From: "Wolfgang E. Sanyer" <[email protected]>
+Date: Tue, 2 Apr 2024 22:12:48 -0400
+Subject: [PATCH] patch
+
+---
+ pyproject.toml | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index 72cf0e1..464a4a7 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -65,9 +65,9 @@ full = [
+ Homepage = "https://github.com/Backblaze/B2_Command_Line_Tool";
+ 
+ [project.scripts]
+-b2 = "b2._internal.b2v3.__main__:main"
+-b2v3 = "b2._internal.b2v3.__main__:main"
+-_b2v4 = "b2._internal._b2v4.__main__:main"
++backblaze2 = "b2._internal.b2v3.__main__:main"
++backblaze2v3 = "b2._internal.b2v3.__main__:main"
++_backblaze2v4 = "b2._internal._b2v4.__main__:main"
+ 
+ [build-system]
+ requires = ["pdm-backend"]
+-- 
+2.43.2
+

Reply via email to