sys-block/partclone: revbump

deals with completion issues

Closes: https://bugs.gentoo.org/942536
Signed-off-by: bakedsnake <bakedsnake@vagrantz.xyz>
This commit is contained in:
bakedsnake committed 2026-08-08 14:42:33 +02:00
1 parent 9124c86e8e
commit 6cb35eeb77
6 files changed
+104 -56

No files matched your search

@@ -1,28 +0,0 @@
diff --git a/configure.ac b/configure.ac
index c29f1e6..36f1874 100644
--- a/configure.ac
+++ b/configure.ac
@@ -504,8 +504,8 @@ fi
AC_CHECK_HEADERS([byteswap.h])
## libtinfo ##
-AC_CHECK_LIB([tinfo], [setupterm], tinfo=1,
- AC_MSG_WARN([*** tinfo library (libtinfo) not found]))
+AC_CHECK_LIB([tinfow], [setupterm], tinfo=1,
+ AC_MSG_WARN([*** tinfow library (libtinfo) not found]))
AM_CONDITIONAL(ENABLE_TINFO, test "$tinfo" = 1)
##memory tracing##
diff --git a/src/Makefile.am b/src/Makefile.am
index b678dbd..05f7018 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -33,7 +33,7 @@ LDADD_static=-ldl
endif
if ENABLE_TINFO
-LIBS+=-ltinfo
+LIBS+=-ltinfow
endif
AM_CFLAGS=-D_FILE_OFFSET_BITS=64
@@ -0,0 +1,8 @@
--- a/src/partclone-completion
+++ b/src/partclone-completion
@@ -173,6 +173,6 @@ complete -F _partclone_completions partclone.apfs partclone.ext2 partclone.f2fs \
partclone.fat partclone.hfsp partclone.nilfs2 partclone.restore partclone.ext4 \
partclone.fat12 partclone.hfsplus partclone.ntfs partclone.vfat partclone.ext4dev \
partclone.fat16 partclone.xfs partclone.exfat partclone.extfs partclone.fat32 \
- partclone.imager partclone.dd
+ partclone.imager partclone.dd partclone-completion partclone
@@ -3,26 +3,20 @@
EAPI=8
inherit autotools
inherit autotools shell-completion
if [[ -z ${PV%%*9999} ]]; then
EGIT_REPO_URI="https://github.com/Thomas-Tsai/${PN}.git"
inherit git-r3
else
[[ -n ${PV%%*_p*} ]] && MY_PV="${PV}"
SRC_URI="
https://github.com/Thomas-Tsai/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
"
KEYWORDS="~amd64 ~x86"
fi
DESCRIPTION="Partition cloning tool"
HOMEPAGE="https://partclone.org"
SRC_URI="https://github.com/Thomas-Tsai/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="apfs btrfs +e2fs exfat f2fs fat fuse hfs minix ncurses nilfs2 ntfs"
IUSE+=" reiserfs static test ufs vmfs xfs"
RESTRICT="!test? ( test )"
REQUIRED_USE="static? ( !fuse )"
RDEPEND="
@@ -63,7 +57,8 @@ BDEPEND="
"
PATCHES=(
"${FILESDIR}"/${PN}-0.3.47-fix-ncurses-linking.patch
"${FILESDIR}"/${PN}-fix-ncurses-linking.patch
"${FILESDIR}"/${PN}-0.3.47-completions.patch
)
DOCS=(
@@ -74,6 +69,35 @@ DOCS=(
README.md
)
CMDS=(
apfs
btrfs
chkimg
dd
exfat
ext2
ext3
ext4
ext4dev
extfs
f2fs
fat
fat12
fat16
fat32
hfs+
hfsp
hfsplus
imager
minix
nilfs2
ntfs
reiser4
restore
vfat
xfs
)
src_prepare() {
default
eautoreconf
@@ -107,6 +131,16 @@ src_configure() {
econf "${myconf[@]}"
}
src_install() {
default
newbashcomp "src/${PN}-completion" "${PN}"
local cmd
for cmd in "${CMDS[@]}"; do
bashcomp_alias "${PN}" "${PN}.${cmd}" || die
done
}
src_test() {
local -x TERM=dummy
default
@@ -3,26 +3,20 @@
EAPI=8
inherit autotools
inherit autotools shell-completion
if [[ -z ${PV%%*9999} ]]; then
EGIT_REPO_URI="https://github.com/Thomas-Tsai/${PN}.git"
inherit git-r3
else
[[ -n ${PV%%*_p*} ]] && MY_PV="${PV}"
SRC_URI="
https://github.com/Thomas-Tsai/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
"
KEYWORDS="~amd64 ~x86"
fi
DESCRIPTION="Partition cloning tool"
HOMEPAGE="https://partclone.org"
SRC_URI="https://github.com/Thomas-Tsai/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="apfs btrfs +e2fs exfat f2fs fat fuse hfs minix ncurses nilfs2 ntfs"
IUSE+=" reiserfs static test ufs vmfs xfs"
RESTRICT="!test? ( test )"
REQUIRED_USE="static? ( !fuse )"
RDEPEND="
@@ -63,7 +57,8 @@ BDEPEND="
"
PATCHES=(
"${FILESDIR}"/${PN}-0.3.47-fix-ncurses-linking.patch
"${FILESDIR}"/${PN}-fix-ncurses-linking.patch
"${FILESDIR}"/${PN}-completions.patch
)
DOCS=(
@@ -74,6 +69,35 @@ DOCS=(
README.md
)
CMDS=(
apfs
btrfs
chkimg
dd
exfat
ext2
ext3
ext4
ext4dev
extfs
f2fs
fat
fat12
fat16
fat32
hfs+
hfsp
hfsplus
imager
minix
nilfs2
ntfs
reiser4
restore
vfat
xfs
)
src_prepare() {
default
eautoreconf
@@ -107,6 +131,16 @@ src_configure() {
econf "${myconf[@]}"
}
src_install() {
default
newbashcomp "src/${PN}-completion" "${PN}"
local cmd
for cmd in "${CMDS[@]}"; do
bashcomp_alias "${PN}" "${PN}.${cmd}" || die
done
}
src_test() {
local -x TERM=dummy
default
@@ -5,9 +5,9 @@ EAPI=8
inherit autotools git-r3 shell-completion
EGIT_REPO_URI="https://github.com/Thomas-Tsai/${PN}.git"
DESCRIPTION="Partition cloning tool"
HOMEPAGE="https://partclone.org"
EGIT_REPO_URI="https://github.com/Thomas-Tsai/${PN}.git"
LICENSE="GPL-2"
SLOT="0"
@@ -56,7 +56,7 @@ BDEPEND="
"
PATCHES=(
"${FILESDIR}"/${PN}-0.3.47-fix-ncurses-linking.patch
"${FILESDIR}"/${PN}-fix-ncurses-linking.patch
"${FILESDIR}"/${PN}-completions.patch
)