Lines 1-9
Link Here
|
1 |
# Copyright 1999-2021 Gentoo Authors |
1 |
# Copyright 1999-2021 Gentoo Authors |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
3 |
|
4 |
EAPI="6" |
4 |
EAPI=7 |
5 |
|
5 |
|
6 |
inherit eutils flag-o-matic libtool ltprune multilib-minimal toolchain-funcs |
6 |
inherit flag-o-matic libtool multilib-minimal toolchain-funcs |
7 |
|
7 |
|
8 |
DESCRIPTION="The Fast Lexical Analyzer" |
8 |
DESCRIPTION="The Fast Lexical Analyzer" |
9 |
HOMEPAGE="https://flex.sourceforge.net/ https://github.com/westes/flex" |
9 |
HOMEPAGE="https://flex.sourceforge.net/ https://github.com/westes/flex" |
Lines 17-24
RESTRICT="!test? ( test )"
Link Here
|
17 |
|
17 |
|
18 |
# We want bison explicitly and not yacc in general #381273 |
18 |
# We want bison explicitly and not yacc in general #381273 |
19 |
RDEPEND="sys-devel/m4" |
19 |
RDEPEND="sys-devel/m4" |
20 |
DEPEND="${RDEPEND} |
20 |
BDEPEND="${RDEPEND} |
21 |
app-arch/xz-utils |
|
|
22 |
nls? ( sys-devel/gettext ) |
21 |
nls? ( sys-devel/gettext ) |
23 |
test? ( sys-devel/bison )" |
22 |
test? ( sys-devel/bison )" |
24 |
|
23 |
|
Lines 59-66
multilib_src_compile() {
Link Here
|
59 |
if multilib_is_native_abi; then |
58 |
if multilib_is_native_abi; then |
60 |
default |
59 |
default |
61 |
else |
60 |
else |
62 |
cd src || die |
61 |
emake -C src -f Makefile -f - lib <<< 'lib: $(lib_LTLIBRARIES)' |
63 |
emake -f Makefile -f - lib <<< 'lib: $(lib_LTLIBRARIES)' |
|
|
64 |
fi |
62 |
fi |
65 |
} |
63 |
} |
66 |
|
64 |
|
Lines 72-86
multilib_src_install() {
Link Here
|
72 |
if multilib_is_native_abi; then |
70 |
if multilib_is_native_abi; then |
73 |
default |
71 |
default |
74 |
else |
72 |
else |
75 |
cd src || die |
73 |
emake -C src DESTDIR="${D}" install-libLTLIBRARIES install-includeHEADERS |
76 |
emake DESTDIR="${D}" install-libLTLIBRARIES install-includeHEADERS |
|
|
77 |
fi |
74 |
fi |
78 |
} |
75 |
} |
79 |
|
76 |
|
80 |
multilib_src_install_all() { |
77 |
multilib_src_install_all() { |
81 |
einstalldocs |
78 |
einstalldocs |
82 |
dodoc ONEWS |
79 |
dodoc ONEWS |
83 |
prune_libtool_files --all |
80 |
find "${ED}" -name '*.la' -type f -delete || die |
84 |
rm "${ED}"/usr/share/doc/${PF}/COPYING || die |
81 |
rm "${ED}"/usr/share/doc/${PF}/COPYING || die |
85 |
dosym flex /usr/bin/lex |
82 |
dosym flex /usr/bin/lex |
86 |
} |
83 |
} |
87 |
- |
|
|