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

Allan McRae allan at archlinux.org
Sat Aug 4 01:16:51 UTC 2012


    Date: Friday, August 3, 2012 @ 21:16:51
  Author: allan
Revision: 164717

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

Added:
  flex/repos/testing-i686/
  flex/repos/testing-i686/PKGBUILD
    (from rev 164716, flex/trunk/PKGBUILD)
  flex/repos/testing-i686/flex.install
    (from rev 164716, flex/trunk/flex.install)
  flex/repos/testing-i686/lex.sh
    (from rev 164716, flex/trunk/lex.sh)
  flex/repos/testing-x86_64/
  flex/repos/testing-x86_64/PKGBUILD
    (from rev 164716, flex/trunk/PKGBUILD)
  flex/repos/testing-x86_64/flex.install
    (from rev 164716, flex/trunk/flex.install)
  flex/repos/testing-x86_64/lex.sh
    (from rev 164716, flex/trunk/lex.sh)

-----------------------------+
 testing-i686/PKGBUILD       |   44 ++++++++++++++++++++++++++++++++++++++++++
 testing-i686/flex.install   |   22 +++++++++++++++++++++
 testing-i686/lex.sh         |    3 ++
 testing-x86_64/PKGBUILD     |   44 ++++++++++++++++++++++++++++++++++++++++++
 testing-x86_64/flex.install |   22 +++++++++++++++++++++
 testing-x86_64/lex.sh       |    3 ++
 6 files changed, 138 insertions(+)

Copied: flex/repos/testing-i686/PKGBUILD (from rev 164716, flex/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2012-08-04 01:16:51 UTC (rev 164717)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Allan McRae <allan at archlinux.org>
+# Contributor: judd <jvinet at zeroflux.org>
+
+pkgname=flex
+pkgver=2.5.37
+pkgrel=1
+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')
+install=flex.install
+source=(http://downloads.sourceforge.net/sourceforge/flex/flex-$pkgver.tar.bz2
+        lex.sh)
+md5sums=('c75940e1fc25108f2a7b3ef42abdae06'
+         'f725259ec23a9e87ee29e2ef82eda9a5')
+
+build() {
+  cd $srcdir/$pkgname-$pkgver
+  ./configure --prefix=/usr
+  make
+}
+
+check() {
+  cd $srcdir/$pkgname-$pkgver
+  
+  # these tests used features removed in bison-2.6
+  sed -i -e '/test-bison-yylloc/d' -e '/test-bison-yylval/d' tests/Makefile.in
+
+  make check
+}
+
+package() {
+  cd $srcdir/$pkgname-$pkgver
+
+  make DESTDIR=$pkgdir install
+  install -Dm755 $srcdir/lex.sh $pkgdir/usr/bin/lex
+
+  install -Dm644 COPYING \
+  	$pkgdir/usr/share/licenses/$pkgname/license.txt
+}
+

Copied: flex/repos/testing-i686/flex.install (from rev 164716, flex/trunk/flex.install)
===================================================================
--- testing-i686/flex.install	                        (rev 0)
+++ testing-i686/flex.install	2012-08-04 01:16:51 UTC (rev 164717)
@@ -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-i686/lex.sh (from rev 164716, flex/trunk/lex.sh)
===================================================================
--- testing-i686/lex.sh	                        (rev 0)
+++ testing-i686/lex.sh	2012-08-04 01:16:51 UTC (rev 164717)
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec /usr/bin/flex -l "$@"

Copied: flex/repos/testing-x86_64/PKGBUILD (from rev 164716, flex/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2012-08-04 01:16:51 UTC (rev 164717)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Allan McRae <allan at archlinux.org>
+# Contributor: judd <jvinet at zeroflux.org>
+
+pkgname=flex
+pkgver=2.5.37
+pkgrel=1
+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')
+install=flex.install
+source=(http://downloads.sourceforge.net/sourceforge/flex/flex-$pkgver.tar.bz2
+        lex.sh)
+md5sums=('c75940e1fc25108f2a7b3ef42abdae06'
+         'f725259ec23a9e87ee29e2ef82eda9a5')
+
+build() {
+  cd $srcdir/$pkgname-$pkgver
+  ./configure --prefix=/usr
+  make
+}
+
+check() {
+  cd $srcdir/$pkgname-$pkgver
+  
+  # these tests used features removed in bison-2.6
+  sed -i -e '/test-bison-yylloc/d' -e '/test-bison-yylval/d' tests/Makefile.in
+
+  make check
+}
+
+package() {
+  cd $srcdir/$pkgname-$pkgver
+
+  make DESTDIR=$pkgdir install
+  install -Dm755 $srcdir/lex.sh $pkgdir/usr/bin/lex
+
+  install -Dm644 COPYING \
+  	$pkgdir/usr/share/licenses/$pkgname/license.txt
+}
+

Copied: flex/repos/testing-x86_64/flex.install (from rev 164716, flex/trunk/flex.install)
===================================================================
--- testing-x86_64/flex.install	                        (rev 0)
+++ testing-x86_64/flex.install	2012-08-04 01:16:51 UTC (rev 164717)
@@ -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/lex.sh (from rev 164716, flex/trunk/lex.sh)
===================================================================
--- testing-x86_64/lex.sh	                        (rev 0)
+++ testing-x86_64/lex.sh	2012-08-04 01:16:51 UTC (rev 164717)
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec /usr/bin/flex -l "$@"




More information about the arch-commits mailing list