Gentoo Archives: gentoo-commits

From: Mikhail Pukhlikov <cynede@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/dotnet:master commit in: dev-util/tartool/, app-shells/pash/, app-shells/pash/files/
Date: Mon, 30 Oct 2017 06:45:06
Message-Id: 1507897151.6ebac73deda3d4116c9edee654375e0a2a4f17e8.cynede@gentoo
1 commit: 6ebac73deda3d4116c9edee654375e0a2a4f17e8
2 Author: ArsenShnurkov <ArsenShnurkov <AT> users <DOT> noreply <DOT> github <DOT> com>
3 AuthorDate: Fri Oct 13 10:16:58 2017 +0000
4 Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 13 12:19:11 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=6ebac73d
7
8 dependencies added
9
10 app-shells/pash/files/template.csproj | 47 +++++++++++++++
11 app-shells/pash/pash-0.0_p2016060606.ebuild | 89 +++++++++++++++++++++++++----
12 dev-util/tartool/tartool-1.0.0.0.ebuild | 2 +-
13 3 files changed, 127 insertions(+), 11 deletions(-)
14
15 diff --git a/app-shells/pash/files/template.csproj b/app-shells/pash/files/template.csproj
16 new file mode 100644
17 index 0000000..9c49b91
18 --- /dev/null
19 +++ b/app-shells/pash/files/template.csproj
20 @@ -0,0 +1,47 @@
21 +<?xml version="1.0" encoding="utf-8"?>
22 +<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
23 + <PropertyGroup>
24 + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
25 + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
26 + <TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
27 + <AssemblyName>$(AssemblyName)</AssemblyName>
28 + <OutputType>$(OutputType)</OutputType>
29 + </PropertyGroup>
30 + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
31 + <OutputPath>bin\Debug</OutputPath>
32 + <DebugSymbols>true</DebugSymbols>
33 + <DebugType>full</DebugType>
34 + <Optimize>false</Optimize>
35 + <DefineConstants>DEBUG</DefineConstants>
36 + </PropertyGroup>
37 + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
38 + <OutputPath>bin\Release</OutputPath>
39 + <DebugSymbols>true</DebugSymbols>
40 + <DebugType>pdbonly</DebugType>
41 + <Optimize>true</Optimize>
42 + </PropertyGroup>
43 + <ItemGroup>
44 + <Reference Include="System" />
45 + <Reference Include="System.Core" />
46 + <!-- Reference -->
47 + </ItemGroup>
48 + <ItemGroup>
49 + <Compile Include="**/*.cs" />
50 + <Compile Include="AssemblyVersion.cs" />
51 + </ItemGroup>
52 + <ItemGroup>
53 + <!-- ProjectReference -->
54 + </ItemGroup>
55 + <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
56 + <Import Project="$(MSBuildExtensionsPath)\MSBuild.Community.Tasks.Targets" />
57 + <Target Name="BeforeBuild">
58 + <PropertyGroup Condition=" '$(VersionNumber)' == '' ">
59 + <VersionNumber>1.0.0.0</VersionNumber>
60 + </PropertyGroup>
61 + <AssemblyInfo CodeLanguage="C#"
62 + OutputFile="AssemblyVersion.cs"
63 + AssemblyVersion="$(VersionNumber)"
64 + AssemblyFileVersion="$(VersionNumber)"
65 + />
66 + </Target>
67 +</Project>
68
69 diff --git a/app-shells/pash/pash-0.0_p2016060606.ebuild b/app-shells/pash/pash-0.0_p2016060606.ebuild
70 index 3081245..0e02efd 100644
71 --- a/app-shells/pash/pash-0.0_p2016060606.ebuild
72 +++ b/app-shells/pash/pash-0.0_p2016060606.ebuild
73 @@ -22,23 +22,92 @@ EGIT_COMMIT="8d6a48f5ed70d64f9b49e6849b3ee35b887dc254"
74 SRC_URI="${HOMEPAGE}/archive/${EGIT_COMMIT}.tar.gz -> ${P}-${PR}.tar.gz"
75 S="${WORKDIR}/${PROJECTNAME}-${EGIT_COMMIT}"
76
77 -CDEPEND="|| ( >=dev-lang/mono-5.4.0.167 <dev-lang/mono-9999 )"
78 -RDEPEND="${CDEPEND}"
79 -DEPEND="${CDEPEND}"
80 +CDEPEND="|| ( >=dev-lang/mono-5.4.0.167 <dev-lang/mono-9999 )
81 + dev-dotnet/irony-framework
82 + "
83
84 +RDEPEND="${CDEPEND}
85 + "
86 +DEPEND="${CDEPEND}
87 + "
88
89 -METAFILETOBUILD=${PROJECTNAME}.proj
90 +PROJECT1_PATH=Source/Microsoft.PowerShell.Security
91 +PROJECT1_NAME=Microsoft.PowerShell.Security
92 +PROJECT1_OUT=Microsoft.PowerShell.Security
93 +
94 +PROJECT2_PATH=Source/System.Management
95 +PROJECT2_NAME=System.Management
96 +PROJECT2_OUT=System.Management
97 +
98 +PROJECT3_PATH=Source/Microsoft.PowerShell.Commands.Utility
99 +PROJECT3_NAME=Microsoft.PowerShell.Commands.Utility
100 +PROJECT3_OUT=Microsoft.PowerShell.Commands.Utility
101 +
102 +PROJECT4_PATH=Source/Microsoft.PowerShell.Commands.Management
103 +PROJECT4_NAME=Microsoft.Commands.Management
104 +PROJECT4_OUT=Microsoft.PowerShell.Commands.Management
105 +
106 +PROJECT5_PATH=Source/PashConsole
107 +PROJECT5_NAME=PashConsole
108 +PROJECT5_OUT=PashConsole
109 +
110 +src_prepare() {
111 + cp "${FILESDIR}/template.csproj" "${S}/${PROJECT1_PATH}/${PROJECT1_NAME}.csproj" || die
112 + cp "${FILESDIR}/template.csproj" "${S}/${PROJECT2_PATH}/${PROJECT2_NAME}.csproj" || die
113 + sed -i 's#^.*-- Reference --.*$#&\n<Reference Include="Irony" />#' "${S}/${PROJECT2_PATH}/${PROJECT2_NAME}.csproj" || die
114 + sed -i 's#^.*-- Reference --.*$#&\n<Reference Include="Microsoft.CSharp" />#' "${S}/${PROJECT2_PATH}/${PROJECT2_NAME}.csproj" || die
115 + sed -i 's#^.*-- Reference --.*$#&\n<Reference Include="System.Data" />#' "${S}/${PROJECT2_PATH}/${PROJECT2_NAME}.csproj" || die
116 + sed -i 's#^.*-- Reference --.*$#&\n<Reference Include="System.Xml" />#' "${S}/${PROJECT2_PATH}/${PROJECT2_NAME}.csproj" || die
117 + sed -i 's#^.*-- Reference --.*$#&\n<Reference Include="System.Configuration" />#' "${S}/${PROJECT2_PATH}/${PROJECT2_NAME}.csproj" || die
118 + cp "${FILESDIR}/template.csproj" "${S}/${PROJECT3_PATH}/${PROJECT3_NAME}.csproj" || die
119 + sed -i 's#^.*-- Reference --.*$#&\n<Reference Include="System.Data" />#' "${S}/${PROJECT3_PATH}/${PROJECT3_NAME}.csproj" || die
120 + sed -i 's#^.*-- Reference --.*$#&\n<Reference Include="System.Xml" />#' "${S}/${PROJECT3_PATH}/${PROJECT3_NAME}.csproj" || die
121 + sed -i 's#^.*-- Reference --.*$#&\n<Reference Include="System.Net" />#' "${S}/${PROJECT3_PATH}/${PROJECT3_NAME}.csproj" || die
122 + sed -i 's#^.*-- ProjectReference --.*$#&\n<ProjectReference Include="../${PROJECT1_PATH}/${PROJECT1_NAME}.csproj" />#' "${S}/${PROJECT3_PATH}/${PROJECT3_NAME}.csproj" || die
123 + cp "${FILESDIR}/template.csproj" "${S}/${PROJECT4_PATH}/${PROJECT4_NAME}.csproj" || die
124 + sed -i 's#^.*-- Reference --.*$#&\n<Reference Include="System.Data" />#' "${S}/${PROJECT4_PATH}/${PROJECT4_NAME}.csproj" || die
125 + sed -i 's#^.*-- Reference --.*$#&\n<Reference Include="System.Xml" />#' "${S}/${PROJECT4_PATH}/${PROJECT4_NAME}.csproj" || die
126 + sed -i 's#^.*-- Reference --.*$#&\n<Reference Include="System.ServiceProcess" />#' "${S}/${PROJECT4_PATH}/${PROJECT4_NAME}.csproj" || die
127 + sed -i 's#^.*-- ProjectReference --.*$#&\n<ProjectReference Include="../${PROJECT1_PATH}/${PROJECT1_NAME}.csproj" />#' "${S}/${PROJECT4_PATH}/${PROJECT4_NAME}.csproj" || die
128 + cp "${FILESDIR}/template.csproj" "${S}/${PROJECT5_PATH}/${PROJECT5_NAME}.csproj" || die
129 + sed -i 's#^.*-- ProjectReference --.*$#&\n<ProjectReference Include="../${PROJECT1_PATH}/${PROJECT1_NAME}.csproj" />#' "${S}/${PROJECT5_PATH}/${PROJECT5_NAME}.csproj" || die
130 + sed -i 's#^.*-- ProjectReference --.*$#&\n<ProjectReference Include="../${PROJECT2_PATH}/${PROJECT2_NAME}.csproj" />#' "${S}/${PROJECT5_PATH}/${PROJECT5_NAME}.csproj" || die
131 + sed -i 's#^.*-- ProjectReference --.*$#&\n<ProjectReference Include="../${PROJECT3_PATH}/${PROJECT3_NAME}.csproj" />#' "${S}/${PROJECT5_PATH}/${PROJECT5_NAME}.csproj" || die
132 + sed -i 's#^.*-- ProjectReference --.*$#&\n<ProjectReference Include="../${PROJECT4_PATH}/${PROJECT4_NAME}.csproj" />#' "${S}/${PROJECT5_PATH}/${PROJECT5_NAME}.csproj" || die
133 + eapply_user
134 +}
135
136 src_compile() {
137 - emsbuild "${METAFILETOBUILD}"
138 + emsbuild "/p:AssemblyName=${PROJECT1_OUT}" "/p:OutputType=Library" "${S}/${PROJECT1_PATH}/${PROJECT1_NAME}.csproj"
139 + emsbuild "/p:AssemblyName=${PROJECT1_OUT}" "/p:OutputType=Library" "${S}/${PROJECT1_PATH}/${PROJECT2_NAME}.csproj"
140 + emsbuild "/p:AssemblyName=${PROJECT1_OUT}" "/p:OutputType=Library" "${S}/${PROJECT1_PATH}/${PROJECT3_NAME}.csproj"
141 + emsbuild "/p:AssemblyName=${PROJECT1_OUT}" "/p:OutputType=Library" "${S}/${PROJECT1_PATH}/${PROJECT4_NAME}.csproj"
142 + emsbuild "/p:AssemblyName=${PROJECT1_OUT}" "/p:OutputType=Exe" "${S}/${PROJECT1_PATH}/${PROJECT5_NAME}.csproj"
143 }
144
145 src_install() {
146 - insinto /usr/lib/pash/
147 - doins Source/PashConsole/bin/Release/Pash.exe
148 - doins Source/PashConsole/bin/Release/*.dll
149 + if [ "${SLOT}"="0" ] ;
150 + then
151 + SLOTTEDDIR="/usr/share/${PN}"
152 + else
153 + SLOTTEDDIR="/usr/share/${PN}-${SLOT}"
154 + fi
155 + insinto "${SLOTTEDDIR}"
156 +
157 + if use debug; then
158 + DIR="Debug"
159 + else
160 + DIR="Release"
161 + fi
162 + doins Source/PashConsole/bin/${DIR}/Pash.exe
163 + doins Source/PashConsole/bin/${DIR}/*.dll
164 if use developer; then
165 - doins Source/PashConsole/bin/Release/*.pdb
166 + doins Source/PashConsole/bin/${DIR}/*.pdb
167 + fi
168 + if use debug; then
169 + make_wrapper --debug pash "mono ${SLOTTEDDIR}/Pash.exe"
170 + else
171 + make_wrapper pash "mono ${SLOTTEDDIR}/Pash.exe"
172 fi
173 - make_wrapper pash "mono /usr/lib/pash/Pash.exe"
174 }
175 +
176
177 diff --git a/dev-util/tartool/tartool-1.0.0.0.ebuild b/dev-util/tartool/tartool-1.0.0.0.ebuild
178 index 890dff7..d5492bf 100644
179 --- a/dev-util/tartool/tartool-1.0.0.0.ebuild
180 +++ b/dev-util/tartool/tartool-1.0.0.0.ebuild
181 @@ -62,7 +62,7 @@ src_compile() {
182 }
183
184 src_install() {
185 - if [ "${SLOT}" == "0" ] ;
186 + if [ "${SLOT}"="0" ] ;
187 then
188 SLOTTEDDIR="/usr/share/${PN}/"
189 else