diff options
author | 2023-12-28 21:40:56 +0100 | |
---|---|---|
committer | 2023-12-31 03:40:44 +0100 | |
commit | d539f9db1a52840e4c09c28386e865ada9f3e078 (patch) | |
tree | 6bafe25108fb8d0ce5fbf50344ac6aca6701b39c /sys-fs/mtd-utils | |
parent | mail-filter/zdkimfilter: fix calling ar directly, bug #893258 (diff) | |
download | gentoo-d539f9db1a52840e4c09c28386e865ada9f3e078.tar.gz gentoo-d539f9db1a52840e4c09c28386e865ada9f3e078.tar.bz2 gentoo-d539f9db1a52840e4c09c28386e865ada9f3e078.zip |
sys-fs/mtd-utils: fix calling ar directly, bug #913610
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at>
Closes: https://bugs.gentoo.org/913610
Closes: https://github.com/gentoo/gentoo/pull/34525
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'sys-fs/mtd-utils')
-rw-r--r-- | sys-fs/mtd-utils/mtd-utils-2.1.6-r2.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/sys-fs/mtd-utils/mtd-utils-2.1.6-r2.ebuild b/sys-fs/mtd-utils/mtd-utils-2.1.6-r2.ebuild new file mode 100644 index 000000000000..b3cd6fa4e221 --- /dev/null +++ b/sys-fs/mtd-utils/mtd-utils-2.1.6-r2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2023 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" +RESTRICT="!test? ( test )" + +DEPEND=" + sys-apps/util-linux:= + sys-libs/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_prepare() { + default + sed -i '/if test.*then/s: == : = :' configure || die +} + +src_configure() { + # --enable-tests is for test programs that are installed + local myeconfargs=( + --enable-tests + $(use_enable test unit-tests) + $(use_with lzo) + $(use_with ssl ubifs) + $(use_with xattr) + $(use_with zstd) + ) + econf "${myeconfargs[@]}" +} + +src_compile() { + emake AR="$(tc-getAR)" +} + +src_install() { + default + doman \ + jffsX-utils/mkfs.jffs2.1 \ + ubi-utils/ubinize.8 +} |