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 <marco@sirabella.org>
This commit is contained in:
Marco Sirabella
2021-05-22 09:21:47 -04:00
parent d090b3e546
commit e143d33cfa
4 changed files with 80 additions and 0 deletions

1
dev-util/cdecl/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST cdecl-9.10.tar.gz 651328 BLAKE2B 1889fbd7cd387e7e7905f7fb9fb45b82053db18621d84ab4e10de8c4ed0863ea9087746eb85e8dc58d4319a48b3d7a1ead7310fed16b6361741e545aecbc2e71 SHA512 91af182ac736d7955121a6661f7a606b576a976d901256a2d7112b1a8f59f6978f86de019d1b7399fcf1aebffe8a8f93dee163955695c629cc961cd9fdf7a52c

View File

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

View File

@@ -0,0 +1,26 @@
From 948525fd0ca553d4fce84fc5b080278494c4f224 Mon Sep 17 00:00:00 2001
From: Marco Sirabella <marco@sirabella.org>
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?

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>marco@sirabella.org</email>
<name>Marco Sirabella</name>
</maintainer>
<upstream>
<remote-id type="github">paul-j-lucas/cdecl</remote-id>
<bugs-to>https://github.com/paul-j-lucas/cdecl/issues</bugs-to>
<changelog>https://github.com/paul-j-lucas/cdecl/releases</changelog>
</upstream>
</pkgmetadata>