summaryrefslogtreecommitdiff
path: root/app-alternatives/lex
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-12-03 02:58:11 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-12-03 02:58:11 +0000
commitfbe7acf59ebf6dc3f04a6ef108ff3887fa5d7972 (patch)
tree3669828a2d0c5f7cb1a4bfd79be8032aac558282 /app-alternatives/lex
parent9bc9c4dcc38dc560cff8e5d083d1e5f282ddde98 (diff)
gentoo auto-resync : 03:12:2022 - 02:58:11
Diffstat (limited to 'app-alternatives/lex')
-rw-r--r--app-alternatives/lex/Manifest2
-rw-r--r--app-alternatives/lex/lex-0-r1.ebuild41
-rw-r--r--app-alternatives/lex/metadata.xml20
3 files changed, 63 insertions, 0 deletions
diff --git a/app-alternatives/lex/Manifest b/app-alternatives/lex/Manifest
new file mode 100644
index 000000000000..1a914a4eac08
--- /dev/null
+++ b/app-alternatives/lex/Manifest
@@ -0,0 +1,2 @@
+EBUILD lex-0-r1.ebuild 978 BLAKE2B 93903295210aecbb2d531abaca2ccbeef50db315dd79458c677e581e11343ca6cb9bfd48c22e5d597398725710298b99f20f7a343e5f16def605d425bfbcbddd SHA512 9c8631dd1b68fa26e75ea8a3322e4aca0a5bef6eaee78c9cf87e78702ccf718a92efcd191c1712e375bdd3474d37d030484c0a80a666351c603067ef4eb4c6bf
+MISC metadata.xml 529 BLAKE2B 6873948a644263911a6e796fde57e41b69c108e3ec01b9c07a120c1786250a9718f4d736fb5918be27c9b72ee36cf5cab4621478f2917f9bcd45f6276a7e645d SHA512 d48d002ecfba6746fcea824310b738f7839c744e7bfbb4ca95c3c037258103f30dedfb8ca2284d21e6bd56910bc5e9618f8b9351a7f7e290850ae06034e37f3a
diff --git a/app-alternatives/lex/lex-0-r1.ebuild b/app-alternatives/lex/lex-0-r1.ebuild
new file mode 100644
index 000000000000..5533e1623d7a
--- /dev/null
+++ b/app-alternatives/lex/lex-0-r1.ebuild
@@ -0,0 +1,41 @@
+# 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-2.6.4-r5 )
+ reflex? ( sys-devel/reflex )
+ !<sys-devel/flex-2.6.4-r5
+"
+
+src_install() {
+ if use flex; then
+ dosym flex /usr/bin/lex
+ newman - lex.1 <<<".so flex.1"
+
+ newenvd - 90lex <<-EOF
+ LEX=flex
+ EOF
+ elif use reflex; then
+ dosym reflex /usr/bin/lex
+ newman - lex.1 <<<".so reflex.1"
+
+ newenvd - 90lex <<-EOF
+ LEX=reflex
+ EOF
+ 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>base-system@gentoo.org</email>
+ <name>Gentoo Base System</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>mgorny@gentoo.org</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>