From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DFA7F158013 for ; Wed, 6 Dec 2023 16:01:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 21FA52BC019; Wed, 6 Dec 2023 16:01:45 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 018332BC019 for ; Wed, 6 Dec 2023 16:01:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 22A7834068A for ; Wed, 6 Dec 2023 16:01:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 75E771440 for ; Wed, 6 Dec 2023 16:01:42 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1701878458.3c6244c59141bcdd5144430a42b87ab90cea2f19.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/cdk/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/cdk/cdk-5.0.20230201-r1.ebuild X-VCS-Directories: dev-libs/cdk/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 3c6244c59141bcdd5144430a42b87ab90cea2f19 X-VCS-Branch: master Date: Wed, 6 Dec 2023 16:01:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 711cdfeb-9b59-4a53-b0df-d6ebadc22183 X-Archives-Hash: 8b24928cf9a6836967ed9566ea4ed76c commit: 3c6244c59141bcdd5144430a42b87ab90cea2f19 Author: Sam James gentoo org> AuthorDate: Wed Dec 6 15:59:05 2023 +0000 Commit: Sam James gentoo org> CommitDate: Wed Dec 6 16:00:58 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c6244c5 dev-libs/cdk: build with --enable-const I don't understand why, in the year 2023, this is optional or at the very least not default-on, but whatever. It turns out that Fedora and openSUSE at least, probably many others, are building cdk with --enable-const which is why this only showed up on Gentoo. We do the same --enable-const dance for ncurses so I suppose I should've known. Enable it for parity given it should be fine to go in this direction anyway. Bug: https://github.com/gphoto/gphoto2/issues/615 Closes: https://bugs.gentoo.org/919279 Signed-off-by: Sam James gentoo.org> dev-libs/cdk/cdk-5.0.20230201-r1.ebuild | 63 +++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/dev-libs/cdk/cdk-5.0.20230201-r1.ebuild b/dev-libs/cdk/cdk-5.0.20230201-r1.ebuild new file mode 100644 index 000000000000..3faa9c0c03f7 --- /dev/null +++ b/dev-libs/cdk/cdk-5.0.20230201-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2023 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 ~ia64 ~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 \ + --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 +}