commit:     4d825be7c42f1a6a024ddee07c016e074d2684c7
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 26 08:04:22 2024 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Thu Sep 26 08:08:17 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d825be7

sys-fs/mtd-utils: improve configure opts

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
Closes: https://bugs.gentoo.org/940249

 sys-fs/mtd-utils/metadata.xml                              |  3 +++
 .../{mtd-utils-2.2.1.ebuild => mtd-utils-2.2.1-r1.ebuild}  | 14 ++++++++++----
 2 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/sys-fs/mtd-utils/metadata.xml b/sys-fs/mtd-utils/metadata.xml
index 85989de1c9ac..1a40eb3fdbdb 100644
--- a/sys-fs/mtd-utils/metadata.xml
+++ b/sys-fs/mtd-utils/metadata.xml
@@ -12,4 +12,7 @@
   <upstream>
     <remote-id type="cpe">cpe:/a:mtd-utils_project:mtd-utils</remote-id>
   </upstream>
+  <use>
+         <flag name="ubifs">Build UBIFS tools</flag>
+  </use>
 </pkgmetadata>

diff --git a/sys-fs/mtd-utils/mtd-utils-2.2.1.ebuild 
b/sys-fs/mtd-utils/mtd-utils-2.2.1-r1.ebuild
similarity index 76%
rename from sys-fs/mtd-utils/mtd-utils-2.2.1.ebuild
rename to sys-fs/mtd-utils/mtd-utils-2.2.1-r1.ebuild
index bdc80fbd7c37..cedbe3c1639e 100644
--- a/sys-fs/mtd-utils/mtd-utils-2.2.1.ebuild
+++ b/sys-fs/mtd-utils/mtd-utils-2.2.1-r1.ebuild
@@ -12,7 +12,8 @@ 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"
+IUSE="+lzo +ssl test xattr +zstd ubifs"
+REQUIRED_USE="ubifs? ( lzo ssl xattr zstd )"
 RESTRICT="!test? ( test )"
 
 DEPEND="
@@ -34,14 +35,19 @@ src_prepare() {
 }
 
 src_configure() {
-       # --enable-tests is for test programs that are installed
+       # --with-tests is for test programs that are installed; was 
--enable-tests in earlier versions
        local myeconfargs=(
-               --enable-tests
+               --with-tests
+               --with-zlib
+               --enable-ubihealthd
+               --with-lsmtd
+               --with-jffs
                $(use_enable test unit-tests)
                $(use_with lzo)
-               $(use_with ssl ubifs)
                $(use_with xattr)
                $(use_with zstd)
+               $(use_with ubifs)
+               $(use_with ubifs crypto) # UBIFS-specific crypto support
        )
        econf "${myeconfargs[@]}"
 }

Reply via email to