mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 14:49:30 -07:00
sys-block/bmaptool: new package, add 3.9.0
Bug: https://bugs.gentoo.org/955524 Signed-off-by: Alfred Wingate <parona@protonmail.com> Part-of: https://github.com/gentoo/gentoo/pull/44276 Closes: https://github.com/gentoo/gentoo/pull/44276 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
00569ec8e6
commit
673d6876e8
1
sys-block/bmaptool/Manifest
Normal file
1
sys-block/bmaptool/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST bmaptool-3.9.0.tar.gz 104321 BLAKE2B cffa465124f1b3c9738a797d3f4eda6252b546476fee6b8c2fabffba71a4da50d8249c74097049e5337a866a08a6d4849eb08fe9c0d909cf105d389f776c5a64 SHA512 5992e26ec54de5b0ec7992c5fe30acafbd8c5817fdaf992816804c6c0a033cb4357e30a581af85835d9e3fe640d06a77a68602b52499def8761de5c2038df017
|
||||
75
sys-block/bmaptool/bmaptool-3.9.0.ebuild
Normal file
75
sys-block/bmaptool/bmaptool-3.9.0.ebuild
Normal file
@@ -0,0 +1,75 @@
|
||||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# py3.14 tests fail for tests/test_api_base.py::TestCreateCopy::test
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
DISTUTILS_USE_PEP517=hatchling
|
||||
inherit distutils-r1 optfeature
|
||||
|
||||
DESCRIPTION="The better dd for embedded projects, based on block maps."
|
||||
HOMEPAGE="https://github.com/yoctoproject/bmaptool"
|
||||
SRC_URI="
|
||||
https://github.com/yoctoproject/bmaptool/archive/refs/tags/v${PV}.tar.gz
|
||||
-> ${P}.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
# pyproject.toml isnt the ultimate truth for dependencies.
|
||||
# Check the Debian control file and rpm spec for a better idea.
|
||||
RDEPEND="
|
||||
app-arch/tar
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
app-arch/bzip2
|
||||
app-arch/gzip
|
||||
app-arch/lz4
|
||||
app-arch/lzop
|
||||
app-arch/pbzip2
|
||||
app-arch/pigz
|
||||
app-arch/unzip
|
||||
app-arch/xz-utils
|
||||
app-arch/zstd
|
||||
dev-python/gpgmepy[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
DOCS=( CHANGELOG.md README.md )
|
||||
|
||||
EPYTEST_PLUGINS=()
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
distutils-r1_python_prepare_all
|
||||
|
||||
# Use reference implementation where alternative implementation would already be preferred
|
||||
sed -e '/decompressor =/ { s/"gzip"/"gzip-reference"/; s/"bzip2"/"bzip2-reference"/ }' \
|
||||
-i src/bmaptool/TransRead.py || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
|
||||
doman docs/man1/bmaptool.1
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "ssh:// support" virtual/ssh
|
||||
optfeature "password-based SSH authentication" net-misc/sshpass
|
||||
optfeature_header "Support for on-the-fly decompression:"
|
||||
optfeature "'.gz', '.gzip', '.tar.gz' and '.tgz'" app-arch/gzip app-arch/pigz
|
||||
optfeature "'.bz2', 'tar.bz2', '.tbz2', '.tbz', and '.tb2'" app-arch/bzip2 app-arch/pbzip2
|
||||
optfeature "'.xz', '.tar.xz', '.txz'" app-arch/xz-utils
|
||||
optfeature "'.lzo', 'tar.lzo', '.tzo'" app-arch/lzop
|
||||
optfeature "'.lz4', 'tar.lz4', '.tlz4'" app-arch/lz4
|
||||
optfeature "'.zst', 'tar.zst', '.tzst'" app-arch/zstd
|
||||
optfeature "'.zip'" app-arch/unzip
|
||||
}
|
||||
11
sys-block/bmaptool/metadata.xml
Normal file
11
sys-block/bmaptool/metadata.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>embedded@gentoo.org</email>
|
||||
<name>Embedded Gentoo</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">yoctoproject/bmaptool</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user