Date: Thursday, April 29, 2021 @ 22:07:37
  Author: svenstaro
Revision: 414040

archrelease: copy trunk to extra-x86_64

Added:
  antlr2/repos/extra-x86_64/PKGBUILD
    (from rev 414039, antlr2/trunk/PKGBUILD)
  antlr2/repos/extra-x86_64/gcc4.4.patch
    (from rev 414039, antlr2/trunk/gcc4.4.patch)
  antlr2/repos/extra-x86_64/runantlr2.sh
    (from rev 414039, antlr2/trunk/runantlr2.sh)
Deleted:
  antlr2/repos/extra-x86_64/PKGBUILD
  antlr2/repos/extra-x86_64/gcc4.4.patch
  antlr2/repos/extra-x86_64/runantlr2.sh

--------------+
 PKGBUILD     |   96 +++++++++++++++++++++++++++++----------------------------
 gcc4.4.patch |   42 ++++++++++++------------
 runantlr2.sh |   10 ++---
 3 files changed, 75 insertions(+), 73 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2021-04-29 22:07:31 UTC (rev 414039)
+++ PKGBUILD    2021-04-29 22:07:37 UTC (rev 414040)
@@ -1,47 +0,0 @@
-# Maintainer: Guillaume ALAUX <guilla...@archlinux.org>
-# Contributor: Andrea Scarpino <and...@archlinux.org>
-# Contributor: George Giorgidze <giorgidze (at) gmail.com>
-# Contributor: Stefan Husmann <stefan-husm...@t-online.de>
-
-pkgname=antlr2
-pkgver=2.7.7
-pkgrel=11
-arch=('x86_64')
-url="https://www.antlr2.org/";
-license=('custom')
-makedepends=('java-environment' 'sh')
-options=('staticlibs')
-source=("https://www.antlr2.org/download/antlr-${pkgver}.tar.gz";
-        'runantlr2.sh'
-        'gcc4.4.patch')
-md5sums=('01cc9a2a454dd33dcd8c856ec89af090'
-         'e4aa827cf78f97c4e5fae086831192d6'
-         '8574c93f40e6477e83c29f9b07de49da')
-
-prepare() {
-  cd "${srcdir}/antlr-${pkgver}"
-  patch -Np0 -i "${srcdir}"/gcc4.4.patch
-}
-
-build() {
-  cd "${srcdir}/antlr-${pkgver}"
-
-  ./configure --prefix=/usr \
-    --disable-examples \
-    --disable-csharp
-  make
-}
-
-package() {
-  pkgdesc='Language recognition tool providing a framework to build 
grammatical parsers'
-  depends=('java-runtime' 'sh')
-  provides=("antlr=${pkgver}")
-
-  cd "${srcdir}"/antlr-${pkgver}/lib/cpp
-  make prefix="${pkgdir}/usr" install
-
-  install -Dm644 ../../antlr/antlr.jar "${pkgdir}"/usr/share/java/antlr2.jar
-  install -Dm755 "${srcdir}"/runantlr2.sh "${pkgdir}"/usr/bin/runantlr2
-  install -Dm644 "${srcdir}"/antlr-${pkgver}/LICENSE.txt \
-    "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-}

Copied: antlr2/repos/extra-x86_64/PKGBUILD (from rev 414039, 
antlr2/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2021-04-29 22:07:37 UTC (rev 414040)
@@ -0,0 +1,49 @@
+# Maintainer: Guillaume ALAUX <guilla...@archlinux.org>
+# Contributor: Andrea Scarpino <and...@archlinux.org>
+# Contributor: George Giorgidze <giorgidze (at) gmail.com>
+# Contributor: Stefan Husmann <stefan-husm...@t-online.de>
+
+pkgname=antlr2
+pkgver=2.7.7
+pkgrel=12
+arch=('x86_64')
+url="https://www.antlr2.org/";
+pkgdesc='Language recognition tool providing a framework to build grammatical 
parsers'
+license=('custom')
+depends=('java-runtime' 'sh')
+provides=("antlr=${pkgver}")
+makedepends=('java-environment')
+options=('staticlibs')
+source=("https://www.antlr2.org/download/antlr-${pkgver}.tar.gz";
+        'runantlr2.sh'
+        'gcc4.4.patch')
+md5sums=('01cc9a2a454dd33dcd8c856ec89af090'
+         'e4aa827cf78f97c4e5fae086831192d6'
+         '8574c93f40e6477e83c29f9b07de49da')
+
+prepare() {
+  cd antlr-${pkgver}
+  patch -Np0 -i "${srcdir}"/gcc4.4.patch
+}
+
+build() {
+  cd antlr-${pkgver}
+
+  sed -i "/^CFLAGS=/d" ./configure
+  export CXX_LIB_CMD="ld ${LDFLAGS}"
+  export CXX_LINK_CMD="ld ${LDFLAGS}"
+  ./configure --prefix=/usr \
+    --disable-examples \
+    --disable-csharp
+  make CXXFLAGS="${CXXFLAGS} -fPIC"
+}
+
+package() {
+  cd antlr-${pkgver}/lib/cpp
+  make prefix="${pkgdir}/usr" install
+
+  install -Dm644 ../../antlr/antlr.jar "${pkgdir}"/usr/share/java/antlr2.jar
+  install -Dm755 "${srcdir}"/runantlr2.sh "${pkgdir}"/usr/bin/runantlr2
+  install -Dm644 "${srcdir}"/antlr-${pkgver}/LICENSE.txt \
+    "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}

Deleted: gcc4.4.patch
===================================================================
--- gcc4.4.patch        2021-04-29 22:07:31 UTC (rev 414039)
+++ gcc4.4.patch        2021-04-29 22:07:37 UTC (rev 414040)
@@ -1,21 +0,0 @@
-diff -Naur antlr-2.7.7.orig/lib/cpp/antlr/CharScanner.hpp 
antlr-2.7.7/lib/cpp/antlr/CharScanner.hpp
---- lib/cpp/antlr/CharScanner.hpp      2006-11-01 22:37:17.000000000 +0100
-+++ lib/cpp/antlr/CharScanner.hpp      2008-03-19 20:09:21.000000000 +0100
-@@ -10,6 +10,7 @@
- 
- #include <antlr/config.hpp>
- 
-+#include <cstring>
- #include <map>
- 
- #ifdef HAS_NOT_CCTYPE_H
---- lib/cpp/antlr/CharScanner.hpp~      2008-11-11 21:24:02.000000000 +0000
-+++ lib/cpp/antlr/CharScanner.hpp       2008-11-11 21:24:33.000000000 +0000
-@@ -10,6 +10,7 @@
-
- #include <antlr/config.hpp>
-
-+#include <cstdio>
- #include <cstring>
- #include <map>
-

Copied: antlr2/repos/extra-x86_64/gcc4.4.patch (from rev 414039, 
antlr2/trunk/gcc4.4.patch)
===================================================================
--- gcc4.4.patch                                (rev 0)
+++ gcc4.4.patch        2021-04-29 22:07:37 UTC (rev 414040)
@@ -0,0 +1,21 @@
+diff -Naur antlr-2.7.7.orig/lib/cpp/antlr/CharScanner.hpp 
antlr-2.7.7/lib/cpp/antlr/CharScanner.hpp
+--- lib/cpp/antlr/CharScanner.hpp      2006-11-01 22:37:17.000000000 +0100
++++ lib/cpp/antlr/CharScanner.hpp      2008-03-19 20:09:21.000000000 +0100
+@@ -10,6 +10,7 @@
+ 
+ #include <antlr/config.hpp>
+ 
++#include <cstring>
+ #include <map>
+ 
+ #ifdef HAS_NOT_CCTYPE_H
+--- lib/cpp/antlr/CharScanner.hpp~      2008-11-11 21:24:02.000000000 +0000
++++ lib/cpp/antlr/CharScanner.hpp       2008-11-11 21:24:33.000000000 +0000
+@@ -10,6 +10,7 @@
+
+ #include <antlr/config.hpp>
+
++#include <cstdio>
+ #include <cstring>
+ #include <map>
+

Deleted: runantlr2.sh
===================================================================
--- runantlr2.sh        2021-04-29 22:07:31 UTC (rev 414039)
+++ runantlr2.sh        2021-04-29 22:07:37 UTC (rev 414040)
@@ -1,5 +0,0 @@
-#!/bin/sh
-echo Running 'java antlr.Tool $*' with /usr/share/java/antlr2.jar appended to 
the CLASSPATH variable
-export CLASSPATH
-CLASSPATH=$CLASSPATH:/usr/share/java/antlr2.jar
-java antlr.Tool $*

Copied: antlr2/repos/extra-x86_64/runantlr2.sh (from rev 414039, 
antlr2/trunk/runantlr2.sh)
===================================================================
--- runantlr2.sh                                (rev 0)
+++ runantlr2.sh        2021-04-29 22:07:37 UTC (rev 414040)
@@ -0,0 +1,5 @@
+#!/bin/sh
+echo Running 'java antlr.Tool $*' with /usr/share/java/antlr2.jar appended to 
the CLASSPATH variable
+export CLASSPATH
+CLASSPATH=$CLASSPATH:/usr/share/java/antlr2.jar
+java antlr.Tool $*

Reply via email to