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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DDE411382C5 for ; Sat, 22 May 2021 13:27:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3AD08E086D; Sat, 22 May 2021 13:27:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 20BCCE086D for ; Sat, 22 May 2021 13:27:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E84FF340C7C for ; Sat, 22 May 2021 13:27:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6D3FF75B for ; Sat, 22 May 2021 13:27:40 +0000 (UTC) From: "Marco Sirabella" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marco Sirabella" Message-ID: <1621690051.e143d33cfa0217218c72b94f6db640eb42994f1e.marco@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-util/cdecl/, dev-util/cdecl/files/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-util/cdecl/Manifest dev-util/cdecl/cdecl-9.10.ebuild dev-util/cdecl/files/cdecl-9.10-tinfo.patch dev-util/cdecl/metadata.xml X-VCS-Directories: dev-util/cdecl/ dev-util/cdecl/files/ X-VCS-Committer: marco X-VCS-Committer-Name: Marco Sirabella X-VCS-Revision: e143d33cfa0217218c72b94f6db640eb42994f1e X-VCS-Branch: dev Date: Sat, 22 May 2021 13:27:40 +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: 41ea0044-30e7-473b-9e42-4ff0530e12e8 X-Archives-Hash: fd72f3977a115fcb306ee709f64818cf commit: e143d33cfa0217218c72b94f6db640eb42994f1e Author: Marco Sirabella sirabella org> AuthorDate: Sat May 22 13:21:47 2021 +0000 Commit: Marco Sirabella sirabella org> CommitDate: Sat May 22 13:27:31 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e143d33c dev-util/cdecl: Add new package See #570454, this package is a continuation of dev-util/cdecl::gentoo from the main repo's 7c81cf86, from a different up-to-date source. Signed-off-by: Marco Sirabella sirabella.org> dev-util/cdecl/Manifest | 1 + dev-util/cdecl/cdecl-9.10.ebuild | 40 +++++++++++++++++++++++++++++ dev-util/cdecl/files/cdecl-9.10-tinfo.patch | 26 +++++++++++++++++++ dev-util/cdecl/metadata.xml | 13 ++++++++++ 4 files changed, 80 insertions(+) diff --git a/dev-util/cdecl/Manifest b/dev-util/cdecl/Manifest new file mode 100644 index 000000000..2c5aff452 --- /dev/null +++ b/dev-util/cdecl/Manifest @@ -0,0 +1 @@ +DIST cdecl-9.10.tar.gz 651328 BLAKE2B 1889fbd7cd387e7e7905f7fb9fb45b82053db18621d84ab4e10de8c4ed0863ea9087746eb85e8dc58d4319a48b3d7a1ead7310fed16b6361741e545aecbc2e71 SHA512 91af182ac736d7955121a6661f7a606b576a976d901256a2d7112b1a8f59f6978f86de019d1b7399fcf1aebffe8a8f93dee163955695c629cc961cd9fdf7a52c diff --git a/dev-util/cdecl/cdecl-9.10.ebuild b/dev-util/cdecl/cdecl-9.10.ebuild new file mode 100644 index 000000000..46923f4d9 --- /dev/null +++ b/dev-util/cdecl/cdecl-9.10.ebuild @@ -0,0 +1,40 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +DESCRIPTION='Composing and deciphering C (or C++) declarations or casts, aka "gibberish."' +HOMEPAGE="https://github.com/paul-j-lucas/cdecl" +SRC_URI="https://github.com/paul-j-lucas/${PN}/archive/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+readline" + +DEPEND=" + sys-libs/ncurses:0= + readline? ( sys-libs/readline:0= ) +" +RDEPEND="${DEPEND}" +BDEPEND=" + sys-devel/bison + sys-devel/flex +" + +PATCHES=( + "${FILESDIR}/${P}-tinfo.patch" +) + +S="${WORKDIR}/${PN}-${P}" + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf $(use_with readline) +} diff --git a/dev-util/cdecl/files/cdecl-9.10-tinfo.patch b/dev-util/cdecl/files/cdecl-9.10-tinfo.patch new file mode 100644 index 000000000..ddc8b628e --- /dev/null +++ b/dev-util/cdecl/files/cdecl-9.10-tinfo.patch @@ -0,0 +1,26 @@ +From 948525fd0ca553d4fce84fc5b080278494c4f224 Mon Sep 17 00:00:00 2001 +From: Marco Sirabella +Date: Tue, 18 May 2021 17:43:35 -0400 +Subject: [PATCH] Search for the library containing: tigetnum (tinfo) + +For me, `tigetnum` is found in tinfo.so, ncurses has been split off into +tinfo due to being compiled with the --with-termlib flag. + +pkg-config --libs automatically reports this, but this check is good +enough to catch this specific problem. +--- + configure.ac | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/configure.ac b/configure.ac +index b617f9b1..b892ffea 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -113,6 +113,7 @@ AC_CHECK_FUNCS([geteuid getpwuid fmemopen strsep]) + AC_SEARCH_LIBS([endwin],[curses ncurses]) + AC_SEARCH_LIBS([readline],[readline]) + AC_SEARCH_LIBS([add_history],[readline history]) ++AC_SEARCH_LIBS([tigetnum],[curses ncurses tinfo]) + + # If readline wasn't disabled by the user, does it actually exist and is it a + # proper readline? diff --git a/dev-util/cdecl/metadata.xml b/dev-util/cdecl/metadata.xml new file mode 100644 index 000000000..4b1b1be6a --- /dev/null +++ b/dev-util/cdecl/metadata.xml @@ -0,0 +1,13 @@ + + + + + marco@sirabella.org + Marco Sirabella + + + paul-j-lucas/cdecl + https://github.com/paul-j-lucas/cdecl/issues + https://github.com/paul-j-lucas/cdecl/releases + +