# Copyright 2020 Gentoo Authors
# Copyright 2025-2026 Ben Claw
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="FUSE module to mount ext2, ext3, and ext4 file system devices or images."
HOMEPAGE="https://github.com/alperakcan/fuse-ext2"
SRC_URI="https://github.com/alperakcan/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"

DEPEND="
	sys-fs/fuse
	sys-fs/e2fsprogs
"
RDEPEND="${DEPEND}"
BDEPEND=""

PATCHES=(
	"${FILESDIR}/fuse-ext2-0.0.10-glibc-2.24+-sysmacros.patch"
)

src_configure() {
	./autogen.sh || die
	econf
}