diff options
Diffstat (limited to 'libre-testing/flex')
-rw-r--r-- | libre-testing/flex/PKGBUILD | 38 | ||||
-rw-r--r-- | libre-testing/flex/flex-2.6.0-comment-style.patch | 22 |
2 files changed, 60 insertions, 0 deletions
diff --git a/libre-testing/flex/PKGBUILD b/libre-testing/flex/PKGBUILD new file mode 100644 index 000000000..df37cb065 --- /dev/null +++ b/libre-testing/flex/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Lukas Fleischer <lfleischer@archlinux.org> +# Contributor: Allan McRae <allan@archlinux.org> +# Contributor: judd <jvinet@zeroflux.org> + +pkgname=flex +pkgver=2.6.4 +pkgrel=1 +pkgdesc="A tool for generating text-scanning programs" +arch=('x86_64' 'ppc64le') +url="https://github.com/westes/flex" +license=('custom') +groups=('base-devel') +depends=('glibc' 'm4' 'sh') +makedepends=('help2man') +source=("https://github.com/westes/flex/releases/download/v$pkgver/flex-$pkgver.tar.gz") +md5sums=('2882e3179748cc9f9c23ec593d6adc8d') + +build() { + cd "$pkgname-$pkgver" + ./configure --prefix=/usr + make +} + +check() { + cd "$pkgname-$pkgver" + + # cxx_restart fails - https://github.com/westes/flex/issues/98 + make -k check || true +} + +package() { + cd "$pkgname-$pkgver" + + make DESTDIR="$pkgdir" install + ln -s flex "${pkgdir}/usr/bin/lex" + + install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/license.txt" +} diff --git a/libre-testing/flex/flex-2.6.0-comment-style.patch b/libre-testing/flex/flex-2.6.0-comment-style.patch new file mode 100644 index 000000000..74176168a --- /dev/null +++ b/libre-testing/flex/flex-2.6.0-comment-style.patch @@ -0,0 +1,22 @@ +From 07d89829cce4527c7614a34642d4b2c2ef5d6005 Mon Sep 17 00:00:00 2001 +From: Will Estes <westes575@gmail.com> +Date: Fri, 11 Dec 2015 09:45:14 -0500 +Subject: [PATCH] Commented in C style in skeleton; fixed sf#195 + +--- + src/flex.skl | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/flex.skl b/src/flex.skl +index b63c8c8..40287b6 100644 +--- a/src/flex.skl ++++ b/src/flex.skl +@@ -2350,7 +2350,7 @@ void yyFlexLexer::yyensure_buffer_stack(void) + * scanner will even need a stack. We use 2 instead of 1 to avoid an + * immediate realloc on the next call. + */ +- num_to_alloc = 1; // After all that talk, this was set to 1 anyways... ++ num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */ + YY_G(yy_buffer_stack) = (struct yy_buffer_state**)yyalloc + (num_to_alloc * sizeof(struct yy_buffer_state*) + M4_YY_CALL_LAST_ARG); |