commit:     e143d33cfa0217218c72b94f6db640eb42994f1e
Author:     Marco Sirabella <marco <AT> sirabella <DOT> org>
AuthorDate: Sat May 22 13:21:47 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> 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 <marco <AT> 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 <[email protected]>
+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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</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>

Reply via email to