mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-05 14:07:27 -08:00
All of these will be using app-alternatives/yacc anyway as they're not unsetting YACC or LEX, so make the dep reflect reality. (Included both YACC and LEX out of conservatism.) Signed-off-by: Sam James <sam@gentoo.org>
32 lines
763 B
Bash
32 lines
763 B
Bash
# Copyright 2021-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
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/cdecl/releases/download/${P}/${P}.tar.gz -> ${P}.release.tar.gz"
|
|
|
|
LICENSE="GPL-3"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ~arm64 ~x86"
|
|
IUSE="debug readline ncurses"
|
|
|
|
DEPEND="
|
|
ncurses? ( sys-libs/ncurses:0= )
|
|
readline? ( sys-libs/readline:0= )
|
|
"
|
|
RDEPEND="${DEPEND}"
|
|
BDEPEND="
|
|
app-alternatives/yacc
|
|
app-alternatives/lex
|
|
"
|
|
|
|
src_configure() {
|
|
econf \
|
|
$(use_with readline) \
|
|
$(use_enable ncurses term-size) \
|
|
$(use_enable debug bison-debug) \
|
|
$(use_enable debug flex-debug)
|
|
}
|