From 674a98879a51995d7b74247019375206fcb6aba7 Mon Sep 17 00:00:00 2001 From: 4fury-c3440d8 Date: Fri, 2 Dec 2022 11:32:02 +0300 Subject: [PATCH] add foma. --- programming/misc/foma/actions.py | 30 ++++++++++++++++++ programming/misc/foma/pspec.xml | 52 ++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 programming/misc/foma/actions.py create mode 100644 programming/misc/foma/pspec.xml diff --git a/programming/misc/foma/actions.py b/programming/misc/foma/actions.py new file mode 100644 index 0000000000..5eb12032e4 --- /dev/null +++ b/programming/misc/foma/actions.py @@ -0,0 +1,30 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file https://www.gnu.org/licenses/gpl-3.0.txt + +from pisi.actionsapi import autotools, pisitools + +j = ''.join([ + ' -O3', + ' -Wall', + ' -D_GNU_SOURCE', + ' -std=c99', + ' -fvisibility=hidden', + ' -fPIC', + ' -fcommon ' + ]) + +def build(): + autotools.make("prefix=/usr CFLAGS='%s'" % j) + +def install(): + pisitools.dobin("foma") + pisitools.dobin("flookup") + pisitools.dobin("cgflookup") + pisitools.insinto("/usr/include", "fomalib.h") + pisitools.insinto("/usr/include", "fomalibconf.h") + pisitools.dolib_so("libfoma.so.0.9.18") + pisitools.dosym("libfoma.so.0.9.18", "/usr/lib/libfoma.so") + pisitools.dosym("libfoma.so.0.9.18", "/usr/lib/libfoma.so.0") diff --git a/programming/misc/foma/pspec.xml b/programming/misc/foma/pspec.xml new file mode 100644 index 0000000000..d57a6a72f1 --- /dev/null +++ b/programming/misc/foma/pspec.xml @@ -0,0 +1,52 @@ + + + + + foma + https://bitbucket.org/mhulden/foma/src + + fury + uglyside@yandex.ru + + Apache-2 + app:console + library + programming.misc + finite-state compiler and C library. + Foma is a multi-purpose finite-state toolkit designed for applications ranging from natural language processing and research in automata theory. + + https://bitbucket.org/mhulden/foma/downloads/foma-0.9.18.tar.gz + + + termcap + readline-devel + + + + + + + + foma + + zlib + termcap + readline + + + /usr/bin + /usr/lib + /usr/include + + + + + + 2022-12-02 + 0.9.18 + First build. + fury + uglyside@yandex.ru + + +