gentoo/sys-fs/mtd-utils/mtd-utils-2.2.1-r1.ebuild
Michał Górny 5153a38778
sys-*/ Update for virtual/zlib
Update done using:

```
git grep -l sys-libs/zlib sys-* | xargs sed -i -e s@sys-libs/zlib@virtual/zlib@g
git grep -l virtual/zlib-ng sys-* | xargs sed -i -e s@virtual/zlib-ng@sys-libs/zlib-ng@g
git diff --name-only | xargs copybump
git diff --name-only | xargs grep -l PYTHON_COMPAT | xargs gpy-impl -@dead
pkgcheck scan --commits -c SourcingCheck,VisibilityCheck --exit error
```

Plus reverts in sys-libs/minizip-ng and sys-libs/zlib-ng.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
2025-11-04 09:20:05 +01:00

60 lines
1.3 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="MTD userspace tools (NFTL, JFFS2, NAND, FTL, UBI)"
HOMEPAGE="https://git.infradead.org/?p=mtd-utils.git;a=summary"
SRC_URI="https://infraroot.at/pub/mtd/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv x86 ~amd64-linux ~x86-linux"
IUSE="+lzo +ssl test xattr +zstd ubifs"
REQUIRED_USE="ubifs? ( lzo ssl xattr zstd )"
RESTRICT="!test? ( test )"
DEPEND="
sys-apps/util-linux:=
virtual/zlib:=
lzo? ( dev-libs/lzo:= )
ssl? ( dev-libs/openssl:0= )
xattr? ( sys-apps/acl )
zstd? ( app-arch/zstd:= )
"
RDEPEND="${DEPEND}"
BDEPEND="test? ( dev-util/cmocka )"
DOCS=( jffsX-utils/device_table.txt ubifs-utils/mkfs.ubifs/README )
src_configure() {
# --with-tests is for test programs that are installed; was --enable-tests in earlier versions
local myeconfargs=(
--with-tests
--with-zlib
--enable-ubihealthd
--with-lsmtd
--with-jffs
$(use_enable test unit-tests)
$(use_with lzo)
$(use_with xattr)
$(use_with zstd)
$(use_with ubifs)
$(use_with ubifs crypto) # UBIFS-specific crypto support
)
econf "${myeconfargs[@]}"
}
src_compile() {
emake AR="$(tc-getAR)"
}
src_install() {
default
doman \
jffsX-utils/mkfs.jffs2.1 \
ubi-utils/ubinize.8
}