summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-12-02 04:22:56 +0000
committerSam James <sam@gentoo.org>2022-12-02 21:09:49 +0000
commit04d3f4f98d5336a1e8456bbe975abad22bc00471 (patch)
tree299ae0df878349d9abe6802a67685db404f75ddf /app-alternatives/lex
parentMove {virtual -> app-alternatives}/yacc (diff)
downloadgentoo-04d3f4f98d5336a1e8456bbe975abad22bc00471.tar.gz
gentoo-04d3f4f98d5336a1e8456bbe975abad22bc00471.tar.bz2
gentoo-04d3f4f98d5336a1e8456bbe975abad22bc00471.zip
app-alternatives/yacc: new package to control yacc symlinks
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-alternatives/lex')
-rw-r--r--app-alternatives/lex/lex-0.ebuild18
1 files changed, 9 insertions, 9 deletions
diff --git a/app-alternatives/lex/lex-0.ebuild b/app-alternatives/lex/lex-0.ebuild
index 88a00b0f7b8f..eee421a1179c 100644
--- a/app-alternatives/lex/lex-0.ebuild
+++ b/app-alternatives/lex/lex-0.ebuild
@@ -15,25 +15,25 @@ IUSE="+flex reflex"
REQUIRED_USE="^^ ( flex reflex )"
RDEPEND="
- flex? ( sys-devel/flex )
+ flex? ( >=sys-devel/flex-2.6.4-r5 )
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"
+ if use flex; then
+ dosym flex /bin/lex
+ newman - lex.1 <<<".so flex.1"
newenvd - 90lex <<-EOF
- LEX=reflex
+ LEX=flex
EOF
- elif use flex; then
- dosym flex /bin/lex
- newman - lex.1 <<<".so flex.1"
+ elif use reflex; then
+ dosym reflex /bin/lex
+ newman - lex.1 <<<".so reflex.1"
newenvd - 90lex <<-EOF
- LEX=flex
+ LEX=reflex
EOF
else
die "Invalid USE flag combination (broken REQUIRED_USE?)"