pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Partially revert "Finish removing obsolete packages"



Module Name:	pkgsrc-wip
Committed By:	Benny Siegert <bsiegert%NetBSD.org@localhost>
Pushed By:	bsiegert
Date:		Wed Nov 1 17:54:05 2023 +0100
Changeset:	ed9379ca32db02fb9dc5e53005d6a33f56a6ea80

Added Files:
	antlr/DESCR
	antlr/PLIST
	antlr/TODO
	antlr/buildlink3.mk
	antlr/distinfo
	antlr/files/antlr.sh.in
	antlr/patches/patch-configure
	antlr/patches/patch-lib__cpp__antlr__ANTLRException.hpp
	antlr/patches/patch-lib_cpp_antlr_CharScanner.hpp

Log Message:
Partially revert "Finish removing obsolete packages"

Restore wip/antlr, PR pkg/57679.

This reverts part of commit 9ba2eb9a080f0e8749ba286072f2f7da2a9a4e9d.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=ed9379ca32db02fb9dc5e53005d6a33f56a6ea80

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 antlr/DESCR                                        |   4 +
 antlr/PLIST                                        |  81 ++++++++++
 antlr/TODO                                         |   1 +
 antlr/buildlink3.mk                                |  12 ++
 antlr/distinfo                                     |   8 +
 antlr/files/antlr.sh.in                            |   5 +
 antlr/patches/patch-configure                      | 166 +++++++++++++++++++++
 .../patch-lib__cpp__antlr__ANTLRException.hpp      |  14 ++
 antlr/patches/patch-lib_cpp_antlr_CharScanner.hpp  |  16 ++
 9 files changed, 307 insertions(+)

