commit:     c6dcfdda4577cf328b6edf3560ce29b37909db78
Author:     layman <layman <AT> localhost>
AuthorDate: Sun Jun 21 14:07:38 2015 +0000
Commit:     Heather Cynede <cynede <AT> gentoo <DOT> org>
CommitDate: Sun Jun 21 14:07:38 2015 +0000
URL:        https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=c6dcfdda

ebuild for pash

 app-shells/pash/pash-0.0-r20150618.ebuild | 49 +++++++++++++++++++++++++++++++
 eclass/dotnet.eclass                      |  3 +-
 2 files changed, 51 insertions(+), 1 deletion(-)

diff --git a/app-shells/pash/pash-0.0-r20150618.ebuild 
b/app-shells/pash/pash-0.0-r20150618.ebuild
new file mode 100644
index 0000000..1cb27fc
--- /dev/null
+++ b/app-shells/pash/pash-0.0-r20150618.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+
+inherit dotnet
+
+DESCRIPTION="An Open Source reimplementation of Windows PowerShell"
+
+LICENSE="BSD || ( GPL )"   # LICENSE syntax is defined in 
https://wiki.gentoo.org/wiki/GLEP:23
+
+SLOT="0"
+
+IUSE="debug"
+
+PROJECTNAME="Pash"
+HOMEPAGE="https://github.com/Pash-Project/${PROJECTNAME}";
+EGIT_COMMIT="33ffa8c6172175e678310598adcc261a4e3b22a0"
+SRC_URI="${HOMEPAGE}/archive/${EGIT_COMMIT}.zip -> ${P}-${PR}.zip"
+
+KEYWORDS="~x86 ~amd64 ~ppc"
+DEPEND="|| ( >=dev-lang/mono-3.12.0 <dev-lang/mono-9999 )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PROJECTNAME}-${EGIT_COMMIT}"
+
+
+METAFILETOBUILD=${PROJECTNAME}.proj
+
+src_compile() {
+    # https://bugzilla.xamarin.com/show_bug.cgi?id=9340
+    if use debug; then
+        exbuild /p:DebugSymbols=True ${METAFILETOBUILD}
+    else
+        exbuild /p:DebugSymbols=False ${METAFILETOBUILD}
+    fi
+}
+
+src_install() {
+    elog "Installing assemblies"
+    insinto /usr/lib/pash/
+    doins ${S}/Source/PashConsole/bin/Release/Pash.exe
+    doins ${S}/Source/PashConsole/bin/Release/*.dll
+    if use debug; then
+        doins ${S}/Source/PashConsole/bin/Release/*.mdb
+    fi
+    make_wrapper pash "mono /usr/lib/pash/Pash.exe"
+}

diff --git a/eclass/dotnet.eclass b/eclass/dotnet.eclass
index 8473700..ea5bc3b 100644
--- a/eclass/dotnet.eclass
+++ b/eclass/dotnet.eclass
@@ -81,7 +81,8 @@ unset MONO_AOT_CACHE
 # @FUNCTION: exbuild
 # @DESCRIPTION: run xbuild with Release configuration and configurated 
FRAMEWORK
 exbuild() {
-       xbuild "${1}" /p:Configuration=Release /tv:4.0 
/p:TargetFrameworkVersion=v"${FRAMEWORK}" || die
+        elog "xbuild ""$@"" /p:Configuration=Release /tv:4.0 
/p:TargetFrameworkVersion=v""${FRAMEWORK}"" || die"
+       xbuild "$@" /p:Configuration=Release /tv:4.0 
/p:TargetFrameworkVersion=v"${FRAMEWORK}" || die
 }
 
 # @FUNCTION: egacinstall

Reply via email to