diff options
author | Matoro Mahri <matoro@users.noreply.github.com> | 2023-09-24 19:07:32 -0400 |
---|---|---|
committer | Jakov Smolić <jsmolic@gentoo.org> | 2023-09-25 18:50:39 +0200 |
commit | 08785a19704f0ef4da7002d901dd1f91badf09fe (patch) | |
tree | 84e8db9bb84cb48a3b07f602888cb5e08bfe7bc0 /sys-fs | |
parent | dev-cpp/yaml-cpp: add 0.8.0 (diff) | |
download | gentoo-08785a19704f0ef4da7002d901dd1f91badf09fe.tar.gz gentoo-08785a19704f0ef4da7002d901dd1f91badf09fe.tar.bz2 gentoo-08785a19704f0ef4da7002d901dd1f91badf09fe.zip |
sys-fs/mtd-utils: support USE=ssl
Closes: https://bugs.gentoo.org/887275
Signed-off-by: Matoro Mahri <matoro@users.noreply.github.com>
Signed-off-by: Allen Webb <allenwebb@google.com>
Closes: https://github.com/gentoo/gentoo/pull/33041
Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/mtd-utils/mtd-utils-2.1.6-r1.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/sys-fs/mtd-utils/mtd-utils-2.1.6-r1.ebuild b/sys-fs/mtd-utils/mtd-utils-2.1.6-r1.ebuild new file mode 100644 index 000000000000..d3d01859a5d6 --- /dev/null +++ b/sys-fs/mtd-utils/mtd-utils-2.1.6-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +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 ) + +PATCHES=( + #"${FILESDIR}"/${P}-glibc-2.36.patch +) + +src_prepare() { + default + sed -i '/if test.*then/s: == : = :' configure || die +} + +src_configure() { + # --enable-tests is for test programs that are installed + econf \ + --enable-tests \ + $(use_enable test unit-tests) \ + $(use_with lzo) \ + $(use_with ssl ubifs ) \ + $(use_with xattr) \ + $(use_with zstd) +} + +src_install() { + default + doman \ + jffsX-utils/mkfs.jffs2.1 \ + ubi-utils/ubinize.8 +} |