[arch-commits] Commit in (5 files)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Wed Oct 19 09:24:41 UTC 2016


    Date: Wednesday, October 19, 2016 @ 09:24:41
  Author: bpiotrowski
Revision: 278997

community2extra: Moving re2 from community to extra

Added:
  re2/
  re2/repos/
  re2/trunk/
  re2/trunk/PKGBUILD
  re2/trunk/gcc-61-fix.patch

------------------+
 PKGBUILD         |   40 ++++++++++++++++++++++++++++++++++++++++
 gcc-61-fix.patch |   13 +++++++++++++
 2 files changed, 53 insertions(+)

Added: re2/trunk/PKGBUILD
===================================================================
--- re2/trunk/PKGBUILD	                        (rev 0)
+++ re2/trunk/PKGBUILD	2016-10-19 09:24:41 UTC (rev 278997)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Gustavo Alvarez <sl1pkn07 at gmail.com>
+# Contributor: Alexandre Bique <bique.alexandre at gmail.com>
+
+pkgname=re2
+_tag='2016-09-01'
+pkgver=${_tag//-/}
+pkgrel=1
+pkgdesc='C++ library for fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python'
+url='https://github.com/google/re2'
+depends=(gcc-libs)
+arch=(i686 x86_64)
+license=(BSD)
+source=(re2-$pkgver.zip::https://github.com/google/re2/archive/$_tag.zip
+        gcc-61-fix.patch)
+sha1sums=('fbde84ba1661ac4ff7dea657c01b0e69c1c26eb4'
+          'd233c798c40dab4c9ba973316145715308df02f1')
+
+prepare() {
+  cd re2-$_tag
+  # fix for https://github.com/google/re2/issues/102
+  patch -p1 < ../gcc-61-fix.patch
+}
+
+build() {
+  cd re2-$_tag
+  make prefix=/usr
+}
+
+check() {
+  cd re2-$_tag
+  make prefix=/usr test
+}
+
+package() {
+  cd re2-$_tag
+  make prefix=/usr DESTDIR="$pkgdir" install
+  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}


Property changes on: re2/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: re2/trunk/gcc-61-fix.patch
===================================================================
--- re2/trunk/gcc-61-fix.patch	                        (rev 0)
+++ re2/trunk/gcc-61-fix.patch	2016-10-19 09:24:41 UTC (rev 278997)
@@ -0,0 +1,13 @@
+diff --git a/re2/dfa.cc b/re2/dfa.cc
+index 1fc8a5a..43dddac 100644
+--- a/re2/dfa.cc
++++ b/re2/dfa.cc
+@@ -123,7 +123,7 @@ class DFA {
+     uint32_t flag_;     // Empty string bitfield flags in effect on the way
+                         // into this state, along with kFlagMatch if this
+                         // is a matching state.
+-    std::atomic<State*> next_[];    // Outgoing arrows from State,
++    std::atomic<State*> next_[0];    // Outgoing arrows from State,
+                         // one per input byte class
+   };
+ 



More information about the arch-commits mailing list