2021-02-08 06:23:31 +00:00
|
|
|
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2021-01-28 18:53:44 +00:00
|
|
|
# When we rebuild flex it no longer needs patching
|
|
|
|
# and can use simplified makefile
|
|
|
|
src_prepare() {
|
2021-05-03 23:48:06 +01:00
|
|
|
default
|
2021-02-04 18:37:43 +00:00
|
|
|
|
2021-01-28 18:53:44 +00:00
|
|
|
touch config.h
|
2021-02-04 18:37:43 +00:00
|
|
|
rm parse.c parse.h scan.c skel.c
|
2021-01-28 18:53:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
if test -d /lex; then
|
2022-01-14 10:58:26 +00:00
|
|
|
# Remove lex, later make install will symlink lex to flex
|
2021-01-28 18:53:44 +00:00
|
|
|
rm -rf /lex
|
|
|
|
rm -f "${PREFIX}/bin/lex"
|
2021-06-24 00:32:19 +01:00
|
|
|
rm -f "${PREFIX}/lib/mes/libl.a"
|
2021-01-28 18:53:44 +00:00
|
|
|
fi
|
|
|
|
|
2021-05-03 23:48:06 +01:00
|
|
|
default
|
2021-01-28 18:53:44 +00:00
|
|
|
}
|