Install this version:
emerge -a =sys-fs/apfs-fuse-20230312
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =sys-fs/apfs-fuse-20230312
Or alternatively:
emerge --autounmask-write -a =sys-fs/apfs-fuse-20230312
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 20230312 | 8 | ~amd64 | 0 |
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Read-only FUSE driver for the Apple File System (APFS)"
HOMEPAGE="https://github.com/sgan81/apfs-fuse"
SHA="66b86bd525e8cb90f9012543be89b1f092b75cf3"
LZFSE_SHA="e634ca58b4821d9f3d560cdc6df5dec02ffc93fd"
SRC_URI="https://github.com/sgan81/apfs-fuse/archive/${SHA}.tar.gz -> ${P}-${SHA:0:7}.tar.gz
https://github.com/lzfse/lzfse/archive/${LZFSE_SHA}.tar.gz -> lzfse-${LZFSE_SHA:0:7}.tar.gz"
S="${WORKDIR}/${PN}-${SHA}"
# lzfse is bundled because apfs-fuse uses its internal lzvn decoder API.
LICENSE="GPL-2 BSD"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="app-arch/bzip2:=
sys-fs/fuse:3=
virtual/zlib:="
RDEPEND="${DEPEND}"
src_prepare() {
rmdir 3rdparty/lzfse || die
mv "${WORKDIR}/lzfse-${LZFSE_SHA}" 3rdparty/lzfse || die
# Sources are compiled directly by the top-level CMakeLists.txt
rm 3rdparty/lzfse/CMakeLists.txt || die
sed -i '1i #include <cstdint>' ApfsLib/PList.h || die
sed -e '/^cmake_minimum_required/s/3\.0/3.10/' \
-e '/^set(CMAKE_BUILD_TYPE/d' \
-i CMakeLists.txt || die
cmake_src_prepare
}
src_configure() {
# Internal libraries are not installed
local mycmakeargs=( -DBUILD_SHARED_LIBS=OFF )
cmake_src_configure
}
app-arch/bzip2:= sys-fs/fuse:3= virtual/zlib:=
app-arch/bzip2:= sys-fs/fuse:3= virtual/zlib:=
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | apfs-fuse-20230312-66b86bd.tar.gz | 143562 bytes | https://github.com/sgan81/apfs-fuse/archive/66b86bd525e8cb90f9012543be89b1f092b75cf3.tar.gz |
| DIST | lzfse-e634ca5.tar.gz | 50694 bytes | https://github.com/lzfse/lzfse/archive/e634ca58b4821d9f3d560cdc6df5dec02ffc93fd.tar.gz |