summaryrefslogtreecommitdiff
path: root/dev-libs/foma
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-09-13 17:45:37 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-09-13 17:45:37 +0100
commita1392efe64137262023d92492396ca9156d22396 (patch)
treede438b2711c7697c4597fb04f07e988586f34233 /dev-libs/foma
parente3cf2c86fca1750343c1885311f857f185ee4f2d (diff)
gentoo resync : 13.09.2019
Diffstat (limited to 'dev-libs/foma')
-rw-r--r--dev-libs/foma/Manifest4
-rw-r--r--dev-libs/foma/files/foma-0.9.18-clean-makefile.patch35
-rw-r--r--dev-libs/foma/foma-0.9.18.ebuild44
-rw-r--r--dev-libs/foma/metadata.xml8
4 files changed, 91 insertions, 0 deletions
diff --git a/dev-libs/foma/Manifest b/dev-libs/foma/Manifest
new file mode 100644
index 000000000000..46c83c5fc1f9
--- /dev/null
+++ b/dev-libs/foma/Manifest
@@ -0,0 +1,4 @@
+AUX foma-0.9.18-clean-makefile.patch 1349 BLAKE2B 7f0dfb37d72ab9db835eff35dd5b79dca40c02c305cba23d89e2495c34592e5e4033b091763dcdb1eb64b7d4845868bf58c4754609e19a2f7ce2cef1ce7b749d SHA512 513ca1681e50c9ca7763364a510a28d86196f0685fc98842078a0b258d72cfbf4fb702e681d1433f242d7079ff4a78541a0765e261a12d7b7c2868fc15c3a7a3
+DIST foma-0.9.18.tar.gz 337134 BLAKE2B b7f1eeaeaa21096f8077f0e81f3c57c49bbba30afe8db280089c40ed6cf475df33a6899fd2b6929d3f58fe8b3660a92566ae41f2bd5d8a46dacc073b48caf030 SHA512 17df4c070d1460855804aa63f97cc4a0d9568755e93de0de80821625faab7a3994a260650c5e8f43f80b5a0702dadb0cfe57136ab50eb2a9946f118991205b1a
+EBUILD foma-0.9.18.ebuild 1007 BLAKE2B a96cc6045f75bdb615375ee48821b446dc141781f887b6a4a0b26a8d7966bd7fab8c0807fc2a81e53579774d4088df6a70b210103f1c70ac356d3d848b2a7f2b SHA512 4391f9d1d2782458af8998d532ace81f54cf3e731b8755bfb6a704e5cd4584237eaed1e813ce9766b326e60779dd922ef2d699196d20747d5b4320324a866236
+MISC metadata.xml 254 BLAKE2B 938f68b7b21ad386a35540a09e4bb956e241dfc963d4823c3c0cd46d3449ff4fb5a1cead67ad7c35a460503d30bdbde35822535f1c2d46f2939ee190f328b846 SHA512 26047ebb40fc49bfb4393121c5c5af69caee617a1d75676be84b0f5af75564828aeeef4503c7681eaaf7e48f6c662574874336296c18e002dca8e925162a1d4c
diff --git a/dev-libs/foma/files/foma-0.9.18-clean-makefile.patch b/dev-libs/foma/files/foma-0.9.18-clean-makefile.patch
new file mode 100644
index 000000000000..0ed1b811fc67
--- /dev/null
+++ b/dev-libs/foma/files/foma-0.9.18-clean-makefile.patch
@@ -0,0 +1,35 @@
+diff -Naur a/Makefile b/Makefile
+--- a/Makefile 2015-06-13 06:24:02.000000000 +0300
++++ b/Makefile 2019-09-08 09:24:22.127655912 +0300
+@@ -1,21 +1,16 @@
+-prefix = /usr/local
++prefix = /usr
+ exec_prefix = $(prefix)
+ libdir = $(exec_prefix)/lib
+ bindir = $(exec_prefix)/bin
+ includedir = $(prefix)/include
+
+ VERSION = 0.9.18
+-CC = gcc
+-RANLIB = ranlib
+ YACC = bison -v
+ LEX = flex -8
+ LEXCLEX = flex -8 --prefix=lexc
+ LEXIFACE = flex -8 --prefix=interface
+ LEXCMATRIX = flex -8 --prefix=cmatrix
+ RM = /bin/rm -f
+-LDFLAGS = -lreadline -lz -ltermcap
+-FLOOKUPLDFLAGS = libfoma.a -lz
+-CFLAGS = -O3 -Wall -D_GNU_SOURCE -std=c99 -fvisibility=hidden -fPIC
+ FOMAOBJS = foma.o stack.o iface.o lex.interface.o
+ LIBOBJS = int_stack.o define.o determinize.o apply.o rewrite.o lexcread.o topsort.o flags.o minimize.o reverse.o extract.o sigma.o io.o structures.o constructions.o coaccessible.o utf8.o spelling.o dynarray.o mem.o stringhash.o trie.o lex.lexc.o lex.yy.o lex.cmatrix.o regex.o
+
+@@ -82,7 +77,7 @@
+ if test -f $(libdir)/$(SHAREDLIB); then rm $(libdir)/$(SHAREDLIB); fi
+ if test -f $(libdir)/$(SHAREDLIBM); then rm $(libdir)/$(SHAREDLIBM); fi
+ cd $(libdir); ln -s $(SHAREDLIBV) $(SHAREDLIB); cd $(libdir); \
+- ln -s $(SHAREDLIBV) $(SHAREDLIBM); (ldconfig || true) \
++ ln -s $(SHAREDLIBV) $(SHAREDLIBM); \
+ >/dev/null 2>&1; \
+
+ $(OBJS): foma.h
diff --git a/dev-libs/foma/foma-0.9.18.ebuild b/dev-libs/foma/foma-0.9.18.ebuild
new file mode 100644
index 000000000000..778896159254
--- /dev/null
+++ b/dev-libs/foma/foma-0.9.18.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="A set of utilities for constructing finite-state automata and transducers"
+HOMEPAGE="https://github.com/mhulden/foma"
+SRC_URI="https://bitbucket.org/mhulden/foma/downloads/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="sys-libs/readline:*
+ sys-libs/zlib"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/foma-0.9.18-clean-makefile.patch" )
+
+src_prepare() {
+ default
+
+ # Install to correct libdir
+ sed "s|/lib|/$(get_libdir)|" -i Makefile || die
+}
+
+src_compile() {
+ export CC="$(tc-getCC)"
+ export RANLIB="$(tc-getRANLIB)"
+
+ export CFLAGS="${CFLAGS} -Wl,--as-needed -D_GNU_SOURCE -std=c99 -fvisibility=hidden -fPIC"
+ export FLOOKUPLDFLAGS="${LDFLAGS} libfoma.a -lz"
+ export LDFLAGS="${LDFLAGS} -lreadline -lz -lncurses"
+
+ default
+}
+
+src_install() {
+ emake prefix="${D}"/usr install
+ einstalldocs
+ find "${D}" -name '*.a' -delete || die
+}
diff --git a/dev-libs/foma/metadata.xml b/dev-libs/foma/metadata.xml
new file mode 100644
index 000000000000..6b0a0fb3a729
--- /dev/null
+++ b/dev-libs/foma/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>juippis@gentoo.org</email>
+ <name>Joonas Niilola</name>
+ </maintainer>
+</pkgmetadata>