* [gentoo-commits] proj/dotnet:master commit in: dev-dotnet/antlr3-runtime/files/, dev-dotnet/antlr3-runtime/
@ 2017-08-03 7:57 Mikhail Pukhlikov
0 siblings, 0 replies; only message in thread
From: Mikhail Pukhlikov @ 2017-08-03 7:57 UTC (permalink / raw
To: gentoo-commits
commit: 702115967ac548dc07c406f797080d18893ea45a
Author: ArsenShnurkov <ArsenShnurkov <AT> users <DOT> noreply <DOT> github <DOT> com>
AuthorDate: Tue Jul 25 09:56:49 2017 +0000
Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org>
CommitDate: Tue Jul 25 09:56:49 2017 +0000
URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=70211596
dev-dotnet/antlr3-runtime
.../antlr3-runtime/antlr3-runtime-3.2.ebuild | 69 ++++++++
.../antlr3-runtime/files/Antlr3.Runtime.csproj | 179 +++++++++++++++++++++
.../antlr3-runtime/files/IAstRuleReturnScope`1.cs | 11 ++
dev-dotnet/antlr3-runtime/metadata.xml | 8 +
4 files changed, 267 insertions(+)
diff --git a/dev-dotnet/antlr3-runtime/antlr3-runtime-3.2.ebuild b/dev-dotnet/antlr3-runtime/antlr3-runtime-3.2.ebuild
new file mode 100644
index 0000000..13059e8
--- /dev/null
+++ b/dev-dotnet/antlr3-runtime/antlr3-runtime-3.2.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+RESTRICT="mirror"
+KEYWORDS="~amd64 ~ppc ~x86"
+SLOT="0"
+
+USE_DOTNET="net45"
+IUSE="+${USE_DOTNET} +gac developer debug doc"
+
+inherit gac dotnet
+
+GITHUB_ACCOUNT="Antlr"
+GITHUB_PROJECTNAME="antlr3"
+EGIT_COMMIT="5c2a916a10139cdb5c7c8851ee592ed9c3b3d4ff"
+SRC_URI="https://github.com/${GITHUB_ACCOUNT}/${GITHUB_PROJECTNAME}/archive/${EGIT_COMMIT}.tar.gz -> ${PN}-${PV}.tar.gz"
+S="${WORKDIR}/${GITHUB_PROJECTNAME}-${EGIT_COMMIT}"
+
+HOMEPAGE="http://www.antlr.org/"
+DESCRIPTION="C# runtime for ANTLR (ANother Tool for Language Recognition)"
+LICENSE="BSD" # https://github.com/antlr/antlr3/blob/master/runtime/CSharp2/LICENSE.TXT
+
+COMMON_DEPEND=">=dev-lang/mono-5.2.0.196
+"
+RDEPEND="${COMMON_DEPEND}
+"
+DEPEND="${COMMON_DEPEND}
+"
+
+PROJECT_FILE_DIR="${S}/runtime/CSharp2/Sources/Antlr3.Runtime"
+PROJECT_NAME="Antlr3.Runtime"
+
+src_prepare() {
+ sed -i "s/3.1.3.\*/3.2.0.0/g" "${PROJECT_FILE_DIR}/AssemblyInfo.cs" || die
+ cp "${FILESDIR}/${PROJECT_NAME}.csproj" "${PROJECT_FILE_DIR}/" || die
+ cp "${FILESDIR}/IAstRuleReturnScope\`1.cs" "${PROJECT_FILE_DIR}/Antlr.Runtime/" || die
+ eapply_user
+}
+
+src_compile() {
+ if use debug; then
+ CONFIGURATION=Debug
+ else
+ CONFIGURATION=Release
+ fi
+
+ if use developer; then
+ SARGS=DebugSymbols=True
+ else
+ SARGS=DebugSymbols=False
+ fi
+
+ exbuild_raw /v:detailed /p:TargetFrameworkVersion=v4.5 "/p:Configuration=${CONFIGURATION}" /p:${SARGS} /p:VersionNumber=3.2 "/p:RootPath=${S}" "${PROJECT_FILE_DIR}/${PROJECT_NAME}.csproj"
+}
+
+src_install() {
+ if use debug; then
+ CONFIGURATION=Debug
+ else
+ CONFIGURATION=Release
+ fi
+
+ DLLNAME="${PROJECT_FILE_DIR}/bin/${CONFIGURATION}/${PROJECT_NAME}.dll"
+ sn -R "${DLLNAME}" "${PROJECT_FILE_DIR}/../Antlr3_KeyPair.snk" || die
+ egacinstall ${DLLNAME}
+ einstall_pc_file "${PN}" "${PV}" "${PROJECT_NAME}"
+}
diff --git a/dev-dotnet/antlr3-runtime/files/Antlr3.Runtime.csproj b/dev-dotnet/antlr3-runtime/files/Antlr3.Runtime.csproj
new file mode 100644
index 0000000..e2d5ffb
--- /dev/null
+++ b/dev-dotnet/antlr3-runtime/files/Antlr3.Runtime.csproj
@@ -0,0 +1,179 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
+ <PropertyGroup>
+ <ProjectType>Local</ProjectType>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <AssemblyKeyContainerName>
+ </AssemblyKeyContainerName>
+ <AssemblyName>Antlr3.Runtime</AssemblyName>
+ <DefaultClientScript>JScript</DefaultClientScript>
+ <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
+ <DefaultTargetSchema>IE50</DefaultTargetSchema>
+ <DelaySign>false</DelaySign>
+ <OutputType>Library</OutputType>
+ <RootNamespace>Antlr.Runtime</RootNamespace>
+ <NoStandardLibraries>false</NoStandardLibraries>
+ <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
+ <FileUpgradeFlags>
+ </FileUpgradeFlags>
+ <ProjectGuid>{CF15D0D5-BE72-4F98-B70F-229ABA1DF0E8}</ProjectGuid>
+ <OldToolsVersion>2.0</OldToolsVersion>
+ <UpgradeBackupLocation>
+ </UpgradeBackupLocation>
+ <UseMSBuildEngine>False</UseMSBuildEngine>
+ <SignAssembly>true</SignAssembly>
+ <AssemblyOriginatorKeyFile>..\Antlr3_KeyPair.snk</AssemblyOriginatorKeyFile>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <OutputPath>bin\Debug</OutputPath>
+ <BaseAddress>285212672</BaseAddress>
+ <ConfigurationOverrideFile>
+ </ConfigurationOverrideFile>
+ <DefineConstants>TRACE;DEBUG;STRONG_NAME;DOTNET2</DefineConstants>
+ <DocumentationFile>bin\Debug\Antlr3.Runtime.xml</DocumentationFile>
+ <DebugSymbols>true</DebugSymbols>
+ <FileAlignment>4096</FileAlignment>
+ <RegisterForComInterop>false</RegisterForComInterop>
+ <RemoveIntegerChecks>false</RemoveIntegerChecks>
+ <WarningLevel>4</WarningLevel>
+ <DebugType>full</DebugType>
+ <ErrorReport>prompt</ErrorReport>
+ <Optimize>true</Optimize>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <OutputPath>bin\Release</OutputPath>
+ <BaseAddress>285212672</BaseAddress>
+ <ConfigurationOverrideFile>
+ </ConfigurationOverrideFile>
+ <DefineConstants>STRONG_NAME;DOTNET2</DefineConstants>
+ <DocumentationFile>bin\Release\Antlr3.Runtime.xml</DocumentationFile>
+ <DebugSymbols>true</DebugSymbols>
+ <FileAlignment>4096</FileAlignment>
+ <RegisterForComInterop>false</RegisterForComInterop>
+ <RemoveIntegerChecks>false</RemoveIntegerChecks>
+ <WarningLevel>4</WarningLevel>
+ <DebugType>full</DebugType>
+ <ErrorReport>prompt</ErrorReport>
+ <Optimize>true</Optimize>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Antlr.Runtime.Debug\DebugEventListenerConstants.cs" />
+ <Compile Include="Antlr.Runtime.JavaExtensions\Check.cs" />
+ <Compile Include="Antlr.Runtime.JavaExtensions\DictionaryExtensions.cs" />
+ <Compile Include="Antlr.Runtime.JavaExtensions\EnumerableExtensions.cs" />
+ <Compile Include="Antlr.Runtime.JavaExtensions\ExceptionExtensions.cs" />
+ <Compile Include="Antlr.Runtime.JavaExtensions\IOExtensions.cs" />
+ <Compile Include="Antlr.Runtime.JavaExtensions\JSystem.cs" />
+ <Compile Include="Antlr.Runtime.JavaExtensions\LexerExtensions.cs" />
+ <Compile Include="Antlr.Runtime.JavaExtensions\StringExtensions.cs" />
+ <Compile Include="Antlr.Runtime.JavaExtensions\StringTokenizer.cs" />
+ <Compile Include="Antlr.Runtime.Misc\DoubleKeyMap.cs" />
+ <Compile Include="Antlr.Runtime.Misc\FastQueue.cs" />
+ <Compile Include="Antlr.Runtime.Misc\LookaheadStream.cs" />
+ <Compile Include="Antlr.Runtime.Tree\BufferedTreeNodeStream.cs" />
+ <Compile Include="Antlr.Runtime.Tree\TreeFilter.cs" />
+ <Compile Include="Antlr.Runtime.Tree\TreeIterator.cs" />
+ <Compile Include="Antlr.Runtime\ANTLRFileStream.cs" />
+ <Compile Include="Antlr.Runtime\ANTLRStringStream.cs" />
+ <Compile Include="Antlr.Runtime\BufferedTokenStream.cs" />
+ <Compile Include="Antlr.Runtime\CharStreamConstants.cs" />
+ <Compile Include="Antlr.Runtime\GrammarRuleAttribute.cs" />
+ <Compile Include="Antlr.Runtime\IAstRuleReturnScope`1.cs" />
+ <Compile Include="Antlr.Runtime\ITokenStreamInformation.cs" />
+ <Compile Include="Antlr.Runtime\LegacyCommonTokenStream.cs" />
+ <Compile Include="Antlr.Runtime\TokenConstants.cs" />
+ <Compile Include="Antlr.Runtime\UnbufferedTokenStream.cs" />
+ <Compile Include="AssemblyInfo.cs" />
+ <Compile Include="Antlr.Runtime\BitSet.cs" />
+ <Compile Include="Antlr.Runtime\ICharStream.cs" />
+ <Compile Include="Antlr.Runtime\CharStreamState.cs" />
+ <Compile Include="Antlr.Runtime\ClassicToken.cs" />
+ <Compile Include="Antlr.Runtime\CommonToken.cs" />
+ <Compile Include="Antlr.Runtime\DFA.cs" />
+ <Compile Include="Antlr.Runtime\EarlyExitException.cs" />
+ <Compile Include="Antlr.Runtime\FailedPredicateException.cs" />
+ <Compile Include="Antlr.Runtime\IIntStream.cs" />
+ <Compile Include="Antlr.Runtime\MismatchedNotSetException.cs" />
+ <Compile Include="Antlr.Runtime\MismatchedRangeException.cs" />
+ <Compile Include="Antlr.Runtime\MismatchedSetException.cs" />
+ <Compile Include="Antlr.Runtime\MismatchedTokenException.cs" />
+ <Compile Include="Antlr.Runtime\MismatchedTreeNodeException.cs" />
+ <Compile Include="Antlr.Runtime\NoViableAltException.cs" />
+ <Compile Include="Antlr.Runtime\Parser.cs" />
+ <Compile Include="Antlr.Runtime\ParserRuleReturnScope.cs" />
+ <Compile Include="Antlr.Runtime\RecognitionException.cs" />
+ <Compile Include="Antlr.Runtime\RuleReturnScope.cs" />
+ <Compile Include="Antlr.Runtime\ITokenSource.cs" />
+ <Compile Include="Antlr.Runtime\MissingTokenException.cs" />
+ <Compile Include="Antlr.Runtime.Tree\CommonErrorNode.cs" />
+ <Compile Include="Antlr.Runtime\UnwantedTokenException.cs" />
+ <Compile Include="Antlr.Runtime.Collections\HashList.cs" />
+ <Compile Include="Antlr.Runtime.Collections\StackList.cs" />
+ <Compile Include="Antlr.Runtime.Tree\BaseTree.cs" />
+ <Compile Include="Antlr.Runtime.Tree\BaseTreeAdaptor.cs" />
+ <Compile Include="Antlr.Runtime.Tree\CommonTree.cs" />
+ <Compile Include="Antlr.Runtime.Tree\CommonTreeAdaptor.cs" />
+ <Compile Include="Antlr.Runtime.Tree\CommonTreeNodeStream.cs" />
+ <Compile Include="Antlr.Runtime.Tree\ITree.cs" />
+ <Compile Include="Antlr.Runtime.Tree\ITreeAdaptor.cs" />
+ <Compile Include="Antlr.Runtime.Tree\ITreeNodeStream.cs" />
+ <Compile Include="Antlr.Runtime.Tree\ParseTree.cs" />
+ <Compile Include="Antlr.Runtime.Tree\TreeParser.cs" />
+ <Compile Include="Antlr.Runtime.Tree\TreeRuleReturnScope.cs" />
+ <Compile Include="Antlr.Runtime.Debug\DebugEventSocketProxy.cs" />
+ <Compile Include="Antlr.Runtime.Debug\DebugParser.cs" />
+ <Compile Include="Antlr.Runtime.Debug\DebugTokenStream.cs" />
+ <Compile Include="Antlr.Runtime.Debug\IDebugEventListener.cs" />
+ <Compile Include="Antlr.Runtime.Debug\DebugTreeAdaptor.cs" />
+ <Compile Include="Antlr.Runtime\Constants.cs" />
+ <Compile Include="Antlr.Runtime.Debug\DebugTreeNodeStream.cs" />
+ <Compile Include="Antlr.Runtime.Debug\BlankDebugEventListener.cs" />
+ <Compile Include="Antlr.Runtime.Debug\RemoteDebugEventSocketListener.cs" />
+ <Compile Include="Antlr.Runtime.Debug\TraceDebugEventListener.cs" />
+ <Compile Include="Antlr.Runtime.Debug\DebugEventHub.cs" />
+ <Compile Include="Antlr.Runtime.Debug\DebugEventRepeater.cs" />
+ <Compile Include="Antlr.Runtime.Debug\DebugTreeParser.cs" />
+ <Compile Include="Antlr.Runtime.Debug\ParseTreeBuilder.cs" />
+ <Compile Include="Antlr.Runtime.Debug\Profiler.cs" />
+ <Compile Include="Antlr.Runtime.Debug\Tracer.cs" />
+ <Compile Include="Antlr.Runtime.Misc\Stats.cs" />
+ <Compile Include="Antlr.Runtime.Misc\ErrorManager.cs" />
+ <Compile Include="Antlr.Runtime.Tree\TreeWizard.cs" />
+ <Compile Include="Antlr.Runtime.Tree\TreePatternLexer.cs" />
+ <Compile Include="Antlr.Runtime.Tree\RewriteRuleNodeStream.cs" />
+ <Compile Include="Antlr.Runtime.Tree\TreePatternParser.cs" />
+ <Compile Include="Antlr.Runtime.Tree\RewriteCardinalityException.cs" />
+ <Compile Include="Antlr.Runtime.Tree\RewriteEarlyExitException.cs" />
+ <Compile Include="Antlr.Runtime.Tree\RewriteEmptyStreamException.cs" />
+ <Compile Include="Antlr.Runtime.Tree\RewriteRuleElementStream.cs" />
+ <Compile Include="Antlr.Runtime.Tree\RewriteRuleSubtreeStream.cs" />
+ <Compile Include="Antlr.Runtime.Tree\RewriteRuleTokenStream.cs" />
+ <Compile Include="Antlr.Runtime\ANTLRInputStream.cs" />
+ <Compile Include="Antlr.Runtime\ANTLRReaderStream.cs" />
+ <Compile Include="Antlr.Runtime\BaseRecognizer.cs" />
+ <Compile Include="Antlr.Runtime\CommonTokenStream.cs" />
+ <Compile Include="Antlr.Runtime\RecognizerSharedState.cs" />
+ <Compile Include="Antlr.Runtime\IToken.cs" />
+ <Compile Include="Antlr.Runtime\ITokenStream.cs" />
+ <Compile Include="Antlr.Runtime\Lexer.cs" />
+ <Compile Include="Antlr.Runtime\TokenRewriteStream.cs" />
+ <Compile Include="Antlr.Runtime.Tree\ITreeVisitorAction.cs" />
+ <Compile Include="Antlr.Runtime.Tree\TreeVisitor.cs" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <PropertyGroup>
+ <PreBuildEvent>
+ </PreBuildEvent>
+ <PostBuildEvent>
+ </PostBuildEvent>
+ <ProjectGuid>{CF15D0D5-BE72-4F98-B70F-229ABA1DF0E8}</ProjectGuid>
+ <RootNamespace>Antlr.Runtime</RootNamespace>
+ </PropertyGroup>
+</Project>
\ No newline at end of file
diff --git a/dev-dotnet/antlr3-runtime/files/IAstRuleReturnScope`1.cs b/dev-dotnet/antlr3-runtime/files/IAstRuleReturnScope`1.cs
new file mode 100644
index 0000000..725a300
--- /dev/null
+++ b/dev-dotnet/antlr3-runtime/files/IAstRuleReturnScope`1.cs
@@ -0,0 +1,11 @@
+namespace Antlr.Runtime
+{
+ /** <summary>AST rules have trees</summary> */
+ public interface IAstRuleReturnScope<TAstLabel>
+ {
+ /** <summary>Has a value potentially if output=AST;</summary> */
+ TAstLabel Tree {
+ get;
+ }
+ }
+}
diff --git a/dev-dotnet/antlr3-runtime/metadata.xml b/dev-dotnet/antlr3-runtime/metadata.xml
new file mode 100644
index 0000000..60328c2
--- /dev/null
+++ b/dev-dotnet/antlr3-runtime/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>dotnet@gentoo.org</email>
+ <description>Gentoo Dotnet Project</description>
+ </maintainer>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-08-03 7:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-03 7:57 [gentoo-commits] proj/dotnet:master commit in: dev-dotnet/antlr3-runtime/files/, dev-dotnet/antlr3-runtime/ Mikhail Pukhlikov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox