1 |
commit: 788cdc40c78af8825c368a804bc018a6ad47779a |
2 |
Author: ArsenShnurkov <ArsenShnurkov <AT> users <DOT> noreply <DOT> github <DOT> com> |
3 |
AuthorDate: Fri Oct 27 02:05:21 2017 +0000 |
4 |
Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 27 02:05:21 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=788cdc40 |
7 |
|
8 |
fixes |
9 |
|
10 |
.../antlr3-runtime/antlr3-runtime-3.2.ebuild | 69 -------------- |
11 |
.../antlr3-runtime-3.5.2_beta1_p2017080216.ebuild | 85 +++++++++++++++++ |
12 |
.../antlr3-runtime/files/old-Antlr3.Runtime.csproj | 44 +++++++++ |
13 |
.../antlrcs/antlrcs-3.5.2_beta1_p2017080216.ebuild | 101 +++++++++++++++++++++ |
14 |
dev-util/antlrcs/antlrcs-3.5.2_beta1_p6.ebuild | 74 --------------- |
15 |
dev-util/antlrcs/files/Antlr3.props | 13 +++ |
16 |
6 files changed, 243 insertions(+), 143 deletions(-) |
17 |
|
18 |
diff --git a/dev-dotnet/antlr3-runtime/antlr3-runtime-3.2.ebuild b/dev-dotnet/antlr3-runtime/antlr3-runtime-3.2.ebuild |
19 |
deleted file mode 100644 |
20 |
index 13059e8..0000000 |
21 |
--- a/dev-dotnet/antlr3-runtime/antlr3-runtime-3.2.ebuild |
22 |
+++ /dev/null |
23 |
@@ -1,69 +0,0 @@ |
24 |
-# Copyright 1999-2016 Gentoo Foundation |
25 |
-# Distributed under the terms of the GNU General Public License v2 |
26 |
-# $Id$ |
27 |
- |
28 |
-EAPI=6 |
29 |
-RESTRICT="mirror" |
30 |
-KEYWORDS="~amd64 ~ppc ~x86" |
31 |
-SLOT="0" |
32 |
- |
33 |
-USE_DOTNET="net45" |
34 |
-IUSE="+${USE_DOTNET} +gac developer debug doc" |
35 |
- |
36 |
-inherit gac dotnet |
37 |
- |
38 |
-GITHUB_ACCOUNT="Antlr" |
39 |
-GITHUB_PROJECTNAME="antlr3" |
40 |
-EGIT_COMMIT="5c2a916a10139cdb5c7c8851ee592ed9c3b3d4ff" |
41 |
-SRC_URI="https://github.com/${GITHUB_ACCOUNT}/${GITHUB_PROJECTNAME}/archive/${EGIT_COMMIT}.tar.gz -> ${PN}-${PV}.tar.gz" |
42 |
-S="${WORKDIR}/${GITHUB_PROJECTNAME}-${EGIT_COMMIT}" |
43 |
- |
44 |
-HOMEPAGE="http://www.antlr.org/" |
45 |
-DESCRIPTION="C# runtime for ANTLR (ANother Tool for Language Recognition)" |
46 |
-LICENSE="BSD" # https://github.com/antlr/antlr3/blob/master/runtime/CSharp2/LICENSE.TXT |
47 |
- |
48 |
-COMMON_DEPEND=">=dev-lang/mono-5.2.0.196 |
49 |
-" |
50 |
-RDEPEND="${COMMON_DEPEND} |
51 |
-" |
52 |
-DEPEND="${COMMON_DEPEND} |
53 |
-" |
54 |
- |
55 |
-PROJECT_FILE_DIR="${S}/runtime/CSharp2/Sources/Antlr3.Runtime" |
56 |
-PROJECT_NAME="Antlr3.Runtime" |
57 |
- |
58 |
-src_prepare() { |
59 |
- sed -i "s/3.1.3.\*/3.2.0.0/g" "${PROJECT_FILE_DIR}/AssemblyInfo.cs" || die |
60 |
- cp "${FILESDIR}/${PROJECT_NAME}.csproj" "${PROJECT_FILE_DIR}/" || die |
61 |
- cp "${FILESDIR}/IAstRuleReturnScope\`1.cs" "${PROJECT_FILE_DIR}/Antlr.Runtime/" || die |
62 |
- eapply_user |
63 |
-} |
64 |
- |
65 |
-src_compile() { |
66 |
- if use debug; then |
67 |
- CONFIGURATION=Debug |
68 |
- else |
69 |
- CONFIGURATION=Release |
70 |
- fi |
71 |
- |
72 |
- if use developer; then |
73 |
- SARGS=DebugSymbols=True |
74 |
- else |
75 |
- SARGS=DebugSymbols=False |
76 |
- fi |
77 |
- |
78 |
- 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" |
79 |
-} |
80 |
- |
81 |
-src_install() { |
82 |
- if use debug; then |
83 |
- CONFIGURATION=Debug |
84 |
- else |
85 |
- CONFIGURATION=Release |
86 |
- fi |
87 |
- |
88 |
- DLLNAME="${PROJECT_FILE_DIR}/bin/${CONFIGURATION}/${PROJECT_NAME}.dll" |
89 |
- sn -R "${DLLNAME}" "${PROJECT_FILE_DIR}/../Antlr3_KeyPair.snk" || die |
90 |
- egacinstall ${DLLNAME} |
91 |
- einstall_pc_file "${PN}" "${PV}" "${PROJECT_NAME}" |
92 |
-} |
93 |
|
94 |
diff --git a/dev-dotnet/antlr3-runtime/antlr3-runtime-3.5.2_beta1_p2017080216.ebuild b/dev-dotnet/antlr3-runtime/antlr3-runtime-3.5.2_beta1_p2017080216.ebuild |
95 |
new file mode 100644 |
96 |
index 0000000..d7baf8d |
97 |
--- /dev/null |
98 |
+++ b/dev-dotnet/antlr3-runtime/antlr3-runtime-3.5.2_beta1_p2017080216.ebuild |
99 |
@@ -0,0 +1,85 @@ |
100 |
+# Copyright 1999-2017 Gentoo Foundation |
101 |
+# Distributed under the terms of the GNU General Public License v2 |
102 |
+# $Id$ |
103 |
+ |
104 |
+EAPI=6 |
105 |
+ |
106 |
+KEYWORDS="~amd64 ~ppc ~x86" |
107 |
+RESTRICT="mirror" |
108 |
+ |
109 |
+SLOT="0" |
110 |
+ |
111 |
+USE_DOTNET="net45" |
112 |
+ |
113 |
+inherit dotnet msbuild gac |
114 |
+ |
115 |
+NAME="antlrcs" |
116 |
+HOMEPAGE="https://github.com/antlr/${NAME}" |
117 |
+EGIT_COMMIT="ca331b7109e1faa5a6aa7336bb6281ce9363e62b" |
118 |
+SRC_URI="https://github.com/ArsenShnurkov/shnurise-tarballs/raw/dev-utils/${PN}-${SLOT}/${PN}-${PV}.tar.gz -> ${NAME}-${PV}.tar.gz |
119 |
+ https://github.com/mono/mono/raw/master/mcs/class/mono.snk" |
120 |
+S="${WORKDIR}" |
121 |
+ |
122 |
+DESCRIPTION="The C# port of ANTLR 3 (Rubtime library)" |
123 |
+LICENSE="BSD" # https://github.com/antlr/antlrcs/blob/master/LICENSE.txt |
124 |
+ |
125 |
+IUSE="+${USE_DOTNET} debug developer doc" |
126 |
+ |
127 |
+COMMON_DEPEND=">=dev-lang/mono-5.4.0.167 <dev-lang/mono-9999 |
128 |
+" |
129 |
+RDEPEND="${COMMON_DEPEND} |
130 |
+" |
131 |
+DEPEND="${COMMON_DEPEND} |
132 |
+ >=dev-dotnet/msbuildtasks-1.5.0.240 |
133 |
+" |
134 |
+ |
135 |
+PATH_TO_PROJ="Runtime/Antlr3.Runtime" |
136 |
+METAFILE_TO_BUILD="old-Antlr3.Runtime.csproj" |
137 |
+ASSEMBLY_NAME="Antlr3.Runtime" |
138 |
+ |
139 |
+KEY2="${DISTDIR}/mono.snk" |
140 |
+ASSEMBLY_VERSION="3.5.1.26" |
141 |
+ |
142 |
+function output_filename ( ) { |
143 |
+ local DIR="" |
144 |
+ if use debug; then |
145 |
+ DIR="Debug" |
146 |
+ else |
147 |
+ DIR="Release" |
148 |
+ fi |
149 |
+ echo "${PATH_TO_PROJ}/bin/${DIR}/${ASSEMBLY_NAME}.dll" |
150 |
+} |
151 |
+ |
152 |
+src_prepare() { |
153 |
+ cp "${FILESDIR}/${METAFILE_TO_BUILD}" "${S}/${PATH_TO_PROJ}/" || die |
154 |
+ eapply_user |
155 |
+} |
156 |
+ |
157 |
+src_compile() { |
158 |
+ emsbuild /p:TargetFrameworkVersion=v4.6 "/p:SignAssembly=true" "/p:PublicSign=true" "/p:AssemblyOriginatorKeyFile=${KEY2}" /p:VersionNumber="${ASSEMBLY_VERSION}" "${S}/${PATH_TO_PROJ}/${METAFILE_TO_BUILD}" |
159 |
+ sn -R "$(output_filename)" "${KEY2}" || die |
160 |
+} |
161 |
+ |
162 |
+src_install() { |
163 |
+ insinto "/gac" |
164 |
+ doins "$(output_filename)" |
165 |
+} |
166 |
+ |
167 |
+pkg_preinst() |
168 |
+{ |
169 |
+ echo mv "${D}/gac/${ASSEMBLY_NAME}.dll" "${T}/${ASSEMBLY_NAME}.dll" |
170 |
+ mv "${D}/gac/${ASSEMBLY_NAME}.dll" "${T}/${ASSEMBLY_NAME}.dll" || die |
171 |
+ echo rm -rf "${D}/gac" |
172 |
+ rm -rf "${D}/gac" || die |
173 |
+} |
174 |
+ |
175 |
+pkg_postinst() |
176 |
+{ |
177 |
+ egacadd "${T}/${ASSEMBLY_NAME}.dll" |
178 |
+ rm "${T}/${ASSEMBLY_NAME}.dll" || die |
179 |
+} |
180 |
+ |
181 |
+pkg_prerm() |
182 |
+{ |
183 |
+ egacdel "${ASSEMBLY_NAME}, Version=${ASSEMBLY_VERSION}, Culture=neutral, PublicKeyToken=0738eb9f132ed756" |
184 |
+} |
185 |
|
186 |
diff --git a/dev-dotnet/antlr3-runtime/files/old-Antlr3.Runtime.csproj b/dev-dotnet/antlr3-runtime/files/old-Antlr3.Runtime.csproj |
187 |
new file mode 100644 |
188 |
index 0000000..6633d1c |
189 |
--- /dev/null |
190 |
+++ b/dev-dotnet/antlr3-runtime/files/old-Antlr3.Runtime.csproj |
191 |
@@ -0,0 +1,44 @@ |
192 |
+<?xml version="1.0" encoding="utf-8"?> |
193 |
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
194 |
+ <PropertyGroup> |
195 |
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
196 |
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
197 |
+ <OutputType>Library</OutputType> |
198 |
+ <AssemblyName>Antlr3.Runtime</AssemblyName> |
199 |
+ <TargetFrameworkVersion>v4.6</TargetFrameworkVersion> |
200 |
+ <ProjectGuid>{5EE27A90-B023-42C9-AAF1-52B0424C5D0B}</ProjectGuid> |
201 |
+ </PropertyGroup> |
202 |
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
203 |
+ <OutputPath>bin\Debug</OutputPath> |
204 |
+ <DebugSymbols>true</DebugSymbols> |
205 |
+ <DebugType>full</DebugType> |
206 |
+ <Optimize>false</Optimize> |
207 |
+ <DefineConstants>DEBUG</DefineConstants> |
208 |
+ </PropertyGroup> |
209 |
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
210 |
+ <OutputPath>bin\Release</OutputPath> |
211 |
+ <DebugSymbols>true</DebugSymbols> |
212 |
+ <DebugType>pdbonly</DebugType> |
213 |
+ <Optimize>true</Optimize> |
214 |
+ </PropertyGroup> |
215 |
+ <ItemGroup> |
216 |
+ <Reference Include="System" /> |
217 |
+ <Reference Include="System.Core" /> |
218 |
+ </ItemGroup> |
219 |
+ <ItemGroup> |
220 |
+ <Compile Include="**/*.cs" /> |
221 |
+ <Compile Include="Properties/AssemblyVersion.cs" /> |
222 |
+ </ItemGroup> |
223 |
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> |
224 |
+ <Import Project="$(MSBuildExtensionsPath)\MSBuild.Community.Tasks.Targets" /> |
225 |
+ <Target Name="BeforeBuild"> |
226 |
+ <PropertyGroup Condition=" '$(VersionNumber)' == '' "> |
227 |
+ <VersionNumber>3.5.1.26</VersionNumber> |
228 |
+ </PropertyGroup> |
229 |
+ <AssemblyInfo CodeLanguage="C#" |
230 |
+ OutputFile="$(MSBuildThisFileDirectory)/Properties/AssemblyVersion.cs" |
231 |
+ AssemblyVersion="$(VersionNumber)" |
232 |
+ AssemblyFileVersion="$(VersionNumber)" |
233 |
+ /> |
234 |
+ </Target> |
235 |
+</Project> |
236 |
|
237 |
diff --git a/dev-util/antlrcs/antlrcs-3.5.2_beta1_p2017080216.ebuild b/dev-util/antlrcs/antlrcs-3.5.2_beta1_p2017080216.ebuild |
238 |
new file mode 100644 |
239 |
index 0000000..37cf6de |
240 |
--- /dev/null |
241 |
+++ b/dev-util/antlrcs/antlrcs-3.5.2_beta1_p2017080216.ebuild |
242 |
@@ -0,0 +1,101 @@ |
243 |
+# Copyright 1999-2017 Gentoo Foundation |
244 |
+# Distributed under the terms of the GNU General Public License v2 |
245 |
+# $Id$ |
246 |
+ |
247 |
+EAPI=6 |
248 |
+ |
249 |
+KEYWORDS="~amd64 ~ppc ~x86" |
250 |
+RESTRICT="mirror" |
251 |
+ |
252 |
+SLOT="1" |
253 |
+ |
254 |
+USE_DOTNET="net45" |
255 |
+ |
256 |
+inherit multilib dotbuildtask eutils |
257 |
+ |
258 |
+NAME="antlrcs" |
259 |
+HOMEPAGE="https://github.com/antlr/${NAME}" |
260 |
+EGIT_COMMIT="ca331b7109e1faa5a6aa7336bb6281ce9363e62b" |
261 |
+SRC_URI="https://github.com/ArsenShnurkov/shnurise-tarballs/raw/dev-utils/${PN}-${SLOT}/${PN}-${PV}.tar.gz -> ${NAME}-${PV}.tar.gz" |
262 |
+S="${WORKDIR}" |
263 |
+ |
264 |
+DESCRIPTION="The C# port of ANTLR 3" |
265 |
+LICENSE="BSD" # https://github.com/antlr/antlrcs/blob/master/LICENSE.txt |
266 |
+ |
267 |
+IUSE="+${USE_DOTNET} debug developer doc" |
268 |
+ |
269 |
+COMMON_DEPEND=">=dev-lang/mono-5.4.0.167 <dev-lang/mono-9999 |
270 |
+" |
271 |
+RDEPEND="${COMMON_DEPEND} |
272 |
+" |
273 |
+DEPEND="${COMMON_DEPEND} |
274 |
+ >=dev-dotnet/antlr3-runtime-${PV} |
275 |
+" |
276 |
+ |
277 |
+OUTPUT_PATH="${PN}-${SLOT}" |
278 |
+ASSEMBLY_VERSION="3.5.1.26" |
279 |
+ |
280 |
+src_prepare() { |
281 |
+ sed "s#\$(AntlrBuildTaskPath)#/usr/$(get_libdir)/mono/${EBUILD_FRAMEWORK}/${PN}-${SLOT}#;s#\$(AntlrToolPath)#/usr/share/${PN}-${SLOT}/Antlr3.exe#" "${FILESDIR}/Antlr3.props" >"${S}/AntlrBuildTask/Antlr3.props" || die |
282 |
+ local ATEXT="[assembly:System.Reflection.AssemblyVersion(\"${ASSEMBLY_VERSION}\")]" |
283 |
+ echo "${ATEXT}" >"${S}/AntlrBuildTask/AV.cs" || die |
284 |
+ echo "${ATEXT}" >"${S}/Runtime/Antlr3.Runtime/AV.cs" || die |
285 |
+ echo "${ATEXT}" >"${S}/Runtime/Antlr3.Runtime.Debug/AV.cs" || die |
286 |
+ echo "${ATEXT}" >"${S}/Antlr4.StringTemplate/AV.cs" || die |
287 |
+ echo "${ATEXT}" >"${S}/Antlr3/AV.cs" || die |
288 |
+ echo "${ATEXT}" >"${S}/Antlr3.Targets/Antlr3.Targets.CSharp3/AV.cs" || die |
289 |
+ eapply_user |
290 |
+} |
291 |
+ |
292 |
+src_compile() { |
293 |
+ GAC_PATH=/usr/$(get_libdir)/mono/gac |
294 |
+ |
295 |
+ mkdir -p "${OUTPUT_PATH}" || die |
296 |
+ mkdir -p "${S}/${OUTPUT_PATH}/Targets" || die |
297 |
+ |
298 |
+ FW_PATH="/usr/lib64/mono/4.6-api" |
299 |
+ |
300 |
+ COMMON_KEYS="/utf8output /subsystemversion:6.00 /noconfig /nowarn:1701,1702 /nostdlib+ /highentropyva+ /reference:${FW_PATH}/mscorlib.dll /reference:${FW_PATH}/System.dll /recurse:*.cs" |
301 |
+ if use debug; then |
302 |
+ COMMON_KEYS="${COMMON_KEYS} /define:DEBUG /debug+ /debug:full /optimize-" |
303 |
+ fi |
304 |
+ |
305 |
+ cd "${S}/AntlrBuildTask" || die |
306 |
+ mono /usr/lib/mono/4.5/csc.exe /target:library "/out:${S}/${OUTPUT_PATH}/AntlrBuildTask.dll" /reference:${FW_PATH}/System.Core.dll /reference:${GAC_PATH}/Microsoft.Build.Framework/15.3.0.0__0738eb9f132ed756/Microsoft.Build.Framework.dll /reference:${GAC_PATH}/Microsoft.Build.Utilities.Core/15.3.0.0__0738eb9f132ed756/Microsoft.Build.Utilities.Core.dll ${COMMON_KEYS} || die |
307 |
+ |
308 |
+ cd "${S}/Runtime/Antlr3.Runtime" || die |
309 |
+ mono /usr/lib/mono/4.5/csc.exe /target:library "/out:${S}/${OUTPUT_PATH}/Antlr.Runtime.dll" /reference:${FW_PATH}/System.Core.dll ${COMMON_KEYS} || die |
310 |
+ |
311 |
+ cd "${S}/Runtime/Antlr3.Runtime.Debug" || die |
312 |
+ mono /usr/lib/mono/4.5/csc.exe /target:library "/out:${S}/${OUTPUT_PATH}/Antlr.Runtime.Debug.dll" "/reference:${FW_PATH}/System.Core.dll" "/reference:${S}/${OUTPUT_PATH}/Antlr.Runtime.dll" ${COMMON_KEYS} || die |
313 |
+ |
314 |
+ cd "${S}/Antlr4.StringTemplate" || die |
315 |
+ mono /usr/lib/mono/4.5/csc.exe /target:library "/out:${S}/${OUTPUT_PATH}/Antlr4.StringTemplate.dll" "/reference:${FW_PATH}/System.Core.dll" "/reference:${S}/${OUTPUT_PATH}/Antlr.Runtime.dll" ${COMMON_KEYS} || die |
316 |
+ |
317 |
+ cd "${S}/Antlr3" || die |
318 |
+ mono /usr/lib/mono/4.5/csc.exe /target:exe "/out:${S}/${OUTPUT_PATH}/Antlr3.exe" /define:NETSTANDARD "/reference:${FW_PATH}/System.Core.dll" "/reference:${FW_PATH}/System.Xml.Linq.dll" "/reference:${S}/${OUTPUT_PATH}/Antlr.Runtime.dll" "/reference:${S}/${OUTPUT_PATH}/Antlr.Runtime.Debug.dll" "/reference:${S}/${OUTPUT_PATH}/Antlr4.StringTemplate.dll" ${COMMON_KEYS} || die |
319 |
+ |
320 |
+ cd "${S}/Antlr3.Targets/Antlr3.Targets.CSharp3" || die |
321 |
+ mono /usr/lib/mono/4.5/csc.exe /target:library "/out:${S}/${OUTPUT_PATH}/Targets/Antlr3.Targets.CSharp3.dll" /define:NETSTANDARD "/reference:${FW_PATH}/System.Core.dll" "/reference:${S}/${OUTPUT_PATH}/Antlr3.exe" "/reference:${S}/${OUTPUT_PATH}/Antlr4.StringTemplate.dll" ${COMMON_KEYS} || die |
322 |
+ |
323 |
+ cd "${S}" || die |
324 |
+} |
325 |
+ |
326 |
+src_install() { |
327 |
+ insinto "usr/share" |
328 |
+ doins -r "${S}/${OUTPUT_PATH}" |
329 |
+ |
330 |
+ insinto "usr/share/${OUTPUT_PATH}" |
331 |
+ doins -r "${S}/Reference/antlr3/tool/src/main/resources/org/antlr/Tool" |
332 |
+ doins -r "${S}/Reference/antlr3/tool/src/main/resources/org/antlr/Codegen" |
333 |
+ |
334 |
+ local TASKS_PROPS_FILE="${S}/AntlrBuildTask/Antlr3.props" |
335 |
+ local TASKS_TARGETS_FILE="${S}/AntlrBuildTask/Antlr3.targets" |
336 |
+ einstask "${OUTPUT_PATH}/AntlrBuildTask.dll" "${TASKS_PROPS_FILE}" "${TASKS_TARGETS_FILE}" |
337 |
+ |
338 |
+ if use debug; then |
339 |
+ make_wrapper antlrcs "/usr/bin/mono --debug \${MONO_OPTIONS} /usr/share/${PN}-${SLOT}/Antlr3.exe" |
340 |
+ else |
341 |
+ make_wrapper antlrcs "/usr/bin/mono \${MONO_OPTIONS} /usr/share/${PN}-${SLOT}/Antlr3.exe" |
342 |
+ fi |
343 |
+} |
344 |
|
345 |
diff --git a/dev-util/antlrcs/antlrcs-3.5.2_beta1_p6.ebuild b/dev-util/antlrcs/antlrcs-3.5.2_beta1_p6.ebuild |
346 |
deleted file mode 100644 |
347 |
index 6845e31..0000000 |
348 |
--- a/dev-util/antlrcs/antlrcs-3.5.2_beta1_p6.ebuild |
349 |
+++ /dev/null |
350 |
@@ -1,74 +0,0 @@ |
351 |
-# Copyright 1999-2017 Gentoo Foundation |
352 |
-# Distributed under the terms of the GNU General Public License v2 |
353 |
-# $Id$ |
354 |
- |
355 |
-EAPI=6 |
356 |
- |
357 |
-KEYWORDS="~amd64 ~ppc ~x86" |
358 |
-RESTRICT="mirror" |
359 |
- |
360 |
-SLOT="0" |
361 |
- |
362 |
-USE_DOTNET="net45" |
363 |
- |
364 |
-inherit dotnet msbuild gac |
365 |
- |
366 |
-NAME="antlrcs" |
367 |
-HOMEPAGE="https://github.com/antlr/${NAME}" |
368 |
-SRC_URI="https://github.com/ArsenShnurkov/shnurise-tarballs/raw/dev-utils/antlrcs/antlrcs-3.5.2_beta1.tar.gz -> ${NAME}-${PV}.tar.gz" |
369 |
- |
370 |
-DESCRIPTION="The C# port of ANTLR 3" |
371 |
-LICENSE="BSD" # https://github.com/antlr/antlrcs/blob/master/LICENSE.txt |
372 |
- |
373 |
-IUSE="+${USE_DOTNET} debug developer doc" |
374 |
- |
375 |
-COMMON_DEPEND=">=dev-lang/mono-5.4.0.167 <dev-lang/mono-9999 |
376 |
-" |
377 |
-RDEPEND="${COMMON_DEPEND} |
378 |
-" |
379 |
-DEPEND="${COMMON_DEPEND} |
380 |
- dev-dotnet/antlr3-runtime |
381 |
-" |
382 |
- |
383 |
-TASKSASSEMBLY="AntlrBuildTask/old-AntlrBuildTask.csproj" |
384 |
-ASSEMBLY_NAME="AntlrBuildTask" |
385 |
-EXECUTABLE_PROJ="Antlr3/old-Antlr3.csproj" |
386 |
-EXECUTABLE_NAME="Antlr3" |
387 |
- |
388 |
-function tasksassembly_file ( ) { |
389 |
- local DIR="" |
390 |
- if use debug; then |
391 |
- DIR="Debug" |
392 |
- else |
393 |
- DIR="Release" |
394 |
- fi |
395 |
- echo "AntlrBuildTask/bin/${DIR}/${ASSEMBLY_NAME}.dll" |
396 |
-} |
397 |
- |
398 |
-function executable_file ( ) { |
399 |
- local DIR="" |
400 |
- if use debug; then |
401 |
- DIR="Debug" |
402 |
- else |
403 |
- DIR="Release" |
404 |
- fi |
405 |
- echo "Antlr3/bin/${DIR}/${EXECUTABLE}.exe" |
406 |
-} |
407 |
- |
408 |
-src_prepare() { |
409 |
- cp "${FILESDIR}/old-AntlrBuildTask.csproj" "${S}/${TASKSASSEMBLY}" || die |
410 |
- cp "${FILESDIR}/old-Antlr3.csproj" "${S}/${EXECUTABLE_PROJ}" || die |
411 |
- eapply_user |
412 |
-} |
413 |
- |
414 |
-src_compile() { |
415 |
- emsbuild /p:TargetFrameworkVersion=v4.6 "${S}/${TASKSASSEMBLY}" |
416 |
- emsbuild /p:TargetFrameworkVersion=v4.6 "${S}/${EXECUTABLE_PROJ}" |
417 |
-} |
418 |
- |
419 |
-TASKS_PROPS_FILE="AntlrBuildTask/Antlr3.props" |
420 |
-TASKS_TARGETS_FILE="AntlrBuildTask/Antlr3.targets" |
421 |
- |
422 |
-src_install() { |
423 |
- einstask "${S}/$(tasksassembly_file)" "${S}/${TASKS_PROPS_FILE}" "${S}/${TASKS_TARGETS_FILE}" |
424 |
-} |
425 |
|
426 |
diff --git a/dev-util/antlrcs/files/Antlr3.props b/dev-util/antlrcs/files/Antlr3.props |
427 |
new file mode 100644 |
428 |
index 0000000..562a801 |
429 |
--- /dev/null |
430 |
+++ b/dev-util/antlrcs/files/Antlr3.props |
431 |
@@ -0,0 +1,13 @@ |
432 |
+<?xml version="1.0" encoding="utf-8" ?> |
433 |
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
434 |
+ <PropertyGroup> |
435 |
+ <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> |
436 |
+ </PropertyGroup> |
437 |
+ |
438 |
+ <PropertyGroup> |
439 |
+ <!-- Folder containing AntlrBuildTask.dll --> |
440 |
+ <AntlrBuildTaskPath>$(AntlrBuildTaskPath)</AntlrBuildTaskPath> |
441 |
+ <!-- Path to the ANTLR tool itself --> |
442 |
+ <AntlrToolPath>$(AntlrToolPath)</AntlrToolPath> |
443 |
+ </PropertyGroup> |
444 |
+</Project> |