Gentoo Archives: gentoo-commits

From: Heather Cynede <cynede@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/dotnet:master commit in: eclass/, app-shells/pash/
Date: Thu, 25 Jun 2015 07:04:34
Message-Id: 1434895658.c6dcfdda4577cf328b6edf3560ce29b37909db78.cynede@gentoo
1 commit: c6dcfdda4577cf328b6edf3560ce29b37909db78
2 Author: layman <layman <AT> localhost>
3 AuthorDate: Sun Jun 21 14:07:38 2015 +0000
4 Commit: Heather Cynede <cynede <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 21 14:07:38 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=c6dcfdda
7
8 ebuild for pash
9
10 app-shells/pash/pash-0.0-r20150618.ebuild | 49 +++++++++++++++++++++++++++++++
11 eclass/dotnet.eclass | 3 +-
12 2 files changed, 51 insertions(+), 1 deletion(-)
13
14 diff --git a/app-shells/pash/pash-0.0-r20150618.ebuild b/app-shells/pash/pash-0.0-r20150618.ebuild
15 new file mode 100644
16 index 0000000..1cb27fc
17 --- /dev/null
18 +++ b/app-shells/pash/pash-0.0-r20150618.ebuild
19 @@ -0,0 +1,49 @@
20 +# Copyright 1999-2015 Gentoo Foundation
21 +# Distributed under the terms of the GNU General Public License v2
22 +# $Header: $
23 +
24 +EAPI="5"
25 +
26 +inherit dotnet
27 +
28 +DESCRIPTION="An Open Source reimplementation of Windows PowerShell"
29 +
30 +LICENSE="BSD || ( GPL )" # LICENSE syntax is defined in https://wiki.gentoo.org/wiki/GLEP:23
31 +
32 +SLOT="0"
33 +
34 +IUSE="debug"
35 +
36 +PROJECTNAME="Pash"
37 +HOMEPAGE="https://github.com/Pash-Project/${PROJECTNAME}"
38 +EGIT_COMMIT="33ffa8c6172175e678310598adcc261a4e3b22a0"
39 +SRC_URI="${HOMEPAGE}/archive/${EGIT_COMMIT}.zip -> ${P}-${PR}.zip"
40 +
41 +KEYWORDS="~x86 ~amd64 ~ppc"
42 +DEPEND="|| ( >=dev-lang/mono-3.12.0 <dev-lang/mono-9999 )"
43 +RDEPEND="${DEPEND}"
44 +
45 +S="${WORKDIR}/${PROJECTNAME}-${EGIT_COMMIT}"
46 +
47 +
48 +METAFILETOBUILD=${PROJECTNAME}.proj
49 +
50 +src_compile() {
51 + # https://bugzilla.xamarin.com/show_bug.cgi?id=9340
52 + if use debug; then
53 + exbuild /p:DebugSymbols=True ${METAFILETOBUILD}
54 + else
55 + exbuild /p:DebugSymbols=False ${METAFILETOBUILD}
56 + fi
57 +}
58 +
59 +src_install() {
60 + elog "Installing assemblies"
61 + insinto /usr/lib/pash/
62 + doins ${S}/Source/PashConsole/bin/Release/Pash.exe
63 + doins ${S}/Source/PashConsole/bin/Release/*.dll
64 + if use debug; then
65 + doins ${S}/Source/PashConsole/bin/Release/*.mdb
66 + fi
67 + make_wrapper pash "mono /usr/lib/pash/Pash.exe"
68 +}
69
70 diff --git a/eclass/dotnet.eclass b/eclass/dotnet.eclass
71 index 8473700..ea5bc3b 100644
72 --- a/eclass/dotnet.eclass
73 +++ b/eclass/dotnet.eclass
74 @@ -81,7 +81,8 @@ unset MONO_AOT_CACHE
75 # @FUNCTION: exbuild
76 # @DESCRIPTION: run xbuild with Release configuration and configurated FRAMEWORK
77 exbuild() {
78 - xbuild "${1}" /p:Configuration=Release /tv:4.0 /p:TargetFrameworkVersion=v"${FRAMEWORK}" || die
79 + elog "xbuild ""$@"" /p:Configuration=Release /tv:4.0 /p:TargetFrameworkVersion=v""${FRAMEWORK}"" || die"
80 + xbuild "$@" /p:Configuration=Release /tv:4.0 /p:TargetFrameworkVersion=v"${FRAMEWORK}" || die
81 }
82
83 # @FUNCTION: egacinstall