commit:     5441991782b3b9b08bf4a3e7bcd0c330d3940231
Author:     Z. Liu <zhixu.liu <AT> gmail <DOT> com>
AuthorDate: Sat Jan 18 14:59:25 2025 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sat Jan 18 18:40:48 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54419917

dev-libs/cdk: add 5.0.20250116

Signed-off-by: Z. Liu <zhixu.liu <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/40192
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 dev-libs/cdk/Manifest                |  2 ++
 dev-libs/cdk/cdk-5.0.20250116.ebuild | 65 ++++++++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+)

diff --git a/dev-libs/cdk/Manifest b/dev-libs/cdk/Manifest
index 1d4f3f73423e..a298a2d03d0e 100644
--- a/dev-libs/cdk/Manifest
+++ b/dev-libs/cdk/Manifest
@@ -4,3 +4,5 @@ DIST cdk-5.0-20240331.tgz 538287 BLAKE2B 
0d4e3b8d04056aa658e94a29a836cdc4f82c228
 DIST cdk-5.0-20240331.tgz.asc 729 BLAKE2B 
108697e54bbc335cb8aa8e3c4d29fdaffb2a3d8a05f9608f8f5e87ab0cd7ffae74ad9b70ef1dec10cda859e515a19de35b25dbed72dfd185aebab7f92a61153f
 SHA512 
923ecf8ede1b799d6c91220d10f3f4721ac049ee9d0e1716751a4c607fd9e19c67745a202e1cef910821e2c68955733e22e7ef2e6624a9f03fd6fd8e165272b8
 DIST cdk-5.0-20240619.tgz 547275 BLAKE2B 
c43689561f2338382c9defe9cd5b1d2b26672396ba973e1a7192311c2725a976f7e2c8d2ed25ec15ef64cc20ca677078cb162f4060bc1c4f99508c1a1df50bcb
 SHA512 
13f15a53142167352f9b4e6ebd7d49cc2b4c209c36b53422f04d640bd652d33928e55af47f8e02a54a668e89f5df94245008b2a3466fdeae683224582f9a8919
 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

diff --git a/dev-libs/cdk/cdk-5.0.20250116.ebuild 
b/dev-libs/cdk/cdk-5.0.20250116.ebuild
new file mode 100644
index 000000000000..57e04aacc320
--- /dev/null
+++ b/dev-libs/cdk/cdk-5.0.20250116.ebuild
@@ -0,0 +1,65 @@
+# 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"
+SLOT="0/6" # subslot = soname 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-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
+                       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
+}

Reply via email to