1 |
commit: 218db47df90093bf59c49bb951b333e01d7f68d4 |
2 |
Author: ArsenShnurkov <ArsenShnurkov <AT> users <DOT> noreply <DOT> github <DOT> com> |
3 |
AuthorDate: Fri Oct 27 05:25:07 2017 +0000 |
4 |
Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 27 05:25:07 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=218db47d |
7 |
|
8 |
dev-lang/oscript (see https://github.com/EvilBeaver/OneScript/issues/574) |
9 |
|
10 |
dev-lang/oscript/metadata.xml | 10 ++++ |
11 |
.../oscript/oscript-1.0.19.0_p2017102608.ebuild | 67 ++++++++++++++++++++++ |
12 |
2 files changed, 77 insertions(+) |
13 |
|
14 |
diff --git a/dev-lang/oscript/metadata.xml b/dev-lang/oscript/metadata.xml |
15 |
new file mode 100644 |
16 |
index 0000000..7310045 |
17 |
--- /dev/null |
18 |
+++ b/dev-lang/oscript/metadata.xml |
19 |
@@ -0,0 +1,10 @@ |
20 |
+<?xml version="1.0" encoding="UTF-8"?> |
21 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
22 |
+<pkgmetadata> |
23 |
+ <maintainer type="project"> |
24 |
+ <email>dotnet@g.o</email> |
25 |
+ <description>Gentoo Dotnet Project</description> |
26 |
+ </maintainer> |
27 |
+ <use> |
28 |
+ </use> |
29 |
+</pkgmetadata> |
30 |
|
31 |
diff --git a/dev-lang/oscript/oscript-1.0.19.0_p2017102608.ebuild b/dev-lang/oscript/oscript-1.0.19.0_p2017102608.ebuild |
32 |
new file mode 100644 |
33 |
index 0000000..c80e29c |
34 |
--- /dev/null |
35 |
+++ b/dev-lang/oscript/oscript-1.0.19.0_p2017102608.ebuild |
36 |
@@ -0,0 +1,67 @@ |
37 |
+# Copyright 1999-2017 Gentoo Foundation |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+# $Id$ |
40 |
+ |
41 |
+EAPI=6 |
42 |
+ |
43 |
+KEYWORDS="~amd64 ~ppc ~x86" |
44 |
+RESTRICT="mirror" |
45 |
+ |
46 |
+SLOT="0" |
47 |
+ |
48 |
+USE_DOTNET="net45" |
49 |
+ |
50 |
+inherit multilib eutils msbuild |
51 |
+ |
52 |
+#if [ "${CATEGORY}" == "" ]; then |
53 |
+# CATEGORY="dev-lang" |
54 |
+#fi |
55 |
+if [ "${SLOT}" != "0" ]; then |
56 |
+ APPENDIX="-${SLOT}" |
57 |
+fi |
58 |
+ |
59 |
+HOMEPAGE="http://oscript.io" |
60 |
+SRC_URI="https://github.com/ArsenShnurkov/shnurise-tarballs/raw/${CATEGORY}/${PN}${APPENDIX}/${PN}-${PV}.tar.gz" |
61 |
+ |
62 |
+DESCRIPTION= |
63 |
+LICENSE= |
64 |
+ |
65 |
+IUSE="+${USE_DOTNET} debug developer doc" |
66 |
+ |
67 |
+COMMON_DEPEND=">=dev-lang/mono-5.4.0.167 <dev-lang/mono-9999 |
68 |
+ dev-dotnet/newtonsoft-json |
69 |
+ dev-dotnet/dotnetzip-semverd |
70 |
+" |
71 |
+RDEPEND="${COMMON_DEPEND} |
72 |
+" |
73 |
+DEPEND="${COMMON_DEPEND} |
74 |
+" |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ eapply_user |
78 |
+} |
79 |
+ |
80 |
+src_compile() { |
81 |
+ emsbuild "src/1Script_Mono.sln" |
82 |
+} |
83 |
+ |
84 |
+src_install() { |
85 |
+ insinto "/usr/share/${PN}${APPENDIX}" |
86 |
+ doins "${S}/src/oscript/bin/x86/Release/oscript.exe" |
87 |
+ doins "${S}/src/oscript/bin/x86/Release/oscript.cfg" |
88 |
+ doins "${S}/src/oscript/bin/x86/Release/OneScript.DebugProtocol.dll" |
89 |
+ doins "${S}/src/oscript/bin/x86/Release/ScriptEngine.dll" |
90 |
+ doins "${S}/src/oscript/bin/x86/Release/ScriptEngine.HostedScript.dll" |
91 |
+ if use developer ; then |
92 |
+ doins "${S}/src/oscript/bin/x86/Release/oscript.pdb" |
93 |
+ doins "${S}/src/oscript/bin/x86/Release/OneScript.DebugProtocol.pdb" |
94 |
+ doins "${S}/src/oscript/bin/x86/Release/ScriptEngine.pdb" |
95 |
+ doins "${S}/src/oscript/bin/x86/Release/ScriptEngine.HostedScript.pdb" |
96 |
+ fi |
97 |
+ |
98 |
+ if use debug; then |
99 |
+ make_wrapper oscript "/usr/bin/mono --debug \${MONO_OPTIONS} /usr/share/${PN}${APPENDIX}/oscript.exe" |
100 |
+ else |
101 |
+ make_wrapper oscript "/usr/bin/mono \${MONO_OPTIONS} /usr/share/${PN}${APPENDIX}/oscript.exe" |
102 |
+ fi |
103 |
+} |