commit:     218db47df90093bf59c49bb951b333e01d7f68d4
Author:     ArsenShnurkov <ArsenShnurkov <AT> users <DOT> noreply <DOT> github 
<DOT> com>
AuthorDate: Fri Oct 27 05:25:07 2017 +0000
Commit:     Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org>
CommitDate: Fri Oct 27 05:25:07 2017 +0000
URL:        https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=218db47d

dev-lang/oscript (see https://github.com/EvilBeaver/OneScript/issues/574)

 dev-lang/oscript/metadata.xml                      | 10 ++++
 .../oscript/oscript-1.0.19.0_p2017102608.ebuild    | 67 ++++++++++++++++++++++
 2 files changed, 77 insertions(+)

diff --git a/dev-lang/oscript/metadata.xml b/dev-lang/oscript/metadata.xml
new file mode 100644
index 0000000..7310045
--- /dev/null
+++ b/dev-lang/oscript/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="project">
+               <email>[email protected]</email>
+               <description>Gentoo Dotnet Project</description>
+       </maintainer>
+       <use>
+       </use>
+</pkgmetadata>

diff --git a/dev-lang/oscript/oscript-1.0.19.0_p2017102608.ebuild 
b/dev-lang/oscript/oscript-1.0.19.0_p2017102608.ebuild
new file mode 100644
index 0000000..c80e29c
--- /dev/null
+++ b/dev-lang/oscript/oscript-1.0.19.0_p2017102608.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+KEYWORDS="~amd64 ~ppc ~x86"
+RESTRICT="mirror"
+
+SLOT="0"
+
+USE_DOTNET="net45"
+
+inherit multilib eutils msbuild
+
+#if [ "${CATEGORY}" == "" ]; then
+#      CATEGORY="dev-lang"
+#fi
+if [ "${SLOT}" != "0" ]; then
+       APPENDIX="-${SLOT}"
+fi
+
+HOMEPAGE="http://oscript.io";
+SRC_URI="https://github.com/ArsenShnurkov/shnurise-tarballs/raw/${CATEGORY}/${PN}${APPENDIX}/${PN}-${PV}.tar.gz";
+
+DESCRIPTION=
+LICENSE=
+
+IUSE="+${USE_DOTNET} debug developer doc"
+
+COMMON_DEPEND=">=dev-lang/mono-5.4.0.167 <dev-lang/mono-9999
+       dev-dotnet/newtonsoft-json
+       dev-dotnet/dotnetzip-semverd
+"
+RDEPEND="${COMMON_DEPEND}
+"
+DEPEND="${COMMON_DEPEND}
+"
+
+src_prepare() {
+       eapply_user
+}
+
+src_compile() {
+       emsbuild "src/1Script_Mono.sln"
+}
+
+src_install() {
+       insinto "/usr/share/${PN}${APPENDIX}"
+       doins "${S}/src/oscript/bin/x86/Release/oscript.exe"
+       doins "${S}/src/oscript/bin/x86/Release/oscript.cfg"
+       doins "${S}/src/oscript/bin/x86/Release/OneScript.DebugProtocol.dll"
+       doins "${S}/src/oscript/bin/x86/Release/ScriptEngine.dll"
+       doins "${S}/src/oscript/bin/x86/Release/ScriptEngine.HostedScript.dll"
+       if use developer ; then
+               doins "${S}/src/oscript/bin/x86/Release/oscript.pdb"
+               doins 
"${S}/src/oscript/bin/x86/Release/OneScript.DebugProtocol.pdb"
+               doins "${S}/src/oscript/bin/x86/Release/ScriptEngine.pdb"
+               doins 
"${S}/src/oscript/bin/x86/Release/ScriptEngine.HostedScript.pdb"
+       fi
+
+       if use debug; then
+               make_wrapper oscript "/usr/bin/mono --debug \${MONO_OPTIONS} 
/usr/share/${PN}${APPENDIX}/oscript.exe"
+       else
+               make_wrapper oscript "/usr/bin/mono \${MONO_OPTIONS} 
/usr/share/${PN}${APPENDIX}/oscript.exe"
+       fi
+}

Reply via email to