Date: Sunday, May 1, 2016 @ 04:37:47 Author: allan Revision: 266702 archrelease: copy trunk to testing-i686, testing-x86_64
Added: flex/repos/testing-i686/ flex/repos/testing-i686/PKGBUILD (from rev 266701, flex/trunk/PKGBUILD) flex/repos/testing-i686/flex-2.6.0-comment-style.patch (from rev 266701, flex/trunk/flex-2.6.0-comment-style.patch) flex/repos/testing-x86_64/ flex/repos/testing-x86_64/PKGBUILD (from rev 266701, flex/trunk/PKGBUILD) flex/repos/testing-x86_64/flex-2.6.0-comment-style.patch (from rev 266701, flex/trunk/flex-2.6.0-comment-style.patch) -----------------------------------------------+ testing-i686/PKGBUILD | 47 ++++++++++++++++++++++++ testing-i686/flex-2.6.0-comment-style.patch | 22 +++++++++++ testing-x86_64/PKGBUILD | 47 ++++++++++++++++++++++++ testing-x86_64/flex-2.6.0-comment-style.patch | 22 +++++++++++ 4 files changed, 138 insertions(+) Copied: flex/repos/testing-i686/PKGBUILD (from rev 266701, flex/trunk/PKGBUILD) =================================================================== --- testing-i686/PKGBUILD (rev 0) +++ testing-i686/PKGBUILD 2016-05-01 02:37:47 UTC (rev 266702) @@ -0,0 +1,47 @@ +# $Id$ +# Maintainer: Allan McRae <al...@archlinux.org> +# Contributor: judd <jvi...@zeroflux.org> + +pkgname=flex +pkgver=2.6.0 +pkgrel=3 +pkgdesc="A tool for generating text-scanning programs" +arch=('i686' 'x86_64') +url="http://flex.sourceforge.net" +license=('custom') +groups=('base-devel') +depends=('glibc' 'm4' 'sh') +makedepends=('help2man') # needed for the patch... +source=(http://downloads.sourceforge.net/sourceforge/flex/flex-$pkgver.tar.xz + flex-2.6.0-comment-style.patch) +md5sums=('3cbbfa1554d0b75fad9f8100732454de' + '14c93c3930a8591bed2f736e28c47106') + +prepare() { + cd $pkgname-$pkgver + + # git commit 07d89829 + patch -p1 -i $srcdir/flex-2.6.0-comment-style.patch +} + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/usr + make +} + +check() { + cd $pkgname-$pkgver + make check +} + +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 +} + Copied: flex/repos/testing-i686/flex-2.6.0-comment-style.patch (from rev 266701, flex/trunk/flex-2.6.0-comment-style.patch) =================================================================== --- testing-i686/flex-2.6.0-comment-style.patch (rev 0) +++ testing-i686/flex-2.6.0-comment-style.patch 2016-05-01 02:37:47 UTC (rev 266702) @@ -0,0 +1,22 @@ +From 07d89829cce4527c7614a34642d4b2c2ef5d6005 Mon Sep 17 00:00:00 2001 +From: Will Estes <westes...@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); Copied: flex/repos/testing-x86_64/PKGBUILD (from rev 266701, flex/trunk/PKGBUILD) =================================================================== --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2016-05-01 02:37:47 UTC (rev 266702) @@ -0,0 +1,47 @@ +# $Id$ +# Maintainer: Allan McRae <al...@archlinux.org> +# Contributor: judd <jvi...@zeroflux.org> + +pkgname=flex +pkgver=2.6.0 +pkgrel=3 +pkgdesc="A tool for generating text-scanning programs" +arch=('i686' 'x86_64') +url="http://flex.sourceforge.net" +license=('custom') +groups=('base-devel') +depends=('glibc' 'm4' 'sh') +makedepends=('help2man') # needed for the patch... +source=(http://downloads.sourceforge.net/sourceforge/flex/flex-$pkgver.tar.xz + flex-2.6.0-comment-style.patch) +md5sums=('3cbbfa1554d0b75fad9f8100732454de' + '14c93c3930a8591bed2f736e28c47106') + +prepare() { + cd $pkgname-$pkgver + + # git commit 07d89829 + patch -p1 -i $srcdir/flex-2.6.0-comment-style.patch +} + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/usr + make +} + +check() { + cd $pkgname-$pkgver + make check +} + +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 +} + Copied: flex/repos/testing-x86_64/flex-2.6.0-comment-style.patch (from rev 266701, flex/trunk/flex-2.6.0-comment-style.patch) =================================================================== --- testing-x86_64/flex-2.6.0-comment-style.patch (rev 0) +++ testing-x86_64/flex-2.6.0-comment-style.patch 2016-05-01 02:37:47 UTC (rev 266702) @@ -0,0 +1,22 @@ +From 07d89829cce4527c7614a34642d4b2c2ef5d6005 Mon Sep 17 00:00:00 2001 +From: Will Estes <westes...@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);