summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-11-23 10:23:43 +0000
committerSam James <sam@gentoo.org>2024-11-23 10:23:43 +0000
commitff1b8bca8af50153ff9ac1fd5d50dc560b959362 (patch)
treef8ecd357fa48a0082d2e4e3e244a68fa823e4613 /dev-libs/cdk
parentdev-libs/cdk: Stabilize 5.0.20240331 ppc64, #944566 (diff)
downloadgentoo-ff1b8bca8af50153ff9ac1fd5d50dc560b959362.tar.gz
gentoo-ff1b8bca8af50153ff9ac1fd5d50dc560b959362.tar.bz2
gentoo-ff1b8bca8af50153ff9ac1fd5d50dc560b959362.zip
dev-libs/cdk: add 5.0.20240619
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/cdk')
-rw-r--r--dev-libs/cdk/Manifest2
-rw-r--r--dev-libs/cdk/cdk-5.0.20240619.ebuild65
2 files changed, 67 insertions, 0 deletions
diff --git a/dev-libs/cdk/Manifest b/dev-libs/cdk/Manifest
index 3ad50fa1d50a..1d4f3f73423e 100644
--- a/dev-libs/cdk/Manifest
+++ b/dev-libs/cdk/Manifest
@@ -2,3 +2,5 @@ DIST cdk-5.0-20230201.tgz 533972 BLAKE2B 8667583ea1401ab04dc43dbd93f8580ee898c35
DIST cdk-5.0-20230201.tgz.asc 729 BLAKE2B 9076836bb6fd8f89ad4c474b7fc2beb3fa9fd16a3c2d530ce34052af65231e2d77f3879d02ca031be6a7bdac6bba29f40bac3320fc513fc3ba5e617316184ed4 SHA512 85e80c49049da9cd335013e564fd15929a127b3fec24bdb50d153196b47f4092c353a7bd6a40211566a7f4d09701cc75d66f9b3b32fed50c6b728e17dc7a166a
DIST cdk-5.0-20240331.tgz 538287 BLAKE2B 0d4e3b8d04056aa658e94a29a836cdc4f82c2281783c11eb74715724befe983954b14ae9aae4dd4e17e772d711becb798107e910234aba02fe626e004ef6f216 SHA512 dfd5a038ec839e7cfe8850d41bace4cf34b44cf7a52c60912838051a959ecd6b2077a29b1dc152425ce518f5c578236bfa4d6736eaa096727e08bd16785d4d34
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
diff --git a/dev-libs/cdk/cdk-5.0.20240619.ebuild b/dev-libs/cdk/cdk-5.0.20240619.ebuild
new file mode 100644
index 000000000000..e17030d35bd1
--- /dev/null
+++ b/dev-libs/cdk/cdk-5.0.20240619.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2024 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
+}