commit: 54304cd14eb8bbd8a4a3e77d28bf120c8380dbf8
Author: David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Thu Mar 20 09:40:14 2025 +0000
Commit: David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Thu Mar 20 09:48:59 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=54304cd1
dev-util/pmbootstrap: add 3.3.1
Signed-off-by: David Roman <davidroman96 <AT> gmail.com>
dev-util/pmbootstrap/Manifest | 1 +
dev-util/pmbootstrap/pmbootstrap-3.3.1.ebuild | 57 +++++++++++++++++++++++++++
2 files changed, 58 insertions(+)
diff --git a/dev-util/pmbootstrap/Manifest b/dev-util/pmbootstrap/Manifest
index 69fa2c85f..975366c20 100644
--- a/dev-util/pmbootstrap/Manifest
+++ b/dev-util/pmbootstrap/Manifest
@@ -1 +1,2 @@
DIST pmbootstrap-3.0.0.tar.bz2 3244742 BLAKE2B
58f03a93d863b84a8d406c49a9c424aebddfeabfa748cbd91f243dd9fcb8c269c35db7db9f3b349da1efe8a239cf371ab149e2635ee097d05640714033e7d12d
SHA512
c45164f151abaa2f018476cd5a2dd1edcdbfbc565b7f67fc6764ff64fc768c17e727bef349f633f7775904d8e2868515f11470ec5c98f4ccbab69e5ad7bbbc1b
+DIST pmbootstrap-3.3.1.tar.bz2 213101 BLAKE2B
f74d3c2f0b5a883baae48dc6cc663b6ac0473dc3e7eba08ac3ed2d7ca32e052c929faea7c5d126625d772d7cad7abf36c14808b61c52dd3e6ee136de9c3452eb
SHA512
4b96b9e2c30535551581abdaf12e5df702cfb8f18f15dfdd8cef0561348ad67f2b0d4006e2d4b0b25d11c733fe8f59dc6e1c07bdaa2584e60a72991715faa3c6
diff --git a/dev-util/pmbootstrap/pmbootstrap-3.3.1.ebuild
b/dev-util/pmbootstrap/pmbootstrap-3.3.1.ebuild
new file mode 100644
index 000000000..e3ccafefd
--- /dev/null
+++ b/dev-util/pmbootstrap/pmbootstrap-3.3.1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+DISTUTILS_SINGLE_IMPL=1
+PYTHON_COMPAT=( python3_{11..13} )
+
+inherit distutils-r1 linux-info
+
+DESCRIPTION="Helper tool for developing and building postmarketOS"
+HOMEPAGE="https://postmarketos.org/"
+SRC_URI="https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/archive/${PV}/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+
+# According to upstream README either x86, amd64 or arm64 are required. I
+# wrote down all other arches because if I just did -* without adding x86 and
+# arm64 keywords it would seem like the package only works on amd64, but I
can't
+# keyword x86 and arm64 because I can't test these.
+KEYWORDS="-alpha ~amd64 -arm -hppa -ppc -ppc64 -riscv -sparc"
+# Tests are disabled because they require the pmaports repository (containing
+# postmarketOS APKBUILDs) to be cloned at runtime.
+RESTRICT="mirror"
+
+DEPEND="${PYTHON_DEPS}"
+RDEPEND="
+ dev-vcs/git
+ sys-fs/multipath-tools
+"
+
+distutils_enable_tests pytest
+
+pkg_pretend() {
+ if kernel_is -lt 3 17 0; then
+ eerror "pmbootstrap requires Linux 3.17 or greater."
+ die
+ fi
+}
+
+# Without this, emerge errors with an "EPYTHON not set" error.
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+python_test() {
+ local -x EPYTEST_DESELECT=()
+
+ # test_pkgrepo.py is disabled because it requires the pmaports
repository (containing
+ # postmarketOS APKBUILDs) to be cloned at runtime.
+ EPYTEST_DESELECT+=(
+ "test/core/test_pkgrepo.py"
+ )
+
+ distutils-r1_python_test
+}