commit: 917200daa85d6562da1b3468941b3a2bb01ff15c Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Fri Dec 2 03:52:42 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Dec 2 21:09:30 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=917200da
app-alternatives/lex: New package to control lex symlinks Signed-off-by: Sam James <sam <AT> gentoo.org> app-alternatives/lex/lex-0.ebuild | 33 ++++++++++++++++++++++++++++ app-alternatives/lex/metadata.xml | 20 +++++++++++++++++ profiles/arch/arm/package.use.mask | 4 ++++ profiles/arch/arm64/package.use.mask | 4 ++++ profiles/arch/hppa/package.use.mask | 4 ++++ profiles/arch/ia64/package.use.mask | 4 ++++ profiles/arch/powerpc/ppc32/package.use.mask | 4 ++++ profiles/arch/powerpc/ppc64/package.use.mask | 4 ++++ profiles/arch/riscv/package.use.mask | 4 ++++ profiles/arch/s390/package.use.mask | 4 ++++ profiles/arch/sparc/package.use.mask | 4 ++++ profiles/arch/x86/package.use.mask | 4 ++++ 12 files changed, 93 insertions(+) diff --git a/app-alternatives/lex/lex-0.ebuild b/app-alternatives/lex/lex-0.ebuild new file mode 100644 index 000000000000..260f9d0ba5f2 --- /dev/null +++ b/app-alternatives/lex/lex-0.ebuild @@ -0,0 +1,33 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="lex symlinks" +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Base/Alternatives" +SRC_URI="" +S=${WORKDIR} + +LICENSE="CC0-1.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="+flex reflex" +REQUIRED_USE="^^ ( flex reflex )" + +RDEPEND=" + flex? ( sys-devel/flex ) + reflex? ( sys-devel/reflex ) + !<sys-devel/flex-2.6.4-r5 +" + +src_install() { + if use reflex; then + dosym reflex /bin/lex + newman - lex.1 <<<".so reflex.1" + elif use flex; then + dosym flex /bin/lex + newman - lex.1 <<<".so flex.1" + else + die "Invalid USE flag combination (broken REQUIRED_USE?)" + fi +} diff --git a/app-alternatives/lex/metadata.xml b/app-alternatives/lex/metadata.xml new file mode 100644 index 000000000000..309f526f2b4a --- /dev/null +++ b/app-alternatives/lex/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>[email protected]</email> + <name>Gentoo Base System</name> + </maintainer> + <maintainer type="person"> + <email>[email protected]</email> + <name>Michał Górny</name> + </maintainer> + <use> + <flag name="flex"> + Symlink to <pkg>sys-devel/flex</pkg>. + </flag> + <flag name="reflex"> + Symlink to <pkg>sys-devel/reflex</pkg>. + </flag> + </use> +</pkgmetadata> diff --git a/profiles/arch/arm/package.use.mask b/profiles/arch/arm/package.use.mask index 59eeb185bf9b..2ba4114dee0b 100644 --- a/profiles/arch/arm/package.use.mask +++ b/profiles/arch/arm/package.use.mask @@ -1,6 +1,10 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# Sam James <[email protected]> (2022-12-02) +# Not keyworded here +app-alternatives/lex reflex + # Florian Schmaus <[email protected]> (2022-11-23) # avoid larger deptree, bug #882593 dev-python/bracex doc diff --git a/profiles/arch/arm64/package.use.mask b/profiles/arch/arm64/package.use.mask index 552f82af8efc..9d78b11ce771 100644 --- a/profiles/arch/arm64/package.use.mask +++ b/profiles/arch/arm64/package.use.mask @@ -1,6 +1,10 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# Sam James <[email protected]> (2022-12-02) +# Not keyworded here +app-alternatives/lex reflex + # Florian Schmaus <[email protected]> (2022-11-23) # avoid larger deptree, bug #882593 dev-python/bracex doc diff --git a/profiles/arch/hppa/package.use.mask b/profiles/arch/hppa/package.use.mask index b950d6883996..9a73926a4c5a 100644 --- a/profiles/arch/hppa/package.use.mask +++ b/profiles/arch/hppa/package.use.mask @@ -4,6 +4,10 @@ # NOTE: When masking a USE flag due to missing keywords, please file a keyword # request bug for the hppa arch. +# Sam James <[email protected]> (2022-12-02) +# Not keyworded here +app-alternatives/lex reflex + # Florian Schmaus <[email protected]> (2022-11-23) # avoid larger deptree, bug #882593 dev-python/bracex doc diff --git a/profiles/arch/ia64/package.use.mask b/profiles/arch/ia64/package.use.mask index 8ed2298b9154..9eb8d2e5ffd7 100644 --- a/profiles/arch/ia64/package.use.mask +++ b/profiles/arch/ia64/package.use.mask @@ -1,6 +1,10 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# Sam James <[email protected]> (2022-12-02) +# Not keyworded here +app-alternatives/lex reflex + # Florian Schmaus <[email protected]> (2022-11-23) # avoid larger deptree, bug #882593 dev-python/bracex doc diff --git a/profiles/arch/powerpc/ppc32/package.use.mask b/profiles/arch/powerpc/ppc32/package.use.mask index 4a5fa9330d21..e9d44ada7127 100644 --- a/profiles/arch/powerpc/ppc32/package.use.mask +++ b/profiles/arch/powerpc/ppc32/package.use.mask @@ -1,6 +1,10 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# Sam James <[email protected]> (2022-12-02) +# Not keyworded here +app-alternatives/lex reflex + # Sam James <[email protected]> (2022-11-19) # Fails to compile because of size, bug #829602. sys-devel/clang extra diff --git a/profiles/arch/powerpc/ppc64/package.use.mask b/profiles/arch/powerpc/ppc64/package.use.mask index ef0c262fbba1..10c13fb138f0 100644 --- a/profiles/arch/powerpc/ppc64/package.use.mask +++ b/profiles/arch/powerpc/ppc64/package.use.mask @@ -1,6 +1,10 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# Sam James <[email protected]> (2022-12-02) +# Not keyworded here +app-alternatives/lex reflex + # Sam James <[email protected]> (2022-10-13) # Causes segfaults, bug #871921 sci-libs/symengine tcmalloc diff --git a/profiles/arch/riscv/package.use.mask b/profiles/arch/riscv/package.use.mask index 285a6dea5778..47edcc93058e 100644 --- a/profiles/arch/riscv/package.use.mask +++ b/profiles/arch/riscv/package.use.mask @@ -1,6 +1,10 @@ # Copyright 2019-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# Sam James <[email protected]> (2022-12-02) +# Not keyworded here +app-alternatives/lex reflex + # Mike Rivnak <[email protected]> (2022-11-30) # luajit is currently not supported on riscv app-editors/neovim lua_single_target_luajit diff --git a/profiles/arch/s390/package.use.mask b/profiles/arch/s390/package.use.mask index 32b5b218cfa8..2d39f4665510 100644 --- a/profiles/arch/s390/package.use.mask +++ b/profiles/arch/s390/package.use.mask @@ -1,6 +1,10 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# Sam James <[email protected]> (2022-12-02) +# Not keyworded here +app-alternatives/lex reflex + # Michał Górny <[email protected]> (2022-11-25) # Unkeyworded shells. app-alternatives/sh lksh mksh diff --git a/profiles/arch/sparc/package.use.mask b/profiles/arch/sparc/package.use.mask index 3cbc47e6bef6..4fb17c017d13 100644 --- a/profiles/arch/sparc/package.use.mask +++ b/profiles/arch/sparc/package.use.mask @@ -1,6 +1,10 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# Sam James <[email protected]> (2022-12-02) +# Not keyworded here +app-alternatives/lex reflex + # Sam James <[email protected]> (2022-11-24) # Pulls in gjs which is broken on sparc, bug #882071 app-crypt/libsecret test-rust diff --git a/profiles/arch/x86/package.use.mask b/profiles/arch/x86/package.use.mask index b733021ebde4..71f1fb9e451a 100644 --- a/profiles/arch/x86/package.use.mask +++ b/profiles/arch/x86/package.use.mask @@ -1,6 +1,10 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# Sam James <[email protected]> (2022-12-02) +# Not keyworded here +app-alternatives/lex reflex + # Michał Górny <[email protected]> (2022-12-01) # Keyworded here. app-alternatives/awk -nawk
