1 |
commit: 702115967ac548dc07c406f797080d18893ea45a |
2 |
Author: ArsenShnurkov <ArsenShnurkov <AT> users <DOT> noreply <DOT> github <DOT> com> |
3 |
AuthorDate: Tue Jul 25 09:56:49 2017 +0000 |
4 |
Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 25 09:56:49 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=70211596 |
7 |
|
8 |
dev-dotnet/antlr3-runtime |
9 |
|
10 |
.../antlr3-runtime/antlr3-runtime-3.2.ebuild | 69 ++++++++ |
11 |
.../antlr3-runtime/files/Antlr3.Runtime.csproj | 179 +++++++++++++++++++++ |
12 |
.../antlr3-runtime/files/IAstRuleReturnScope`1.cs | 11 ++ |
13 |
dev-dotnet/antlr3-runtime/metadata.xml | 8 + |
14 |
4 files changed, 267 insertions(+) |
15 |
|
16 |
diff --git a/dev-dotnet/antlr3-runtime/antlr3-runtime-3.2.ebuild b/dev-dotnet/antlr3-runtime/antlr3-runtime-3.2.ebuild |
17 |
new file mode 100644 |
18 |
index 0000000..13059e8 |
19 |
--- /dev/null |
20 |
+++ b/dev-dotnet/antlr3-runtime/antlr3-runtime-3.2.ebuild |
21 |
@@ -0,0 +1,69 @@ |
22 |
+# Copyright 1999-2016 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+# $Id$ |
25 |
+ |
26 |
+EAPI=6 |
27 |
+RESTRICT="mirror" |
28 |
+KEYWORDS="~amd64 ~ppc ~x86" |
29 |
+SLOT="0" |
30 |
+ |
31 |
+USE_DOTNET="net45" |
32 |
+IUSE="+${USE_DOTNET} +gac developer debug doc" |
33 |
+ |
34 |
+inherit gac dotnet |
35 |
+ |
36 |
+GITHUB_ACCOUNT="Antlr" |
37 |
+GITHUB_PROJECTNAME="antlr3" |
38 |
+EGIT_COMMIT="5c2a916a10139cdb5c7c8851ee592ed9c3b3d4ff" |
39 |
+SRC_URI="https://github.com/${GITHUB_ACCOUNT}/${GITHUB_PROJECTNAME}/archive/${EGIT_COMMIT}.tar.gz -> ${PN}-${PV}.tar.gz" |
40 |
+S="${WORKDIR}/${GITHUB_PROJECTNAME}-${EGIT_COMMIT}" |
41 |
+ |
42 |
+HOMEPAGE="http://www.antlr.org/" |
43 |
+DESCRIPTION="C# runtime for ANTLR (ANother Tool for Language Recognition)" |
44 |
+LICENSE="BSD" # https://github.com/antlr/antlr3/blob/master/runtime/CSharp2/LICENSE.TXT |
45 |
+ |
46 |
+COMMON_DEPEND=">=dev-lang/mono-5.2.0.196 |
47 |
+" |
48 |
+RDEPEND="${COMMON_DEPEND} |
49 |
+" |
50 |
+DEPEND="${COMMON_DEPEND} |
51 |
+" |
52 |
+ |
53 |
+PROJECT_FILE_DIR="${S}/runtime/CSharp2/Sources/Antlr3.Runtime" |
54 |
+PROJECT_NAME="Antlr3.Runtime" |
55 |
+ |
56 |
+src_prepare() { |
57 |
+ sed -i "s/3.1.3.\*/3.2.0.0/g" "${PROJECT_FILE_DIR}/AssemblyInfo.cs" || die |
58 |
+ cp "${FILESDIR}/${PROJECT_NAME}.csproj" "${PROJECT_FILE_DIR}/" || die |
59 |
+ cp "${FILESDIR}/IAstRuleReturnScope\`1.cs" "${PROJECT_FILE_DIR}/Antlr.Runtime/" || die |
60 |
+ eapply_user |
61 |
+} |
62 |
+ |
63 |
+src_compile() { |
64 |
+ if use debug; then |
65 |
+ CONFIGURATION=Debug |
66 |
+ else |
67 |
+ CONFIGURATION=Release |
68 |
+ fi |
69 |
+ |
70 |
+ if use developer; then |
71 |
+ SARGS=DebugSymbols=True |
72 |
+ else |
73 |
+ SARGS=DebugSymbols=False |
74 |
+ fi |
75 |
+ |
76 |
+ 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" |
77 |
+} |
78 |
+ |
79 |
+src_install() { |
80 |
+ if use debug; then |
81 |
+ CONFIGURATION=Debug |
82 |
+ else |
83 |
+ CONFIGURATION=Release |
84 |
+ fi |
85 |
+ |
86 |
+ DLLNAME="${PROJECT_FILE_DIR}/bin/${CONFIGURATION}/${PROJECT_NAME}.dll" |
87 |
+ sn -R "${DLLNAME}" "${PROJECT_FILE_DIR}/../Antlr3_KeyPair.snk" || die |
88 |
+ egacinstall ${DLLNAME} |
89 |
+ einstall_pc_file "${PN}" "${PV}" "${PROJECT_NAME}" |
90 |
+} |
91 |
|
92 |
diff --git a/dev-dotnet/antlr3-runtime/files/Antlr3.Runtime.csproj b/dev-dotnet/antlr3-runtime/files/Antlr3.Runtime.csproj |
93 |
new file mode 100644 |
94 |
index 0000000..e2d5ffb |
95 |
--- /dev/null |
96 |
+++ b/dev-dotnet/antlr3-runtime/files/Antlr3.Runtime.csproj |
97 |
@@ -0,0 +1,179 @@ |
98 |
+<?xml version="1.0" encoding="utf-8"?> |
99 |
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> |
100 |
+ <PropertyGroup> |
101 |
+ <ProjectType>Local</ProjectType> |
102 |
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
103 |
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
104 |
+ <AssemblyKeyContainerName> |
105 |
+ </AssemblyKeyContainerName> |
106 |
+ <AssemblyName>Antlr3.Runtime</AssemblyName> |
107 |
+ <DefaultClientScript>JScript</DefaultClientScript> |
108 |
+ <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout> |
109 |
+ <DefaultTargetSchema>IE50</DefaultTargetSchema> |
110 |
+ <DelaySign>false</DelaySign> |
111 |
+ <OutputType>Library</OutputType> |
112 |
+ <RootNamespace>Antlr.Runtime</RootNamespace> |
113 |
+ <NoStandardLibraries>false</NoStandardLibraries> |
114 |
+ <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent> |
115 |
+ <FileUpgradeFlags> |
116 |
+ </FileUpgradeFlags> |
117 |
+ <ProjectGuid>{CF15D0D5-BE72-4F98-B70F-229ABA1DF0E8}</ProjectGuid> |
118 |
+ <OldToolsVersion>2.0</OldToolsVersion> |
119 |
+ <UpgradeBackupLocation> |
120 |
+ </UpgradeBackupLocation> |
121 |
+ <UseMSBuildEngine>False</UseMSBuildEngine> |
122 |
+ <SignAssembly>true</SignAssembly> |
123 |
+ <AssemblyOriginatorKeyFile>..\Antlr3_KeyPair.snk</AssemblyOriginatorKeyFile> |
124 |
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> |
125 |
+ </PropertyGroup> |
126 |
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
127 |
+ <OutputPath>bin\Debug</OutputPath> |
128 |
+ <BaseAddress>285212672</BaseAddress> |
129 |
+ <ConfigurationOverrideFile> |
130 |
+ </ConfigurationOverrideFile> |
131 |
+ <DefineConstants>TRACE;DEBUG;STRONG_NAME;DOTNET2</DefineConstants> |
132 |
+ <DocumentationFile>bin\Debug\Antlr3.Runtime.xml</DocumentationFile> |
133 |
+ <DebugSymbols>true</DebugSymbols> |
134 |
+ <FileAlignment>4096</FileAlignment> |
135 |
+ <RegisterForComInterop>false</RegisterForComInterop> |
136 |
+ <RemoveIntegerChecks>false</RemoveIntegerChecks> |
137 |
+ <WarningLevel>4</WarningLevel> |
138 |
+ <DebugType>full</DebugType> |
139 |
+ <ErrorReport>prompt</ErrorReport> |
140 |
+ <Optimize>true</Optimize> |
141 |
+ </PropertyGroup> |
142 |
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
143 |
+ <OutputPath>bin\Release</OutputPath> |
144 |
+ <BaseAddress>285212672</BaseAddress> |
145 |
+ <ConfigurationOverrideFile> |
146 |
+ </ConfigurationOverrideFile> |
147 |
+ <DefineConstants>STRONG_NAME;DOTNET2</DefineConstants> |
148 |
+ <DocumentationFile>bin\Release\Antlr3.Runtime.xml</DocumentationFile> |
149 |
+ <DebugSymbols>true</DebugSymbols> |
150 |
+ <FileAlignment>4096</FileAlignment> |
151 |
+ <RegisterForComInterop>false</RegisterForComInterop> |
152 |
+ <RemoveIntegerChecks>false</RemoveIntegerChecks> |
153 |
+ <WarningLevel>4</WarningLevel> |
154 |
+ <DebugType>full</DebugType> |
155 |
+ <ErrorReport>prompt</ErrorReport> |
156 |
+ <Optimize>true</Optimize> |
157 |
+ </PropertyGroup> |
158 |
+ <ItemGroup> |
159 |
+ <Reference Include="System" /> |
160 |
+ <Reference Include="System.Data" /> |
161 |
+ <Reference Include="System.Xml" /> |
162 |
+ </ItemGroup> |
163 |
+ <ItemGroup> |
164 |
+ <Compile Include="Antlr.Runtime.Debug\DebugEventListenerConstants.cs" /> |
165 |
+ <Compile Include="Antlr.Runtime.JavaExtensions\Check.cs" /> |
166 |
+ <Compile Include="Antlr.Runtime.JavaExtensions\DictionaryExtensions.cs" /> |
167 |
+ <Compile Include="Antlr.Runtime.JavaExtensions\EnumerableExtensions.cs" /> |
168 |
+ <Compile Include="Antlr.Runtime.JavaExtensions\ExceptionExtensions.cs" /> |
169 |
+ <Compile Include="Antlr.Runtime.JavaExtensions\IOExtensions.cs" /> |
170 |
+ <Compile Include="Antlr.Runtime.JavaExtensions\JSystem.cs" /> |
171 |
+ <Compile Include="Antlr.Runtime.JavaExtensions\LexerExtensions.cs" /> |
172 |
+ <Compile Include="Antlr.Runtime.JavaExtensions\StringExtensions.cs" /> |
173 |
+ <Compile Include="Antlr.Runtime.JavaExtensions\StringTokenizer.cs" /> |
174 |
+ <Compile Include="Antlr.Runtime.Misc\DoubleKeyMap.cs" /> |
175 |
+ <Compile Include="Antlr.Runtime.Misc\FastQueue.cs" /> |
176 |
+ <Compile Include="Antlr.Runtime.Misc\LookaheadStream.cs" /> |
177 |
+ <Compile Include="Antlr.Runtime.Tree\BufferedTreeNodeStream.cs" /> |
178 |
+ <Compile Include="Antlr.Runtime.Tree\TreeFilter.cs" /> |
179 |
+ <Compile Include="Antlr.Runtime.Tree\TreeIterator.cs" /> |
180 |
+ <Compile Include="Antlr.Runtime\ANTLRFileStream.cs" /> |
181 |
+ <Compile Include="Antlr.Runtime\ANTLRStringStream.cs" /> |
182 |
+ <Compile Include="Antlr.Runtime\BufferedTokenStream.cs" /> |
183 |
+ <Compile Include="Antlr.Runtime\CharStreamConstants.cs" /> |
184 |
+ <Compile Include="Antlr.Runtime\GrammarRuleAttribute.cs" /> |
185 |
+ <Compile Include="Antlr.Runtime\IAstRuleReturnScope`1.cs" /> |
186 |
+ <Compile Include="Antlr.Runtime\ITokenStreamInformation.cs" /> |
187 |
+ <Compile Include="Antlr.Runtime\LegacyCommonTokenStream.cs" /> |
188 |
+ <Compile Include="Antlr.Runtime\TokenConstants.cs" /> |
189 |
+ <Compile Include="Antlr.Runtime\UnbufferedTokenStream.cs" /> |
190 |
+ <Compile Include="AssemblyInfo.cs" /> |
191 |
+ <Compile Include="Antlr.Runtime\BitSet.cs" /> |
192 |
+ <Compile Include="Antlr.Runtime\ICharStream.cs" /> |
193 |
+ <Compile Include="Antlr.Runtime\CharStreamState.cs" /> |
194 |
+ <Compile Include="Antlr.Runtime\ClassicToken.cs" /> |
195 |
+ <Compile Include="Antlr.Runtime\CommonToken.cs" /> |
196 |
+ <Compile Include="Antlr.Runtime\DFA.cs" /> |
197 |
+ <Compile Include="Antlr.Runtime\EarlyExitException.cs" /> |
198 |
+ <Compile Include="Antlr.Runtime\FailedPredicateException.cs" /> |
199 |
+ <Compile Include="Antlr.Runtime\IIntStream.cs" /> |
200 |
+ <Compile Include="Antlr.Runtime\MismatchedNotSetException.cs" /> |
201 |
+ <Compile Include="Antlr.Runtime\MismatchedRangeException.cs" /> |
202 |
+ <Compile Include="Antlr.Runtime\MismatchedSetException.cs" /> |
203 |
+ <Compile Include="Antlr.Runtime\MismatchedTokenException.cs" /> |
204 |
+ <Compile Include="Antlr.Runtime\MismatchedTreeNodeException.cs" /> |
205 |
+ <Compile Include="Antlr.Runtime\NoViableAltException.cs" /> |
206 |
+ <Compile Include="Antlr.Runtime\Parser.cs" /> |
207 |
+ <Compile Include="Antlr.Runtime\ParserRuleReturnScope.cs" /> |
208 |
+ <Compile Include="Antlr.Runtime\RecognitionException.cs" /> |
209 |
+ <Compile Include="Antlr.Runtime\RuleReturnScope.cs" /> |
210 |
+ <Compile Include="Antlr.Runtime\ITokenSource.cs" /> |
211 |
+ <Compile Include="Antlr.Runtime\MissingTokenException.cs" /> |
212 |
+ <Compile Include="Antlr.Runtime.Tree\CommonErrorNode.cs" /> |
213 |
+ <Compile Include="Antlr.Runtime\UnwantedTokenException.cs" /> |
214 |
+ <Compile Include="Antlr.Runtime.Collections\HashList.cs" /> |
215 |
+ <Compile Include="Antlr.Runtime.Collections\StackList.cs" /> |
216 |
+ <Compile Include="Antlr.Runtime.Tree\BaseTree.cs" /> |
217 |
+ <Compile Include="Antlr.Runtime.Tree\BaseTreeAdaptor.cs" /> |
218 |
+ <Compile Include="Antlr.Runtime.Tree\CommonTree.cs" /> |
219 |
+ <Compile Include="Antlr.Runtime.Tree\CommonTreeAdaptor.cs" /> |
220 |
+ <Compile Include="Antlr.Runtime.Tree\CommonTreeNodeStream.cs" /> |
221 |
+ <Compile Include="Antlr.Runtime.Tree\ITree.cs" /> |
222 |
+ <Compile Include="Antlr.Runtime.Tree\ITreeAdaptor.cs" /> |
223 |
+ <Compile Include="Antlr.Runtime.Tree\ITreeNodeStream.cs" /> |
224 |
+ <Compile Include="Antlr.Runtime.Tree\ParseTree.cs" /> |
225 |
+ <Compile Include="Antlr.Runtime.Tree\TreeParser.cs" /> |
226 |
+ <Compile Include="Antlr.Runtime.Tree\TreeRuleReturnScope.cs" /> |
227 |
+ <Compile Include="Antlr.Runtime.Debug\DebugEventSocketProxy.cs" /> |
228 |
+ <Compile Include="Antlr.Runtime.Debug\DebugParser.cs" /> |
229 |
+ <Compile Include="Antlr.Runtime.Debug\DebugTokenStream.cs" /> |
230 |
+ <Compile Include="Antlr.Runtime.Debug\IDebugEventListener.cs" /> |
231 |
+ <Compile Include="Antlr.Runtime.Debug\DebugTreeAdaptor.cs" /> |
232 |
+ <Compile Include="Antlr.Runtime\Constants.cs" /> |
233 |
+ <Compile Include="Antlr.Runtime.Debug\DebugTreeNodeStream.cs" /> |
234 |
+ <Compile Include="Antlr.Runtime.Debug\BlankDebugEventListener.cs" /> |
235 |
+ <Compile Include="Antlr.Runtime.Debug\RemoteDebugEventSocketListener.cs" /> |
236 |
+ <Compile Include="Antlr.Runtime.Debug\TraceDebugEventListener.cs" /> |
237 |
+ <Compile Include="Antlr.Runtime.Debug\DebugEventHub.cs" /> |
238 |
+ <Compile Include="Antlr.Runtime.Debug\DebugEventRepeater.cs" /> |
239 |
+ <Compile Include="Antlr.Runtime.Debug\DebugTreeParser.cs" /> |
240 |
+ <Compile Include="Antlr.Runtime.Debug\ParseTreeBuilder.cs" /> |
241 |
+ <Compile Include="Antlr.Runtime.Debug\Profiler.cs" /> |
242 |
+ <Compile Include="Antlr.Runtime.Debug\Tracer.cs" /> |
243 |
+ <Compile Include="Antlr.Runtime.Misc\Stats.cs" /> |
244 |
+ <Compile Include="Antlr.Runtime.Misc\ErrorManager.cs" /> |
245 |
+ <Compile Include="Antlr.Runtime.Tree\TreeWizard.cs" /> |
246 |
+ <Compile Include="Antlr.Runtime.Tree\TreePatternLexer.cs" /> |
247 |
+ <Compile Include="Antlr.Runtime.Tree\RewriteRuleNodeStream.cs" /> |
248 |
+ <Compile Include="Antlr.Runtime.Tree\TreePatternParser.cs" /> |
249 |
+ <Compile Include="Antlr.Runtime.Tree\RewriteCardinalityException.cs" /> |
250 |
+ <Compile Include="Antlr.Runtime.Tree\RewriteEarlyExitException.cs" /> |
251 |
+ <Compile Include="Antlr.Runtime.Tree\RewriteEmptyStreamException.cs" /> |
252 |
+ <Compile Include="Antlr.Runtime.Tree\RewriteRuleElementStream.cs" /> |
253 |
+ <Compile Include="Antlr.Runtime.Tree\RewriteRuleSubtreeStream.cs" /> |
254 |
+ <Compile Include="Antlr.Runtime.Tree\RewriteRuleTokenStream.cs" /> |
255 |
+ <Compile Include="Antlr.Runtime\ANTLRInputStream.cs" /> |
256 |
+ <Compile Include="Antlr.Runtime\ANTLRReaderStream.cs" /> |
257 |
+ <Compile Include="Antlr.Runtime\BaseRecognizer.cs" /> |
258 |
+ <Compile Include="Antlr.Runtime\CommonTokenStream.cs" /> |
259 |
+ <Compile Include="Antlr.Runtime\RecognizerSharedState.cs" /> |
260 |
+ <Compile Include="Antlr.Runtime\IToken.cs" /> |
261 |
+ <Compile Include="Antlr.Runtime\ITokenStream.cs" /> |
262 |
+ <Compile Include="Antlr.Runtime\Lexer.cs" /> |
263 |
+ <Compile Include="Antlr.Runtime\TokenRewriteStream.cs" /> |
264 |
+ <Compile Include="Antlr.Runtime.Tree\ITreeVisitorAction.cs" /> |
265 |
+ <Compile Include="Antlr.Runtime.Tree\TreeVisitor.cs" /> |
266 |
+ </ItemGroup> |
267 |
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
268 |
+ <PropertyGroup> |
269 |
+ <PreBuildEvent> |
270 |
+ </PreBuildEvent> |
271 |
+ <PostBuildEvent> |
272 |
+ </PostBuildEvent> |
273 |
+ <ProjectGuid>{CF15D0D5-BE72-4F98-B70F-229ABA1DF0E8}</ProjectGuid> |
274 |
+ <RootNamespace>Antlr.Runtime</RootNamespace> |
275 |
+ </PropertyGroup> |
276 |
+</Project> |
277 |
\ No newline at end of file |
278 |
|
279 |
diff --git a/dev-dotnet/antlr3-runtime/files/IAstRuleReturnScope`1.cs b/dev-dotnet/antlr3-runtime/files/IAstRuleReturnScope`1.cs |
280 |
new file mode 100644 |
281 |
index 0000000..725a300 |
282 |
--- /dev/null |
283 |
+++ b/dev-dotnet/antlr3-runtime/files/IAstRuleReturnScope`1.cs |
284 |
@@ -0,0 +1,11 @@ |
285 |
+namespace Antlr.Runtime |
286 |
+{ |
287 |
+ /** <summary>AST rules have trees</summary> */ |
288 |
+ public interface IAstRuleReturnScope<TAstLabel> |
289 |
+ { |
290 |
+ /** <summary>Has a value potentially if output=AST;</summary> */ |
291 |
+ TAstLabel Tree { |
292 |
+ get; |
293 |
+ } |
294 |
+ } |
295 |
+} |
296 |
|
297 |
diff --git a/dev-dotnet/antlr3-runtime/metadata.xml b/dev-dotnet/antlr3-runtime/metadata.xml |
298 |
new file mode 100644 |
299 |
index 0000000..60328c2 |
300 |
--- /dev/null |
301 |
+++ b/dev-dotnet/antlr3-runtime/metadata.xml |
302 |
@@ -0,0 +1,8 @@ |
303 |
+<?xml version="1.0" encoding="UTF-8"?> |
304 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
305 |
+<pkgmetadata> |
306 |
+ <maintainer type="project"> |
307 |
+ <email>dotnet@g.o</email> |
308 |
+ <description>Gentoo Dotnet Project</description> |
309 |
+ </maintainer> |
310 |
+</pkgmetadata> |