Import ragel 6.7.
Ragel compiles executable finite state machines from regular languages. It targets C, C++, and Ruby. 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. OK robert@
This commit is contained in:
parent
6c70670715
commit
06db121ff3
32
devel/ragel/Makefile
Normal file
32
devel/ragel/Makefile
Normal file
@ -0,0 +1,32 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2011/11/15 16:35:15 jeremy Exp $
|
||||
|
||||
COMMENT = state machine compiler
|
||||
|
||||
DISTNAME = ragel-6.7
|
||||
CATEGORIES = devel
|
||||
|
||||
HOMEPAGE = http://www.complang.org/ragel/
|
||||
|
||||
# GPLv2
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM = Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
MASTER_SITES = ${HOMEPAGE}
|
||||
|
||||
WANTLIB = c m stdc++
|
||||
BUILD_DEPENDS = lang/ruby/1.8,-main
|
||||
|
||||
USE_GMAKE = Yes
|
||||
|
||||
CONFIGURE_STYLE = gnu
|
||||
CONFIGURE_ENV = ac_cv_prog_RUBY=ruby18
|
||||
|
||||
REGRESS_DEPENDS = shells/bash \
|
||||
textproc/gdiff
|
||||
|
||||
do-regress:
|
||||
cd ${WRKBUILD}/test && ${LOCALBASE}/bin/bash ./runtests
|
||||
|
||||
.include <bsd.port.mk>
|
5
devel/ragel/distinfo
Normal file
5
devel/ragel/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (ragel-6.7.tar.gz) = 9EI+DYplON1OYUmPz6087A==
|
||||
RMD160 (ragel-6.7.tar.gz) = ADopEhvUTNzd3QchUk/pDPQhwF0=
|
||||
SHA1 (ragel-6.7.tar.gz) = vxK2NPWiXlujBe3+5ZpFUGntOwo=
|
||||
SHA256 (ragel-6.7.tar.gz) = Rt+OPxF6cw+IlgYcleqOj1PpeJywU8LuoEeDNyT9ejA=
|
||||
SIZE (ragel-6.7.tar.gz) = 1182734
|
22
devel/ragel/patches/patch-test_runtests_in
Normal file
22
devel/ragel/patches/patch-test_runtests_in
Normal file
@ -0,0 +1,22 @@
|
||||
$OpenBSD: patch-test_runtests_in,v 1.1.1.1 2011/11/15 16:35:15 jeremy Exp $
|
||||
|
||||
Fix bug not respecting ruby version you pass to configure.
|
||||
|
||||
Use gdiff since our diff doesn't implement --strip-trailing-cr.
|
||||
|
||||
--- test/runtests.in.orig Mon Nov 14 16:38:12 2011
|
||||
+++ test/runtests.in Mon Nov 14 16:41:51 2011
|
||||
@@ -118,11 +118,11 @@ function run_test()
|
||||
|
||||
exec_cmd=./$binary
|
||||
[ $lang = java ] && exec_cmd="java ${root}"
|
||||
- [ $lang = ruby ] && exec_cmd="ruby ${code_src}"
|
||||
+ [ $lang = ruby ] && exec_cmd="${ruby_engine} ${code_src}"
|
||||
[ $lang = csharp ] && [ "$csharp_compiler" = gmcs ] && exec_cmd="mono ${exec_cmd}"
|
||||
|
||||
$exec_cmd 2>&1 > $output;
|
||||
- if diff --strip-trailing-cr $expected_out $output > /dev/null; then
|
||||
+ if gdiff --strip-trailing-cr $expected_out $output > /dev/null; then
|
||||
echo "passed";
|
||||
else
|
||||
echo "FAILED";
|
6
devel/ragel/pkg/DESCR
Normal file
6
devel/ragel/pkg/DESCR
Normal file
@ -0,0 +1,6 @@
|
||||
Ragel compiles executable finite state machines from regular languages.
|
||||
It targets C, C++, and Ruby. 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.
|
6
devel/ragel/pkg/PLIST
Normal file
6
devel/ragel/pkg/PLIST
Normal file
@ -0,0 +1,6 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/11/15 16:35:15 jeremy Exp $
|
||||
@bin bin/ragel
|
||||
@man man/man1/ragel.1
|
||||
share/doc/ragel/
|
||||
share/doc/ragel/CREDITS
|
||||
share/doc/ragel/ChangeLog
|
Loading…
Reference in New Issue
Block a user