91 lines
2.0 KiB
Bash
91 lines
2.0 KiB
Bash
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit autotools flag-o-matic
|
|
|
|
DESCRIPTION="Partition cloning tool"
|
|
HOMEPAGE="https://partclone.org https://github.com/Thomas-Tsai/partclone"
|
|
SRC_URI="https://github.com/Thomas-Tsai/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm ~x86"
|
|
IUSE="+apfs +btrfs +exfat +f2fs +fat fuse hfsp isal +jfs minix mtrace nilfs2 +ntfs +reiser4 +reiserfs static +ufs +vmfs +xfs +xxhash"
|
|
|
|
DEPEND="
|
|
app-arch/zstd:=
|
|
dev-libs/openssl:=
|
|
sys-apps/util-linux
|
|
sys-libs/ncurses:0=
|
|
sys-libs/zlib:=
|
|
>=sys-fs/e2fsprogs-1.41.4
|
|
btrfs? ( sys-fs/btrfs-progs )
|
|
fuse? ( sys-fs/fuse:3 )
|
|
fat? ( sys-fs/dosfstools )
|
|
hfsp? ( sys-fs/hfsutils )
|
|
isal? ( dev-libs/isa-l )
|
|
jfs? ( >=sys-fs/jfsutils-1.1.15-r3 )
|
|
nilfs2? ( sys-fs/nilfs-utils )
|
|
ntfs? ( sys-fs/ntfs3g[ntfsprogs] )
|
|
reiser4? ( >=sys-fs/reiser4progs-1.0.7 )
|
|
reiserfs? ( ~sys-fs/progsreiserfs-0.3.0.5:0.3 )
|
|
ufs? ( >=sys-fs/ufsutils-8.2_p3 )
|
|
vmfs? ( >=sys-fs/vmfs-tools-0.2.5_p3 )
|
|
xxhash? ( dev-libs/xxhash:= )
|
|
xfs? ( sys-fs/xfsprogs )
|
|
"
|
|
RDEPEND="${DEPEND}"
|
|
BDEPEND="
|
|
sys-devel/gettext
|
|
virtual/pkgconfig
|
|
"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${P}-reiserfs3-compat.patch
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
if [[ ${ARCH} == arm ]]; then
|
|
sed -e "s/fail-mbr//g" -i Makefile.am || die
|
|
fi
|
|
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
if use reiserfs; then
|
|
append-cppflags -I"${EPREFIX}"/usr/include/reiserfs3
|
|
fi
|
|
|
|
local myeconfargs=(
|
|
--enable-extfs
|
|
--enable-ncursesw
|
|
$(use_enable apfs)
|
|
$(use_enable btrfs)
|
|
$(use_enable exfat)
|
|
$(use_enable f2fs)
|
|
$(use_enable fat)
|
|
$(use_enable fuse)
|
|
$(use_enable hfsp)
|
|
$(use_enable isal)
|
|
$(use_enable jfs)
|
|
$(use_enable minix)
|
|
$(use_enable mtrace)
|
|
$(use_enable nilfs2)
|
|
$(use_enable ntfs)
|
|
$(use_enable reiser4)
|
|
$(use_enable reiserfs)
|
|
$(use_enable static static-linking)
|
|
$(use_enable ufs)
|
|
$(use_enable vmfs)
|
|
$(use_enable xfs)
|
|
$(use_enable xxhash)
|
|
)
|
|
|
|
econf "${myeconfargs[@]}"
|
|
}
|