1 |
commit: 0eab3497dcd95a2a1a67fc2644551e496e113489 |
2 |
Author: ArsenShnurkov <ArsenShnurkov <AT> users <DOT> noreply <DOT> github <DOT> com> |
3 |
AuthorDate: Fri Oct 20 20:16:54 2017 +0000 |
4 |
Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 20 20:16:54 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=0eab3497 |
7 |
|
8 |
initial version |
9 |
|
10 |
dev-util/antlrcs/antlrcs-3.5.2_beta1_p6.ebuild | 74 ++++++++++++++++++++++++++ |
11 |
dev-util/antlrcs/metadata.xml | 10 ++++ |
12 |
2 files changed, 84 insertions(+) |
13 |
|
14 |
diff --git a/dev-util/antlrcs/antlrcs-3.5.2_beta1_p6.ebuild b/dev-util/antlrcs/antlrcs-3.5.2_beta1_p6.ebuild |
15 |
new file mode 100644 |
16 |
index 0000000..6845e31 |
17 |
--- /dev/null |
18 |
+++ b/dev-util/antlrcs/antlrcs-3.5.2_beta1_p6.ebuild |
19 |
@@ -0,0 +1,74 @@ |
20 |
+# Copyright 1999-2017 Gentoo Foundation |
21 |
+# Distributed under the terms of the GNU General Public License v2 |
22 |
+# $Id$ |
23 |
+ |
24 |
+EAPI=6 |
25 |
+ |
26 |
+KEYWORDS="~amd64 ~ppc ~x86" |
27 |
+RESTRICT="mirror" |
28 |
+ |
29 |
+SLOT="0" |
30 |
+ |
31 |
+USE_DOTNET="net45" |
32 |
+ |
33 |
+inherit dotnet msbuild gac |
34 |
+ |
35 |
+NAME="antlrcs" |
36 |
+HOMEPAGE="https://github.com/antlr/${NAME}" |
37 |
+SRC_URI="https://github.com/ArsenShnurkov/shnurise-tarballs/raw/dev-utils/antlrcs/antlrcs-3.5.2_beta1.tar.gz -> ${NAME}-${PV}.tar.gz" |
38 |
+ |
39 |
+DESCRIPTION="The C# port of ANTLR 3" |
40 |
+LICENSE="BSD" # https://github.com/antlr/antlrcs/blob/master/LICENSE.txt |
41 |
+ |
42 |
+IUSE="+${USE_DOTNET} debug developer doc" |
43 |
+ |
44 |
+COMMON_DEPEND=">=dev-lang/mono-5.4.0.167 <dev-lang/mono-9999 |
45 |
+" |
46 |
+RDEPEND="${COMMON_DEPEND} |
47 |
+" |
48 |
+DEPEND="${COMMON_DEPEND} |
49 |
+ dev-dotnet/antlr3-runtime |
50 |
+" |
51 |
+ |
52 |
+TASKSASSEMBLY="AntlrBuildTask/old-AntlrBuildTask.csproj" |
53 |
+ASSEMBLY_NAME="AntlrBuildTask" |
54 |
+EXECUTABLE_PROJ="Antlr3/old-Antlr3.csproj" |
55 |
+EXECUTABLE_NAME="Antlr3" |
56 |
+ |
57 |
+function tasksassembly_file ( ) { |
58 |
+ local DIR="" |
59 |
+ if use debug; then |
60 |
+ DIR="Debug" |
61 |
+ else |
62 |
+ DIR="Release" |
63 |
+ fi |
64 |
+ echo "AntlrBuildTask/bin/${DIR}/${ASSEMBLY_NAME}.dll" |
65 |
+} |
66 |
+ |
67 |
+function executable_file ( ) { |
68 |
+ local DIR="" |
69 |
+ if use debug; then |
70 |
+ DIR="Debug" |
71 |
+ else |
72 |
+ DIR="Release" |
73 |
+ fi |
74 |
+ echo "Antlr3/bin/${DIR}/${EXECUTABLE}.exe" |
75 |
+} |
76 |
+ |
77 |
+src_prepare() { |
78 |
+ cp "${FILESDIR}/old-AntlrBuildTask.csproj" "${S}/${TASKSASSEMBLY}" || die |
79 |
+ cp "${FILESDIR}/old-Antlr3.csproj" "${S}/${EXECUTABLE_PROJ}" || die |
80 |
+ eapply_user |
81 |
+} |
82 |
+ |
83 |
+src_compile() { |
84 |
+ emsbuild /p:TargetFrameworkVersion=v4.6 "${S}/${TASKSASSEMBLY}" |
85 |
+ emsbuild /p:TargetFrameworkVersion=v4.6 "${S}/${EXECUTABLE_PROJ}" |
86 |
+} |
87 |
+ |
88 |
+TASKS_PROPS_FILE="AntlrBuildTask/Antlr3.props" |
89 |
+TASKS_TARGETS_FILE="AntlrBuildTask/Antlr3.targets" |
90 |
+ |
91 |
+src_install() { |
92 |
+ einstask "${S}/$(tasksassembly_file)" "${S}/${TASKS_PROPS_FILE}" "${S}/${TASKS_TARGETS_FILE}" |
93 |
+} |
94 |
|
95 |
diff --git a/dev-util/antlrcs/metadata.xml b/dev-util/antlrcs/metadata.xml |
96 |
new file mode 100644 |
97 |
index 0000000..7310045 |
98 |
--- /dev/null |
99 |
+++ b/dev-util/antlrcs/metadata.xml |
100 |
@@ -0,0 +1,10 @@ |
101 |
+<?xml version="1.0" encoding="UTF-8"?> |
102 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
103 |
+<pkgmetadata> |
104 |
+ <maintainer type="project"> |
105 |
+ <email>dotnet@g.o</email> |
106 |
+ <description>Gentoo Dotnet Project</description> |
107 |
+ </maintainer> |
108 |
+ <use> |
109 |
+ </use> |
110 |
+</pkgmetadata> |