blob: ebeb755f441028b828312edaf4bf95cce6e4924f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
MY_COMMIT="9e8c3df573015a26c84e113ba710ef3d57c8e777"
DESCRIPTION="Multi-purpose finite-state toolkit"
HOMEPAGE="https://fomafst.github.io/ https://github.com/mhulden/foma"
SRC_URI="https://github.com/mhulden/foma/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0/0.10"
KEYWORDS="amd64 x86"
BDEPEND="app-alternatives/yacc
app-alternatives/lex"
DEPEND="sys-libs/readline:=
sys-libs/zlib"
RDEPEND="${DEPEND}"
S="${WORKDIR}/foma-${MY_COMMIT}/foma"
src_prepare() {
cmake_src_prepare
cd "${WORKDIR}/foma-${MY_COMMIT}" || die
eapply "${FILESDIR}"/foma-0.10.0-gcc-13-fixes.patch
eapply "${FILESDIR}"/foma-0.10-0-fix-BOM_codes-initializer.patch
}
src_install() {
cmake_src_install
find "${D}" -name '*.a' -delete || die
}
|