Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/cdk/
Date: Mon, 17 May 2021 22:36:09
Message-Id: 1621290863.f7ebb3dd25bd3adbe55389e6dadf37137bb0297c.sam@gentoo
1 commit: f7ebb3dd25bd3adbe55389e6dadf37137bb0297c
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 16 22:40:59 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon May 17 22:34:23 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7ebb3dd
7
8 dev-libs/cdk: add 5.0.20210324
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 dev-libs/cdk/Manifest | 1 +
13 dev-libs/cdk/cdk-5.0.20210324.ebuild | 53 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 54 insertions(+)
15
16 diff --git a/dev-libs/cdk/Manifest b/dev-libs/cdk/Manifest
17 index fc6e4d0e6ef..48dbe564e6c 100644
18 --- a/dev-libs/cdk/Manifest
19 +++ b/dev-libs/cdk/Manifest
20 @@ -1 +1,2 @@
21 DIST cdk-5.0-20160131.tgz 516298 BLAKE2B 5e899afea1f034a48e46fef073303d0069e14310194342094392da517fa47793a1ac3ac33774369842daa1966dc9a4ad7404046874bc9cae24ceaa98a3dd7c47 SHA512 f8f7fc5fec3c040cdbfc2a0d886e9d9d9d231e56ed69adae0b91e03243b5edd550c5435f973a93d4cf7ab723bd27b55712af75162c4bfd3ae28b3c16cd68f755
22 +DIST cdk-5.0-20210324.tgz 548203 BLAKE2B 7a944f347bf30a6bf602b9ac61fa547c7b4aef073db54272e4a8d2bd7d83093888f2ca9e5ee9c2d067777472d2abb87cca42b2912b0491b81472cfce086640b8 SHA512 72d62307824708858ca4fb3865d332cc81e987d7ef685011cf127c8f77cee3e19fe9dd6a35009d4416769cb00f04e937ebaec686c61ca0ba58655f522a175a59
23
24 diff --git a/dev-libs/cdk/cdk-5.0.20210324.ebuild b/dev-libs/cdk/cdk-5.0.20210324.ebuild
25 new file mode 100644
26 index 00000000000..30eddf517e2
27 --- /dev/null
28 +++ b/dev-libs/cdk/cdk-5.0.20210324.ebuild
29 @@ -0,0 +1,53 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +MY_P="${PN}-$(ver_rs 2 -)"
36 +
37 +DESCRIPTION="A library of curses widgets"
38 +HOMEPAGE="https://dickey.his.com/cdk/cdk.html"
39 +SRC_URI="ftp://ftp.invisible-island.net/cdk/${MY_P}.tgz"
40 +S="${WORKDIR}"/${MY_P}
41 +
42 +LICENSE="BSD"
43 +SLOT="0/6" # subslot = soname version
44 +KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
45 +IUSE="examples unicode"
46 +
47 +DEPEND=">=sys-libs/ncurses-5.2:0=[unicode?]"
48 +RDEPEND="${DEPEND}"
49 +BDEPEND="sys-devel/libtool
50 + virtual/pkgconfig"
51 +
52 +PATCHES=( "${FILESDIR}"/${PN}-5.0.20120323-parallel-make.patch )
53 +
54 +src_configure() {
55 + if [[ ${CHOST} == *-*-darwin* ]] ; then
56 + export ac_cv_prog_LIBTOOL=glibtool
57 + fi
58 +
59 + econf \
60 + --disable-rpath-hack \
61 + --with-libtool \
62 + --with-shared \
63 + --with-pkg-config \
64 + --with-ncurses$(usex unicode "w" "")
65 +}
66 +
67 +src_install() {
68 + # parallel make installs duplicate libs
69 + emake -j1 \
70 + DESTDIR="${D}" \
71 + DOCUMENT_DIR="${ED}/usr/share/doc/${PF}" install
72 +
73 + if use examples ; then
74 + local x
75 + for x in include c++ demos examples cli cli/utils cli/samples ; do
76 + docinto ${x}
77 + find ${x} -maxdepth 1 -mindepth 1 -type f -print0 | xargs -0 dodoc || die
78 + done
79 + fi
80 +
81 + find "${ED}" \( -name '*.a' -or -name '*.la' \) -delete || die
82 +}