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

Allan McRae allan at archlinux.org
Sat Feb 20 02:13:35 UTC 2016


    Date: Saturday, February 20, 2016 @ 03:13:35
  Author: allan
Revision: 260032

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

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

-----------------------------------------------+
 testing-i686/PKGBUILD                         |   48 ++++++++++++++++++++++++
 testing-i686/flex-2.6.0-comment-style.patch   |   22 +++++++++++
 testing-i686/flex.install                     |   22 +++++++++++
 testing-x86_64/PKGBUILD                       |   48 ++++++++++++++++++++++++
 testing-x86_64/flex-2.6.0-comment-style.patch |   22 +++++++++++
 testing-x86_64/flex.install                   |   22 +++++++++++
 6 files changed, 184 insertions(+)

Copied: flex/repos/testing-i686/PKGBUILD (from rev 260031, flex/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2016-02-20 02:13:35 UTC (rev 260032)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Allan McRae <allan at archlinux.org>
+# Contributor: judd <jvinet at zeroflux.org>
+
+pkgname=flex
+pkgver=2.6.0
+pkgrel=2
+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 patch...
+install=flex.install
+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 260031, 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-02-20 02:13:35 UTC (rev 260032)
@@ -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-i686/flex.install (from rev 260031, flex/trunk/flex.install)
===================================================================
--- testing-i686/flex.install	                        (rev 0)
+++ testing-i686/flex.install	2016-02-20 02:13:35 UTC (rev 260032)
@@ -0,0 +1,22 @@
+infodir=/usr/share/info
+filelist=(flex.info{,-1,-2})
+
+post_install() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+    install-info $infodir/$file.gz $infodir/dir 2> /dev/null
+  done
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+    install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
+  done
+}
+
+# vim:set ts=2 sw=2 et:

Copied: flex/repos/testing-x86_64/PKGBUILD (from rev 260031, flex/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2016-02-20 02:13:35 UTC (rev 260032)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Allan McRae <allan at archlinux.org>
+# Contributor: judd <jvinet at zeroflux.org>
+
+pkgname=flex
+pkgver=2.6.0
+pkgrel=2
+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 patch...
+install=flex.install
+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 260031, 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-02-20 02:13:35 UTC (rev 260032)
@@ -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/flex.install (from rev 260031, flex/trunk/flex.install)
===================================================================
--- testing-x86_64/flex.install	                        (rev 0)
+++ testing-x86_64/flex.install	2016-02-20 02:13:35 UTC (rev 260032)
@@ -0,0 +1,22 @@
+infodir=/usr/share/info
+filelist=(flex.info{,-1,-2})
+
+post_install() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+    install-info $infodir/$file.gz $infodir/dir 2> /dev/null
+  done
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+    install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
+  done
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list