aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArsenShnurkov <ArsenShnurkov@users.noreply.github.com>2017-10-27 08:25:07 +0300
committerArsenShnurkov <ArsenShnurkov@users.noreply.github.com>2017-10-27 08:25:07 +0300
commit218db47df90093bf59c49bb951b333e01d7f68d4 (patch)
tree037eab4b5c03d51f29b2eb8e9001b5a98f6a013b /dev-lang
parentMerge pull request #341 from ArsenShnurkov/pash (diff)
downloaddotnet-218db47df90093bf59c49bb951b333e01d7f68d4.tar.gz
dotnet-218db47df90093bf59c49bb951b333e01d7f68d4.tar.bz2
dotnet-218db47df90093bf59c49bb951b333e01d7f68d4.zip
dev-lang/oscript (see https://github.com/EvilBeaver/OneScript/issues/574)
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/oscript/Manifest1
-rw-r--r--dev-lang/oscript/metadata.xml10
-rw-r--r--dev-lang/oscript/oscript-1.0.19.0_p2017102608.ebuild67
3 files changed, 78 insertions, 0 deletions
diff --git a/dev-lang/oscript/Manifest b/dev-lang/oscript/Manifest
new file mode 100644
index 0000000..f455ec1
--- /dev/null
+++ b/dev-lang/oscript/Manifest
@@ -0,0 +1 @@
+DIST oscript-1.0.19.0_p2017102608.tar.gz 7638119 SHA256 5ec34947cecd7e0662a34b32de611f72ccfd56036ea3119040cf03beb85150cc SHA512 824bff3f89d5057f59bb9d2d9c936ac38f80184e403379db3c095d6828d820c81b6041d7afa4c558aa059bc67d76afdf8b1622007d34ad30ac2ad3f0a0cffc3e WHIRLPOOL da1b5ee3e2097e9f83e6f73b7e344e8d3ba18b9da052a0201b8bdd995dd35414083a8b1249be99e2289654683609f0db658c8df85440328ef4aaa7591f88a427
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>dotnet@gentoo.org</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
+}