dev-libs/cdk: add 5.0.20210324

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2021-05-16 23:40:59 +01:00
parent fde4aae6c0
commit f7ebb3dd25
No known key found for this signature in database
GPG Key ID: F4922810EEA0483B
2 changed files with 54 additions and 0 deletions

View File

@ -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

View File

@ -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
}