summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-05-16 23:40:59 +0100
committerSam James <sam@gentoo.org>2021-05-17 22:34:23 +0000
commitf7ebb3dd25bd3adbe55389e6dadf37137bb0297c (patch)
tree62cbaff9132b6a8251cdf2b61b9c0e9fb7162729 /dev-libs/cdk
parentapp-editors/vile: add 9.8u (diff)
downloadgentoo-f7ebb3dd25bd3adbe55389e6dadf37137bb0297c.tar.gz
gentoo-f7ebb3dd25bd3adbe55389e6dadf37137bb0297c.tar.bz2
gentoo-f7ebb3dd25bd3adbe55389e6dadf37137bb0297c.zip
dev-libs/cdk: add 5.0.20210324
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/cdk')
-rw-r--r--dev-libs/cdk/Manifest1
-rw-r--r--dev-libs/cdk/cdk-5.0.20210324.ebuild53
2 files changed, 54 insertions, 0 deletions
diff --git a/dev-libs/cdk/Manifest b/dev-libs/cdk/Manifest
index fc6e4d0e6ef9..48dbe564e6cc 100644
--- a/dev-libs/cdk/Manifest
+++ b/dev-libs/cdk/Manifest
@@ -1 +1,2 @@
DIST cdk-5.0-20160131.tgz 516298 BLAKE2B 5e899afea1f034a48e46fef073303d0069e14310194342094392da517fa47793a1ac3ac33774369842daa1966dc9a4ad7404046874bc9cae24ceaa98a3dd7c47 SHA512 f8f7fc5fec3c040cdbfc2a0d886e9d9d9d231e56ed69adae0b91e03243b5edd550c5435f973a93d4cf7ab723bd27b55712af75162c4bfd3ae28b3c16cd68f755
+DIST cdk-5.0-20210324.tgz 548203 BLAKE2B 7a944f347bf30a6bf602b9ac61fa547c7b4aef073db54272e4a8d2bd7d83093888f2ca9e5ee9c2d067777472d2abb87cca42b2912b0491b81472cfce086640b8 SHA512 72d62307824708858ca4fb3865d332cc81e987d7ef685011cf127c8f77cee3e19fe9dd6a35009d4416769cb00f04e937ebaec686c61ca0ba58655f522a175a59
diff --git a/dev-libs/cdk/cdk-5.0.20210324.ebuild b/dev-libs/cdk/cdk-5.0.20210324.ebuild
new file mode 100644
index 000000000000..30eddf517e27
--- /dev/null
+++ b/dev-libs/cdk/cdk-5.0.20210324.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MY_P="${PN}-$(ver_rs 2 -)"
+
+DESCRIPTION="A library of curses widgets"
+HOMEPAGE="https://dickey.his.com/cdk/cdk.html"
+SRC_URI="ftp://ftp.invisible-island.net/cdk/${MY_P}.tgz"
+S="${WORKDIR}"/${MY_P}
+
+LICENSE="BSD"
+SLOT="0/6" # subslot = soname version
+KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
+IUSE="examples unicode"
+
+DEPEND=">=sys-libs/ncurses-5.2:0=[unicode?]"
+RDEPEND="${DEPEND}"
+BDEPEND="sys-devel/libtool
+ virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}"/${PN}-5.0.20120323-parallel-make.patch )
+
+src_configure() {
+ if [[ ${CHOST} == *-*-darwin* ]] ; then
+ export ac_cv_prog_LIBTOOL=glibtool
+ fi
+
+ econf \
+ --disable-rpath-hack \
+ --with-libtool \
+ --with-shared \
+ --with-pkg-config \
+ --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
+}