package/ragel: new package

This is an host-only package that does preprocessing to .rl files to
turn them into .c or .cpp files.

Initially added to support package/roc.

See https://www.colm.net/open-source/ragel/ for the project's home page:

Ragel compiles executable finite state machines from regular languages.
Ragel targets C, C++ and ASM. Ragel state machines can not only
recognize byte sequences as regular expression machines do, but can
also execute code at arbitrary points in the recognition of a regular
language. Code embedding is done using inline operators that do not
disrupt the regular language syntax.

Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
[yann.morin.1998@free.fr: drop empty _DEPENDENCIES]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Théo Lebrun 2022-03-10 16:20:46 +01:00 committed by Yann E. MORIN
parent 6f1130afcd
commit db3e2e4da8
2 changed files with 19 additions and 0 deletions

3
package/ragel/ragel.hash Normal file
View File

@ -0,0 +1,3 @@
# Locally computed:
sha256 5f156edb65d20b856d638dd9ee2dfb43285914d9aa2b6ec779dac0270cd56c3f ragel-6.10.tar.gz
sha256 05a87975accb539399d0c8a4f4402ac27a6762fb1e4f31d04d455a8bee3e3693 COPYING

16
package/ragel/ragel.mk Normal file
View File

@ -0,0 +1,16 @@
################################################################################
#
# ragel
#
################################################################################
RAGEL_VERSION = 6.10
RAGEL_SITE = https://www.colm.net/files/ragel/
RAGEL_LICENSE = GPL-2.0
RAGEL_LICENSE_FILES = COPYING
RAGEL_CONF_OPTS = \
--disable-silent-rules \
--disable-manual \
--disable-dependency-tracking
$(eval $(host-autotools-package))