commit: 089051d69e8b8656b37c720389da08f7a0e2fda6
Author: Z. Liu <zhixu.liu <AT> gmail <DOT> com>
AuthorDate: Mon Nov 24 14:32:11 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Dec 4 02:49:32 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=089051d6
dev-libs/cdk: version bump to 5.0.20251014
LICENSE is updated since release 20251001:
* MIT-X11 -> X11 License Distribution Modification Variant
* other-BSD -> X11 for install-sh
* GPL-3 is added for config.{guess,sub}
Signed-off-by: Z. Liu <zhixu.liu <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44758
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-libs/cdk/Manifest | 2 ++
dev-libs/cdk/cdk-5.0.20251014.ebuild | 67 ++++++++++++++++++++++++++++++++++++
2 files changed, 69 insertions(+)
diff --git a/dev-libs/cdk/Manifest b/dev-libs/cdk/Manifest
index a298a2d03d0e..4dc62698265c 100644
--- a/dev-libs/cdk/Manifest
+++ b/dev-libs/cdk/Manifest
@@ -6,3 +6,5 @@ DIST cdk-5.0-20240619.tgz 547275 BLAKE2B
c43689561f2338382c9defe9cd5b1d2b2667239
DIST cdk-5.0-20240619.tgz.asc 729 BLAKE2B
35113c83dbd649ec67a4b3c97d769f98650f5489536894f0111c5f492cd9a9bac387514cf231806f5e35ccd329c38b9a817fe5915ecdcf7c3959a2eddb1bc926
SHA512
fffebaed05ff032b83196bb9e186636bbe5d661a02a1736bc7a70bda8a5efb474fa91da1610852cb327f49701d0c1dc33214e911e3514d15bd512fd4d3ac6f2f
DIST cdk-5.0-20250116.tgz 549798 BLAKE2B
5509f5ce311f9cc0d3e833d18f9d434f0cd88b8106d9ffcce03b9203d63796089e1d67ac566ffc26a61f3e335a6327f48a0662959d5f497ee94f72e7970fed9a
SHA512
d86a26fcce3f2b23c86138b0e620bafcae4ac63d1932f58c074a5e96b8eb856be1a858e190c6563d2986b92f9e770e5d0bd7c3d872f31880ceba41f9eb1754a2
DIST cdk-5.0-20250116.tgz.asc 729 BLAKE2B
1d624eeb1071d3ed1b6174941fa5059ae35f7208b8e213bb9cb6d3cf1210d8c62fc7fa7217c13324591e21325a199c6abf09a5afa37ff3d6b38bb280d4b146f8
SHA512
643e3bf1aa71873341a4455626fd284d80be261abfc694dbc93c07c62ce9e8dde38b690c196b780e697c39d44b53dde038543b95615ead1a05364c334f2b152d
+DIST cdk-5.0-20251014.tgz 551916 BLAKE2B
c144a12740e9a8e9b06e42c2bc5c61b9f0c62f121a8bd7a2cf0672e9fdae93146836ab8d4ae5da0a6cc1bc4e58822579f851065b3d93e8d3ba4210ed88cb508e
SHA512
dc3b66b4139d85fd260885f5e7fb8ccf6f38325ec6478d00d869074b37ceac735d62424c21802e502a274f7c0197c762c6624e15b33c23cf56432b9c65a06622
+DIST cdk-5.0-20251014.tgz.asc 729 BLAKE2B
1824d59b873d26ef7912a8533d662b7a8b28a2f34376ac51ed403459c1d4458babbbaf49978746504c06024ba7dcaddbcc0c620f1117c9761c598ab219659778
SHA512
84729adf3412dd0932ef96b3cc146799ec41e529defc9e2ae7f630c96398d65b0b7ab759ad79ace731288dfe9180bad1178387414c1a287a7f76d81666ea5a58
diff --git a/dev-libs/cdk/cdk-5.0.20251014.ebuild
b/dev-libs/cdk/cdk-5.0.20251014.ebuild
new file mode 100644
index 000000000000..cca70d2b1d78
--- /dev/null
+++ b/dev-libs/cdk/cdk-5.0.20251014.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_P="${PN}-$(ver_rs 2 -)"
+
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/thomasdickey.asc
+inherit verify-sig
+
+DESCRIPTION="A library of curses widgets"
+HOMEPAGE="https://dickey.his.com/cdk/cdk.html
https://github.com/ThomasDickey/cdk-snapshots"
+SRC_URI="https://invisible-island.net/archives/${PN}/${MY_P}.tgz"
+SRC_URI+=" verify-sig? (
https://invisible-island.net/archives/${PN}/${MY_P}.tgz.asc )"
+S="${WORKDIR}"/${MY_P}
+
+LICENSE="MIT GPL-3"
+SLOT="0/6.3.5" # subslot = soname version, check VERSION
+KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ppc ~ppc64 ~s390 ~sparc ~x86
~amd64-linux ~x86-linux"
+IUSE="examples unicode"
+
+DEPEND="sys-libs/ncurses:=[unicode(+)?]"
+RDEPEND="${DEPEND}"
+BDEPEND="
+ virtual/pkgconfig
+ verify-sig? ( sec-keys/openpgp-keys-thomasdickey )
+"
+
+src_configure() {
+ if [[ ${CHOST} == *-*-darwin* ]] ; then
+ export ac_cv_prog_LIBTOOL=glibtool
+ fi
+
+ # --with-libtool dropped for now because of broken Makefile
+ # bug #790773
+ #
+ # Fedora and openSUSE at least both build with --enable-const. Without
+ # this, consumers end up broken like gphoto2 in bug #919279.
+ econf \
+ --disable-rpath-hack \
+ --enable-const \
+ --with-shared \
+ --with-pkg-config \
+ --enable-pc-files \
+ --with-shlib-version=abi \
+
--with-pkg-config-libdir="${EPREFIX}/usr/$(get_libdir)/pkgconfig" \
+ --with-ncurses$(usex unicode "w" "")
+}
+
+src_install() {
+ # parallel make installs duplicate libs
+ emake -j1 \
+ DESTDIR="${D}" \
+ DOCUMENT_DIR="${ED}/usr/share/doc/${PF}" \
+ install
+
+ if use examples ; then
+ local x
+ for x in include c++ demos examples cli cli/utils cli/samples ;
do
+ [[ -d ${x} ]] || continue
+ docinto ${x}
+ find ${x} -maxdepth 1 -mindepth 1 -type f -print0 |
xargs -0 dodoc || die
+ done
+ fi
+
+ find "${ED}" \( -name '*.a' -or -name '*.la' \) -delete || die
+}