commit:     b7f66f65de36c2af2d6c446d6d99b64005a51acc
Author:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Sat Dec  6 08:56:26 2025 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Sat Dec  6 09:04:55 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b7f66f65

sys-block/partclone: add 0.3.40

Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 sys-block/partclone/Manifest                       |   1 +
 .../partclone-0.3.40-fix-ncurses-linking.patch     |  28 ++++++
 sys-block/partclone/partclone-0.3.40.ebuild        | 108 +++++++++++++++++++++
 3 files changed, 137 insertions(+)

diff --git a/sys-block/partclone/Manifest b/sys-block/partclone/Manifest
index 796114a683..b125bd581d 100644
--- a/sys-block/partclone/Manifest
+++ b/sys-block/partclone/Manifest
@@ -1,3 +1,4 @@
 DIST partclone-0.3.37.tar.gz 1618078 BLAKE2B 
a90e233602e96c372d113d4407a1cd5bd42a77d34cf9a0f8ca3d0c93da94b5c7094adebe1f7beebe11bffe15b27408bb65f7d47dfd9fac3696833db5e938dc3c
 SHA512 
e3bdc2d4de45375f19cc5d42c84c22c46fb6f9b88b961b8f3622e5666caad0222be2c96bc62c5f4c0ac28d7a8e080697b19feefe3fe6d73a40e6683d61d98ce1
 DIST partclone-0.3.38.tar.gz 1619526 BLAKE2B 
d57c122622ca571d6020667db70b7e44291aa9a1c02b04ad9d94e471e68e1a620e4ccde24b2edfa9a44678a4b1a9888107050f571683547fe0c7c42c354582d1
 SHA512 
fd27ebea6f46c5f127db2deef6a9fadd51248ec0dbe6094d438d8e17d8daa4dd0b7985dd2f7c57e4f15f20bc827e33c58bacac48d8c2921d3602d9849aef1cf8
 DIST partclone-0.3.39.tar.gz 1605420 BLAKE2B 
ed438030cd68600a77266b584aef3b181768dcc50a5d4efb3e1f46890c100c9e36324d68550928070085ed7dd5bdfe6ba5da675e7f5fb11cbd976c8950b017dd
 SHA512 
cf2b88fb397f5db0f9b4ad9093aa9a3cb8f49009d597b91d2ebf748d4a4627d4247b96b363e47b707f993308ac71659d99665c2703cb6d8d89d738f834d28618
+DIST partclone-0.3.40.tar.gz 1570477 BLAKE2B 
cfdfb1f73497607f080986a512569053ce058155eba0a011f55e7946ab68d085d5f534993547788d56779910b848e22d74ca5e4bd7066183f46ee741116e7a5b
 SHA512 
4c96f912df06aa13b441493ba9a23017d7fe8c0474ade5a7f12ef209e113dea4019ab7c2e0f1634c7d9dbd21f86436b3ba15bf836112ccecd094c7361b73a2ba

diff --git 
a/sys-block/partclone/files/partclone-0.3.40-fix-ncurses-linking.patch 
b/sys-block/partclone/files/partclone-0.3.40-fix-ncurses-linking.patch
new file mode 100644
index 0000000000..cb9e8663d2
--- /dev/null
+++ b/sys-block/partclone/files/partclone-0.3.40-fix-ncurses-linking.patch
@@ -0,0 +1,28 @@
+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

diff --git a/sys-block/partclone/partclone-0.3.40.ebuild 
b/sys-block/partclone/partclone-0.3.40.ebuild
new file mode 100644
index 0000000000..8f53b061c5
--- /dev/null
+++ b/sys-block/partclone/partclone-0.3.40.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+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";
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="apfs btrfs +e2fs exfat f2fs fat fuse hfs minix ncurses nilfs2 ntfs"
+IUSE+=" reiserfs static test ufs vmfs xfs"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       app-arch/zstd:=
+       dev-libs/isa-l
+       dev-libs/openssl:0=
+       dev-libs/xxhash
+       sys-apps/util-linux
+       virtual/zlib:=
+       e2fs? ( sys-fs/e2fsprogs )
+       btrfs? ( sys-apps/util-linux )
+       fuse? ( sys-fs/fuse:3 )
+       ncurses? ( sys-libs/ncurses:0= )
+       nilfs2? ( sys-fs/nilfs-utils )
+       ntfs? ( sys-fs/ntfs3g )
+       reiserfs? ( sys-fs/progsreiserfs )
+       xfs? ( sys-apps/util-linux )
+       static? (
+               app-arch/zstd:=[static-libs]
+               dev-libs/openssl:0[static-libs]
+               virtual/zlib:=[static-libs]
+               e2fs? ( sys-fs/e2fsprogs[static-libs] )
+               btrfs? ( sys-apps/util-linux[static-libs] )
+               fuse? ( sys-fs/fuse:0[static-libs] )
+               ncurses? ( sys-libs/ncurses:0[static-libs] )
+               nilfs2? ( sys-fs/nilfs-utils[static-libs] )
+               ntfs? ( sys-fs/ntfs3g[static-libs] )
+               reiserfs? ( sys-fs/progsreiserfs[static-libs] )
+       )
+"
+DEPEND="
+       ${RDEPEND}
+"
+BDEPEND="
+       virtual/pkgconfig
+"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-0.3.40-fix-ncurses-linking.patch
+)
+
+DOCS=(
+       AUTHORS
+       ChangeLog
+       HACKING
+       NEWS
+       README.md
+)
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_configure() {
+       local myconf=(
+               $(use_enable e2fs extfs)
+               $(use_enable apfs)
+               $(use_enable btrfs)
+               $(use_enable exfat)
+               $(use_enable f2fs)
+               $(use_enable fat)
+               $(use_enable fuse)
+               $(use_enable hfs hfsp)
+               $(use_enable minix)
+               $(use_enable ncurses ncursesw)
+               $(use_enable nilfs2)
+               $(use_enable ntfs)
+               $(use_enable reiserfs)
+               $(use_enable test fs-test)
+               $(use_enable static)
+               $(use_enable vmfs)
+               $(use_enable ufs)
+               $(use_enable xfs)
+               --disable-jfs
+               --disable-reiser4
+       )
+       econf "${myconf[@]}"
+}
+
+src_test() {
+       local -x TERM=dummy
+       default
+}

Reply via email to