[arch-commits] Commit in flex/repos (6 files)

Allan McRae allan at archlinux.org
Sat Mar 11 05:08:43 UTC 2017


    Date: Saturday, March 11, 2017 @ 05:08:42
  Author: allan
Revision: 290512

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  flex/repos/testing-i686/
  flex/repos/testing-i686/PKGBUILD
    (from rev 290511, flex/trunk/PKGBUILD)
  flex/repos/testing-i686/flex-2.6.0-comment-style.patch
    (from rev 290511, flex/trunk/flex-2.6.0-comment-style.patch)
  flex/repos/testing-x86_64/
  flex/repos/testing-x86_64/PKGBUILD
    (from rev 290511, flex/trunk/PKGBUILD)
  flex/repos/testing-x86_64/flex-2.6.0-comment-style.patch
    (from rev 290511, flex/trunk/flex-2.6.0-comment-style.patch)

-----------------------------------------------+
 testing-i686/PKGBUILD                         |   49 ++++++++++++++++++++++++
 testing-i686/flex-2.6.0-comment-style.patch   |   22 ++++++++++
 testing-x86_64/PKGBUILD                       |   49 ++++++++++++++++++++++++
 testing-x86_64/flex-2.6.0-comment-style.patch |   22 ++++++++++
 4 files changed, 142 insertions(+)

Copied: flex/repos/testing-i686/PKGBUILD (from rev 290511, flex/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2017-03-11 05:08:42 UTC (rev 290512)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Allan McRae <allan at archlinux.org>
+# Contributor: judd <jvinet at zeroflux.org>
+
+pkgname=flex
+pkgver=2.6.3
+pkgrel=2
+pkgdesc="A tool for generating text-scanning programs"
+arch=('i686' 'x86_64')
+url="https://github.com/westes/flex"
+license=('custom')
+groups=('base-devel')
+depends=('glibc' 'm4' 'sh')
+# the released man pages are screwy...
+makedepends=('help2man')
+source=(https://github.com/westes/flex/releases/download/v$pkgver/flex-$pkgver.tar.gz
+	yywrap-fix.diff::https://github.com/westes/flex/commit/f5d87f1a26f4a5c3402497008ae10e9a1345d327.diff)
+md5sums=('a5f65570cd9107ec8a8ec88f17b31bb1'
+         '7d6a72fad1b12922996964d80318ac3a')
+
+
+prepare() {
+  cd $pkgname-$pkgver
+  patch -p1 -i $srcdir/yywrap-fix.diff
+}
+
+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
+}
+

Copied: flex/repos/testing-i686/flex-2.6.0-comment-style.patch (from rev 290511, 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	2017-03-11 05:08:42 UTC (rev 290512)
@@ -0,0 +1,22 @@
+From 07d89829cce4527c7614a34642d4b2c2ef5d6005 Mon Sep 17 00:00:00 2001
+From: Will Estes <westes575 at 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 290511, flex/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2017-03-11 05:08:42 UTC (rev 290512)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Allan McRae <allan at archlinux.org>
+# Contributor: judd <jvinet at zeroflux.org>
+
+pkgname=flex
+pkgver=2.6.3
+pkgrel=2
+pkgdesc="A tool for generating text-scanning programs"
+arch=('i686' 'x86_64')
+url="https://github.com/westes/flex"
+license=('custom')
+groups=('base-devel')
+depends=('glibc' 'm4' 'sh')
+# the released man pages are screwy...
+makedepends=('help2man')
+source=(https://github.com/westes/flex/releases/download/v$pkgver/flex-$pkgver.tar.gz
+	yywrap-fix.diff::https://github.com/westes/flex/commit/f5d87f1a26f4a5c3402497008ae10e9a1345d327.diff)
+md5sums=('a5f65570cd9107ec8a8ec88f17b31bb1'
+         '7d6a72fad1b12922996964d80318ac3a')
+
+
+prepare() {
+  cd $pkgname-$pkgver
+  patch -p1 -i $srcdir/yywrap-fix.diff
+}
+
+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
+}
+

Copied: flex/repos/testing-x86_64/flex-2.6.0-comment-style.patch (from rev 290511, 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	2017-03-11 05:08:42 UTC (rev 290512)
@@ -0,0 +1,22 @@
+From 07d89829cce4527c7614a34642d4b2c2ef5d6005 Mon Sep 17 00:00:00 2001
+From: Will Estes <westes575 at 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);



More information about the arch-commits mailing list