diffs:
diff --git a/antlr/DESCR b/antlr/DESCR
new file mode 100644
index 0000000000..08dc2a2842
--- /dev/null
+++ b/antlr/DESCR
@@ -0,0 +1,4 @@
+ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a
+language tool that provides a framework for constructing recognizers,
+compilers, and translators from grammatical descriptions containing
+C++ or Java actions.
diff --git a/antlr/PLIST b/antlr/PLIST
new file mode 100644
index 0000000000..195825e514
--- /dev/null
+++ b/antlr/PLIST
@@ -0,0 +1,81 @@
+@comment $NetBSD$
+bin/antlr
+include/antlr/ANTLRException.hpp
+include/antlr/ANTLRUtil.hpp
+include/antlr/AST.hpp
+include/antlr/ASTArray.hpp
+include/antlr/ASTFactory.hpp
+include/antlr/ASTNULLType.hpp
+include/antlr/ASTPair.hpp
+include/antlr/ASTRefCount.hpp
+include/antlr/BaseAST.hpp
+include/antlr/BitSet.hpp
+include/antlr/CharBuffer.hpp
+include/antlr/CharInputBuffer.hpp
+include/antlr/CharScanner.hpp
+include/antlr/CharStreamException.hpp
+include/antlr/CharStreamIOException.hpp
+include/antlr/CircularQueue.hpp
+include/antlr/CommonAST.hpp
+include/antlr/CommonASTWithHiddenTokens.hpp
+include/antlr/CommonHiddenStreamToken.hpp
+include/antlr/CommonToken.hpp
+include/antlr/IOException.hpp
+include/antlr/InputBuffer.hpp
+include/antlr/LLkParser.hpp
+include/antlr/LexerSharedInputState.hpp
+include/antlr/MismatchedCharException.hpp
+include/antlr/MismatchedTokenException.hpp
+include/antlr/NoViableAltException.hpp
+include/antlr/NoViableAltForCharException.hpp
+include/antlr/Parser.hpp
+include/antlr/ParserSharedInputState.hpp
+include/antlr/RecognitionException.hpp
+include/antlr/RefCount.hpp
+include/antlr/SemanticException.hpp
+include/antlr/String.hpp
+include/antlr/Token.hpp
+include/antlr/TokenBuffer.hpp
+include/antlr/TokenRefCount.hpp
+include/antlr/TokenStream.hpp
+include/antlr/TokenStreamBasicFilter.hpp
+include/antlr/TokenStreamException.hpp
+include/antlr/TokenStreamHiddenTokenFilter.hpp
+include/antlr/TokenStreamIOException.hpp
+include/antlr/TokenStreamRecognitionException.hpp
+include/antlr/TokenStreamRetryException.hpp
+include/antlr/TokenStreamRewriteEngine.hpp
+include/antlr/TokenStreamSelector.hpp
+include/antlr/TokenWithIndex.hpp
+include/antlr/TreeParser.hpp
+include/antlr/TreeParserSharedInputState.hpp
+include/antlr/config.hpp
+lib/libantlr.a
+share/doc/antlr/ANTLRException.gif
+share/doc/antlr/closure.gif
+share/doc/antlr/cpp-runtime.html
+share/doc/antlr/csharp-runtime.html
+share/doc/antlr/err.html
+share/doc/antlr/glossary.html
+share/doc/antlr/hidden.stream.gif
+share/doc/antlr/index.html
+share/doc/antlr/inheritance.html
+share/doc/antlr/j-guru-blue.jpg
+share/doc/antlr/jguru-logo.gif
+share/doc/antlr/lexer.html
+share/doc/antlr/lexer.to.parser.tokens.gif
+share/doc/antlr/logo.gif
+share/doc/antlr/metalang.html
+share/doc/antlr/optional.gif
+share/doc/antlr/options.html
+share/doc/antlr/posclosure.gif
+share/doc/antlr/runtime.html
+share/doc/antlr/sor.html
+share/doc/antlr/stream.perspectives.gif
+share/doc/antlr/stream.selector.gif
+share/doc/antlr/stream.splitter.gif
+share/doc/antlr/streams.html
+share/doc/antlr/subrule.gif
+share/doc/antlr/trees.html
+share/doc/antlr/vocab.html
+share/java/classes/antlr.jar
diff --git a/antlr/TODO b/antlr/TODO
new file mode 100644
index 0000000000..b687356e6b
--- /dev/null
+++ b/antlr/TODO
@@ -0,0 +1 @@
+Clean up and test
diff --git a/antlr/buildlink3.mk b/antlr/buildlink3.mk
new file mode 100644
index 0000000000..6bd97c48fa
--- /dev/null
+++ b/antlr/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	antlr
+
+.if !defined(ANTLR_BUILDLINK3_MK)
+ANTLR_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.antlr+=	antlr>=2.7.7
+BUILDLINK_PKGSRCDIR.antlr?=	../../wip/antlr
+.endif	# ANTLR_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-antlr
diff --git a/antlr/distinfo b/antlr/distinfo
new file mode 100644
index 0000000000..3e5cb49352
--- /dev/null
+++ b/antlr/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+RMD160 (antlr-2.7.7.tar.gz) = 0b7951a28b748e912721fe0f6de4095d9f8da57d
+SHA512 (antlr-2.7.7.tar.gz) = faa72d2ddcba434ef1233e70c1549e63eba67c00793966322e821cf7f015cccb804448cb92d8fbef0429f59928fad65ec954f8ffbda0acbb8e983de0806d349d
+Size (antlr-2.7.7.tar.gz) = 1816180 bytes
+SHA1 (patch-configure) = 41a7e86c32560eef26d0ba54357c5d58d50be63d
+SHA1 (patch-lib__cpp__antlr__ANTLRException.hpp) = 81761161d3cbff6c30675c8eb75daaef26b9751b
+SHA1 (patch-lib_cpp_antlr_CharScanner.hpp) = 845bacc8698fca5252069471f8bf2c1a6384730a
diff --git a/antlr/files/antlr.sh.in b/antlr/files/antlr.sh.in
new file mode 100644
index 0000000000..4dd3b9445d
--- /dev/null
+++ b/antlr/files/antlr.sh.in
@@ -0,0 +1,5 @@
+#! /bin/sh
+#
+# $FreeBSD: head/devel/antlr/files/antlr.sh.in 350206 2014-04-05 08:01:26Z pawel $
+
+JAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" -classpath "%%JAVAJARDIR%%/antlr.jar" antlr.Tool "$@"
diff --git a/antlr/patches/patch-configure b/antlr/patches/patch-configure
new file mode 100644
index 0000000000..7c79106a8d
--- /dev/null
+++ b/antlr/patches/patch-configure
@@ -0,0 +1,166 @@
+$NetBSD$
+
+# Non-portable == in shell script
+
+--- configure.orig	2006-11-01 21:37:18.000000000 +0000
++++ configure
+@@ -2234,7 +2234,7 @@ echo "${ECHO_T}$as_dir/$ac_word$ac_exec_
+              fi
+            done
+           done
+-          test "x$as_found" == "x" && {
++          test "x$as_found" = "x" && {
+             echo "$as_me:$LINENO: checking for $ac_word" >&5
+ echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+             echo "$as_me:$LINENO: result: no" >&5
+@@ -2299,7 +2299,7 @@ echo "${ECHO_T}$as_dir/$ac_word$ac_exec_
+              fi
+            done
+           done
+-          test "x$as_found" == "x" && {
++          test "x$as_found" = "x" && {
+             echo "$as_me:$LINENO: checking for $ac_word" >&5
+ echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+             echo "$as_me:$LINENO: result: no" >&5
+@@ -2364,7 +2364,7 @@ echo "${ECHO_T}$as_dir/$ac_word$ac_exec_
+              fi
+            done
+           done
+-          test "x$as_found" == "x" && {
++          test "x$as_found" = "x" && {
+             echo "$as_me:$LINENO: checking for $ac_word" >&5
+ echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+             echo "$as_me:$LINENO: result: no" >&5
+@@ -2461,7 +2461,7 @@ echo "${ECHO_T}$as_dir/$ac_word$ac_exec_
+              fi
+            done
+           done
+-          test "x$as_found" == "x" && {
++          test "x$as_found" = "x" && {
+             echo "$as_me:$LINENO: checking for $ac_word" >&5
+ echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+             echo "$as_me:$LINENO: result: no" >&5
+@@ -2486,13 +2486,13 @@ echo "$as_me: error: no suitable value h
+ 
+ ## right now we need to have a GNU make around, other makes are
+ ## not supported and likely to fail.
+-if test "x${user_make}" == "x" ; then
++if test "x${user_make}" = "x" ; then
+ 
+     #Search all the common names for GNU make
+     ax_gnu_make_list="${MAKE}"
+     MAKE=
+     for a in . ${ax_gnu_make_list} ; do
+-      if test "$a" == "." ; then
++      if test "$a" = "." ; then
+         continue
+       fi
+       echo "$as_me:$LINENO: checking whether ${a} is GNU make" >&5
+@@ -2508,7 +2508,7 @@ echo "${ECHO_T}no" >&6
+       fi
+     done
+     ## handle search result
+-    if test  "x${MAKE}" == "x"  ; then
++    if test  "x${MAKE}" = "x"  ; then
+       :
+       { { echo "$as_me:$LINENO: error: package requires GNU make" >&5
+ echo "$as_me: error: package requires GNU make" >&2;}
+@@ -2641,7 +2641,7 @@ echo "${ECHO_T}$as_dir/$ac_word$ac_exec_
+              fi
+            done
+           done
+-          test "x$as_found" == "x" && {
++          test "x$as_found" = "x" && {
+             echo "$as_me:$LINENO: checking for $ac_word" >&5
+ echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+             echo "$as_me:$LINENO: result: no" >&5
+@@ -2726,7 +2726,7 @@ echo "${ECHO_T}$as_dir/$ac_word$ac_exec_
+              fi
+            done
+           done
+-          test "x$as_found" == "x" && {
++          test "x$as_found" = "x" && {
+             echo "$as_me:$LINENO: checking for $ac_word" >&5
+ echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+             echo "$as_me:$LINENO: result: no" >&5
+@@ -2811,7 +2811,7 @@ echo "${ECHO_T}$as_dir/$ac_word$ac_exec_
+              fi
+            done
+           done
+-          test "x$as_found" == "x" && {
++          test "x$as_found" = "x" && {
+             echo "$as_me:$LINENO: checking for $ac_word" >&5
+ echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+             echo "$as_me:$LINENO: result: no" >&5
+@@ -3036,7 +3036,7 @@ echo "${ECHO_T}$as_dir/$ac_word$ac_exec_
+              fi
+            done
+           done
+-          test "x$as_found" == "x" && {
++          test "x$as_found" = "x" && {
+             echo "$as_me:$LINENO: checking for $ac_word" >&5
+ echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+             echo "$as_me:$LINENO: result: no" >&5
+@@ -5808,7 +5808,7 @@ echo "${ECHO_T}$as_dir/$ac_word$ac_exec_
+              fi
+            done
+           done
+-          test "x$as_found" == "x" && {
++          test "x$as_found" = "x" && {
+             echo "$as_me:$LINENO: checking for $ac_word" >&5
+ echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+             echo "$as_me:$LINENO: result: no" >&5
+@@ -5879,7 +5879,7 @@ echo "${ECHO_T}$as_dir/$ac_word$ac_exec_
+              fi
+            done
+           done
+-          test "x$as_found" == "x" && {
++          test "x$as_found" = "x" && {
+             echo "$as_me:$LINENO: checking for $ac_word" >&5
+ echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+             echo "$as_me:$LINENO: result: no" >&5
+@@ -6122,7 +6122,7 @@ echo "${ECHO_T}$as_dir/$ac_word$ac_exec_
+              fi
+            done
+           done
+-          test "x$as_found" == "x" && {
++          test "x$as_found" = "x" && {
+             echo "$as_me:$LINENO: checking for $ac_word" >&5
+ echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+             echo "$as_me:$LINENO: result: no" >&5
+@@ -6241,7 +6241,7 @@ echo "${ECHO_T}$as_dir/$ac_word$ac_exec_
+              fi
+            done
+           done
+-          test "x$as_found" == "x" && {
++          test "x$as_found" = "x" && {
+             echo "$as_me:$LINENO: checking for $ac_word" >&5
+ echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+             echo "$as_me:$LINENO: result: no" >&5
+@@ -6336,7 +6336,7 @@ echo "${ECHO_T}$as_dir/$ac_word$ac_exec_
+              fi
+            done
+           done
+-          test "x$as_found" == "x" && {
++          test "x$as_found" = "x" && {
+             echo "$as_me:$LINENO: checking for $ac_word" >&5
+ echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+             echo "$as_me:$LINENO: result: no" >&5
+@@ -6423,7 +6423,7 @@ echo "${ECHO_T}$as_dir/$ac_word$ac_exec_
+              fi
+            done
+           done
+-          test "x$as_found" == "x" && {
++          test "x$as_found" = "x" && {
+             echo "$as_me:$LINENO: checking for $ac_word" >&5
+ echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+             echo "$as_me:$LINENO: result: no" >&5
+@@ -6733,7 +6733,7 @@ case $LANG_JAVA in
+     ## This variables can be used in antlr/Makefile
+ 
+     file_list="${ANTLR_ACTION_FILES} ${ANTLR_ANTLR_FILES} ${ANTLR_TOKDEF_FILES}"
+-    if test "x${file_list}" == "x" ; then
++    if test "x${file_list}" = "x" ; then
+       :
+     else
+       ANTLR_CONFIG_FILES=""
diff --git a/antlr/patches/patch-lib__cpp__antlr__ANTLRException.hpp b/antlr/patches/patch-lib__cpp__antlr__ANTLRException.hpp
new file mode 100644
index 0000000000..18581d8079
--- /dev/null
+++ b/antlr/patches/patch-lib__cpp__antlr__ANTLRException.hpp
@@ -0,0 +1,14 @@
+$NetBSD$
+
+# Missing header
+
+--- lib/cpp/antlr/ANTLRException.hpp.orig	2006-11-01 21:37:17.000000000 +0000
++++ lib/cpp/antlr/ANTLRException.hpp
+@@ -9,6 +9,7 @@
+  */
+ 
+ #include <antlr/config.hpp>
++#include <exception>
+ #include <string>
+ 
+ #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
diff --git a/antlr/patches/patch-lib_cpp_antlr_CharScanner.hpp b/antlr/patches/patch-lib_cpp_antlr_CharScanner.hpp
new file mode 100644
index 0000000000..ffd966cbc9
--- /dev/null
+++ b/antlr/patches/patch-lib_cpp_antlr_CharScanner.hpp
@@ -0,0 +1,16 @@
+$NetBSD$
+
+# Missing headers
+
+--- lib/cpp/antlr/CharScanner.hpp.orig	2006-11-01 21:37:17.000000000 +0000
++++ lib/cpp/antlr/CharScanner.hpp
+@@ -24,6 +24,9 @@
+ # include <stdio.h>
+ #endif
+ 
++#include <cstdio>
++#include <cstring>
++
+ #include <antlr/TokenStream.hpp>
+ #include <antlr/RecognitionException.hpp>
+ #include <antlr/SemanticException.hpp>


Home | Main Index | Thread Index | Old Index