commit:     be0aafde743046bdfac23126b7f264589cf4bc18
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sun Nov  7 00:23:30 2021 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sun Nov  7 00:28:47 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be0aafde

sys-fs/ntfs3g: add 'fuse' USE flag

This allows libntfs-3g and ntfsprogs to be installed without the FUSE
driver.

Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 sys-fs/ntfs3g/metadata.xml                          |  3 ++-
 ...21.8.22-r2.ebuild => ntfs3g-2021.8.22-r3.ebuild} | 21 ++++++++++++---------
 2 files changed, 14 insertions(+), 10 deletions(-)

diff --git a/sys-fs/ntfs3g/metadata.xml b/sys-fs/ntfs3g/metadata.xml
index fd2cd929283..910a26c2caf 100644
--- a/sys-fs/ntfs3g/metadata.xml
+++ b/sys-fs/ntfs3g/metadata.xml
@@ -16,9 +16,10 @@
                file ownership, access right.
        </longdescription>
        <use>
+               <flag name="fuse">Enable ntfs-3g FUSE driver</flag>
                <flag name="mount-ntfs">Install mount.ntfs symlink</flag>
                <flag name="ntfsdecrypt">Build and install the ntfsdecrypt 
application.</flag>
-               <flag name="ntfsprogs">Include internal version of 
ntfsprogs.</flag>
+               <flag name="ntfsprogs">Enable ntfsprogs</flag>
        </use>
        <upstream>
                <bugs-to>http://tuxera.com/forum/</bugs-to>

diff --git a/sys-fs/ntfs3g/ntfs3g-2021.8.22-r2.ebuild 
b/sys-fs/ntfs3g/ntfs3g-2021.8.22-r3.ebuild
similarity index 84%
rename from sys-fs/ntfs3g/ntfs3g-2021.8.22-r2.ebuild
rename to sys-fs/ntfs3g/ntfs3g-2021.8.22-r3.ebuild
index fa4b403451e..1b89073cd28 100644
--- a/sys-fs/ntfs3g/ntfs3g-2021.8.22-r2.ebuild
+++ b/sys-fs/ntfs3g/ntfs3g-2021.8.22-r3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 2006-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -16,7 +16,7 @@ LICENSE="GPL-2"
 # The subslot matches the SONAME major #.
 SLOT="0/89"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 
~amd64-linux ~x86-linux"
-IUSE="acl debug +mount-ntfs ntfsdecrypt +ntfsprogs static-libs suid xattr"
+IUSE="acl debug +fuse +mount-ntfs ntfsdecrypt +ntfsprogs static-libs suid 
xattr"
 
 RDEPEND="
        sys-apps/util-linux:0=
@@ -52,6 +52,7 @@ src_configure() {
                --disable-ldconfig
                --enable-extras
                $(use_enable debug)
+               $(use_enable fuse ntfs-3g)
                $(use_enable acl posix-acls)
                $(use_enable xattr xattr-mappings)
                $(use_enable ntfsdecrypt crypto)
@@ -75,13 +76,15 @@ src_configure() {
 
 src_install() {
        default
-       if use suid; then
-               fperms u+s /usr/bin/ntfs-3g
-       fi
-       if use mount-ntfs; then
-               dosym mount.ntfs-3g /sbin/mount.ntfs
+       if use fuse; then
+               # Plugins directory
+               keepdir "/usr/$(get_libdir)/ntfs-3g"
+               if use suid; then
+                       fperms u+s /usr/bin/ntfs-3g
+               fi
+               if use mount-ntfs; then
+                       dosym mount.ntfs-3g /sbin/mount.ntfs
+               fi
        fi
        find "${ED}" -name '*.la' -type f -delete || die
-       # https://bugs.gentoo.org/760780
-       keepdir "/usr/$(get_libdir)/ntfs-3g"
 }

Reply via email to