pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
antlr: package restored, removed RMD160 signature, removed files/ as the script included wasn't getting packaged, removed TODO about testing - have been using this package for long.
Module Name: pkgsrc-wip
Committed By: mayuresh <mayuresh%acm.org@localhost>
Pushed By: mayuresh
Date: Tue Sep 17 18:34:03 2024 +0530
Changeset: 95efc0725ceb4c9ded9fc9aa343be8294a422202
Added Files:
antlr/DESCR
antlr/Makefile
antlr/PLIST
antlr/buildlink3.mk
antlr/distinfo
antlr/patches/patch-configure
antlr/patches/patch-lib__cpp__antlr__ANTLRException.hpp
antlr/patches/patch-lib_cpp_antlr_CharScanner.hpp
Log Message:
antlr: package restored, removed RMD160 signature, removed files/ as the script
included wasn't getting packaged, removed TODO about testing - have been using
this package for long.
This is a legacy parser generator, not maintained upstream. However its newer
versions are not backward compatible. Hence some dependent packages require
keeping this alive.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=95efc0725ceb4c9ded9fc9aa343be8294a422202
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
antlr/DESCR | 4 +
antlr/Makefile | 108 ++++++++++++++
antlr/PLIST | 81 ++++++++++
antlr/buildlink3.mk | 12 ++
antlr/distinfo | 8 +
antlr/patches/patch-configure | 166 +++++++++++++++++++++
.../patch-lib__cpp__antlr__ANTLRException.hpp | 14 ++
antlr/patches/patch-lib_cpp_antlr_CharScanner.hpp | 16 ++
8 files changed, 409 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/Makefile b/antlr/Makefile
new file mode 100644
index 0000000000..cd6217df97
--- /dev/null
+++ b/antlr/Makefile
@@ -0,0 +1,108 @@
+# $NetBSD$
+
+###########################################################
+# Generated by fbsd2pkg #
+###########################################################
+
+###########################################################
+# Unconverted and partially converted FreeBSD port syntax:
+
+#CONFLICTS= pccts-[0-9]*
+#USE_JAVA= yes
+#JAVA_VERSION= 1.6+
+#PORT_CLASSPATH= ${WRKSRC}/antlrall.jar:.
+#SUB_FILES= antlr.sh
+#OPTIONS_DEFINE= PYTHON DOCS
+#OPTIONS_SUB= yes
+#.if ${PORT_OPTIONS:MPYTHON}
+# Unknown tool: USE_TOOLS= python
+#PORTDOCS+= python-runtime.html
+#ANTLR_PYTHON= ${WRKSRC}/lib/python
+#.endif
+#post-configure:
+#.if ${PORT_OPTIONS:MPYTHON}
+# (cd ${ANTLR_PYTHON} && ${PYTHON_CMD} setup.py config)
+#.endif
+#.if defined(WITH_BUILT_JAVA_LIB)
+#pre-build:
+# (cd ${WRKSRC} && ${JAVA} -classpath "${PORT_CLASSPATH}" antlr.build.Tool build)
+# (cd ${WRKSRC} && ${JAVA} -classpath "${PORT_CLASSPATH}" antlr.build.Tool jar)
+#.endif
+#.if ${PORT_OPTIONS:MPYTHON}
+#post-build:
+# (cd ${ANTLR_PYTHON} && ${PYTHON_CMD} setup.py build && \
+# ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${ANTLR_PYTHON})
+#.endif
+#.if ${PORT_OPTIONS:MPYTHON}
+# @(cd ${ANTLR_PYTHON} && ${PYTHON_CMD} setup.py install --root=${DESTDIR})
+#.endif
+
+DISTNAME= antlr-${PORTVERSION}
+CATEGORIES= devel
+MASTER_SITES= http://www.antlr2.org/download/
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://www.antlr2.org/
+
+COMMENT= ANother Tool for Language Recognition
+LICENSE= public-domain
+
+HAS_CONFIGURE= yes
+# Needs java and javac or gcj?
+# On CentOS, yum install java-1.7.0-openjdk-devel.x86_64 or similar
+# pkgsrc openjdk package does not build on Linux
+# FIXME: Add a check here to notify users trying to install
+USE_JAVA= yes
+
+CHECK_PORTABILITY_SKIP= configure.in
+
+# Just assuming C and C++: Adjust this!
+USE_LANGUAGES= c c++
+USE_TOOLS+= gmake
+
+CONFIGURE_ENV= JAVAC="${JAVAC}" JAR="${JAR}" JAVA="${JAVA}" CLASSPATH="${PORT_CLASSPATH}"
+
+CONFIGURE_ARGS= --disable-csharp --prefix=${PREFIX}
+
+CFLAGS.Linux+= -fPIC
+
+PORTVERSION= 2.7.7
+DOCSDIR= ${PREFIX}/share/doc/antlr
+PORTDOCS= ANTLRException.gif closure.gif cpp-runtime.html \
+ csharp-runtime.html err.html glossary.html hidden.stream.gif \
+ index.html inheritance.html j-guru-blue.jpg jguru-logo.gif \
+ lexer.html lexer.to.parser.tokens.gif logo.gif metalang.html \
+ optional.gif options.html posclosure.gif runtime.html sor.html \
+ stream.perspectives.gif stream.selector.gif \
+ stream.splitter.gif streams.html subrule.gif trees.html \
+ vocab.html
+
+# /usr/ports/Mk/bsd/java.mk
+JAVAJARDIR= ${PREFIX}/share/java/classes
+JAVA_VERSION= 1.6
+
+# Hack to simulate FreeBSD's SUB feature. Is there a canonical way to handle
+# this in pkgsrc?
+SUBST_CLASSES+= sh
+SUBST_FILES.sh= ${WRKDIR}/antlr.sh
+SUBST_STAGE.sh= pre-configure
+SUBST_SED.sh= -e 's|%%JAVA_VERSION%%|${JAVA_VERSION}|'
+SUBST_SED.sh+= -e 's|%%LOCALBASE%%/bin/java|java|'
+SUBST_SED.sh+= -e 's|%%JAVAJARDIR%%|${JAVAJARDIR}|'
+
+INSTALLATION_DIRS= ${JAVAJARDIR} bin include/antlr lib ${DOCSDIR}
+
+post-extract:
+ (cd ${WRKSRC} && ${CP} antlr.jar antlrall.jar)
+ cp ${FILESDIR}/antlr.sh.in ${WRKDIR}/antlr.sh
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/antlr.jar ${DESTDIR}${JAVAJARDIR}
+ ${INSTALL_SCRIPT} ${WRKDIR}/antlr.sh ${DESTDIR}${PREFIX}/bin/antlr
+ ${INSTALL_DATA} ${WRKSRC}/lib/cpp/antlr/*.hpp \
+ ${DESTDIR}${PREFIX}/include/antlr
+ ${INSTALL_DATA} ${WRKSRC}/lib/cpp/src/libantlr.a ${DESTDIR}${PREFIX}/lib
+ (cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${DESTDIR}${DOCSDIR})
+
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"
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/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..0def5715dc
--- /dev/null
+++ b/antlr/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+BLAKE2s (antlr-2.7.7.tar.gz) = fcb45a208367b2a903e11dfe44d9bf4bed112dad2dc856347aad08c48783c50e
+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/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