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-dotnet/castle-core/, dev-dotnet/castle-core/files/
Date: Fri, 30 Sep 2016 08:45:40
Message-Id: 1475221950.4734848de879680577d9cb8a6248da50a457aa21.cynede@gentoo
1 commit: 4734848de879680577d9cb8a6248da50a457aa21
2 Author: ArsenShnurkov <Arsen.Shnurkov <AT> gmail <DOT> com>
3 AuthorDate: Thu Sep 29 11:06:24 2016 +0000
4 Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 30 07:52:30 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=4734848d
7
8 initial attempt (no version info in assembly)
9
10 .../castle-core/castle-core-4.0.0_beta1.ebuild | 57 ++++++
11 .../remove-warnings-as-errors-4.0.0_beta1.patch | 200 +++++++++++++++++++++
12 dev-dotnet/castle-core/metadata.xml | 12 ++
13 3 files changed, 269 insertions(+)
14
15 diff --git a/dev-dotnet/castle-core/castle-core-4.0.0_beta1.ebuild b/dev-dotnet/castle-core/castle-core-4.0.0_beta1.ebuild
16 new file mode 100644
17 index 0000000..f9c44e7
18 --- /dev/null
19 +++ b/dev-dotnet/castle-core/castle-core-4.0.0_beta1.ebuild
20 @@ -0,0 +1,57 @@
21 +# Copyright 1999-2016 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=6
26 +SLOT="0"
27 +
28 +USE_DOTNET="net45"
29 +IUSE="+${USE_DOTNET} +gac developer debug doc"
30 +
31 +inherit gac dotnet
32 +
33 +SRC_URI="https://github.com/castleproject/Core/archive/v4.0.0-beta001.tar.gz -> ${PN}-${PV}.tar.gz"
34 +RESTRICT="mirror"
35 +S="${WORKDIR}/Core-4.0.0-beta001"
36 +
37 +HOMEPAGE="http://www.castleproject.org/"
38 +DESCRIPTION="including Castle DynamicProxy, Logging Services and DictionaryAdapter "
39 +LICENSE="Apache-2.0" # https://github.com/castleproject/Core/blob/master/LICENSE
40 +KEYWORDS="~amd64 ~ppc ~x86"
41 +
42 +COMMON_DEPEND=">=dev-lang/mono-4.0.2.5
43 +"
44 +RDEPEND="${COMMON_DEPEND}
45 +"
46 +DEPEND="${COMMON_DEPEND}
47 +"
48 +
49 +src_prepare() {
50 + epatch "${FILESDIR}/remove-warnings-as-errors-${PV}.patch"
51 + eapply_user
52 +}
53 +
54 +src_compile() {
55 + if use debug; then
56 + CARGS=/p:Configuration=NET45-Debug
57 + else
58 + CARGS=/p:Configuration=NET45-Release
59 + fi
60 +
61 + if use developer; then
62 + SARGS=/p:DebugSymbols=True
63 + else
64 + SARGS=/p:DebugSymbols=False
65 + fi
66 +
67 + exbuild_raw /v:detailed /tv:4.0 /p:TargetFrameworkVersion=v4.5 ${CARGS} ${SARGS} "/p:RootPath=${S}" "Castle.Core.sln"
68 +}
69 +
70 +src_install() {
71 + if use debug; then
72 + CONFIGURATION=NET45-Debug
73 + else
74 + CONFIGURATION=NET45-Release
75 + fi
76 + egacinstall "src/Castle.Core/bin/${CONFIGURATION}/Castle.Core.dll"
77 +}
78
79 diff --git a/dev-dotnet/castle-core/files/remove-warnings-as-errors-4.0.0_beta1.patch b/dev-dotnet/castle-core/files/remove-warnings-as-errors-4.0.0_beta1.patch
80 new file mode 100644
81 index 0000000..6b69fa9
82 --- /dev/null
83 +++ b/dev-dotnet/castle-core/files/remove-warnings-as-errors-4.0.0_beta1.patch
84 @@ -0,0 +1,200 @@
85 +--- src/Castle.Core.Tests/Castle.Core.Tests.csproj
86 ++++ src/Castle.Core.Tests/Castle.Core.Tests.csproj
87 +@@ -29,7 +29,6 @@
88 + <Optimize>false</Optimize>
89 + <DefineConstants>TRACE;DEBUG;DOTNET40</DefineConstants>
90 + <ErrorReport>prompt</ErrorReport>
91 +- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
92 + <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
93 + <Prefer32Bit>false</Prefer32Bit>
94 + </PropertyGroup>
95 +@@ -45,7 +44,6 @@
96 + <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
97 + <DocumentationFile>
98 + </DocumentationFile>
99 +- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
100 + <Prefer32Bit>false</Prefer32Bit>
101 + </PropertyGroup>
102 + <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'NET35-Debug|AnyCPU'">
103 +@@ -57,7 +55,6 @@
104 + <PlatformTarget>AnyCPU</PlatformTarget>
105 + <ErrorReport>prompt</ErrorReport>
106 + <DebugSymbols>true</DebugSymbols>
107 +- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
108 + <Prefer32Bit>false</Prefer32Bit>
109 + </PropertyGroup>
110 + <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'NET35-Release|AnyCPU'">
111 +@@ -70,7 +67,6 @@
112 + <ErrorReport>prompt</ErrorReport>
113 + <DocumentationFile>
114 + </DocumentationFile>
115 +- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
116 + <Prefer32Bit>false</Prefer32Bit>
117 + </PropertyGroup>
118 + <PropertyGroup>
119 +@@ -81,7 +77,6 @@
120 + <OutputPath>bin\NET45-Debug\</OutputPath>
121 + <DefineConstants>TRACE;DEBUG;DOTNET40 DOTNET45</DefineConstants>
122 + <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
123 +- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
124 + <DebugType>full</DebugType>
125 + <PlatformTarget>AnyCPU</PlatformTarget>
126 + <ErrorReport>prompt</ErrorReport>
127 +@@ -91,7 +86,6 @@
128 + <OutputPath>bin\NET45-Release\</OutputPath>
129 + <DefineConstants>TRACE;DOTNET40 DOTNET45</DefineConstants>
130 + <Optimize>true</Optimize>
131 +- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
132 + <DebugType>pdbonly</DebugType>
133 + <PlatformTarget>AnyCPU</PlatformTarget>
134 + <ErrorReport>prompt</ErrorReport>
135 +--- src/Castle.Core/Castle.Core.csproj
136 ++++ src/Castle.Core/Castle.Core.csproj
137 +@@ -27,7 +27,6 @@
138 + <Optimize>false</Optimize>
139 + <DefineConstants>TRACE;DEBUG;DOTNET40</DefineConstants>
140 + <ErrorReport>prompt</ErrorReport>
141 +- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
142 + <DocumentationFile>
143 + </DocumentationFile>
144 + <NoWarn>1591</NoWarn>
145 +@@ -44,7 +43,6 @@
146 + <ErrorReport>prompt</ErrorReport>
147 + <DocumentationFile>bin\NET40-Release\Castle.Core.xml</DocumentationFile>
148 + <NoWarn>1591</NoWarn>
149 +- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
150 + <Prefer32Bit>false</Prefer32Bit>
151 + </PropertyGroup>
152 + <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'NET35-Debug|AnyCPU'">
153 +@@ -56,7 +54,6 @@
154 + <DocumentationFile>
155 + </DocumentationFile>
156 + <Optimize>true</Optimize>
157 +- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
158 + <NoWarn>1591</NoWarn>
159 + <DebugType>pdbonly</DebugType>
160 + <PlatformTarget>AnyCPU</PlatformTarget>
161 +@@ -72,7 +69,6 @@
162 + <DefineConstants>TRACE;DOTNET35</DefineConstants>
163 + <DocumentationFile>bin\NET35-Release\Castle.Core.xml</DocumentationFile>
164 + <Optimize>true</Optimize>
165 +- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
166 + <NoWarn>1591</NoWarn>
167 + <DebugType>pdbonly</DebugType>
168 + <PlatformTarget>AnyCPU</PlatformTarget>
169 +@@ -84,7 +80,6 @@
170 + <OutputPath>bin\NET45-Debug\</OutputPath>
171 + <DefineConstants>TRACE;DEBUG;DOTNET40 DOTNET45</DefineConstants>
172 + <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
173 +- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
174 + <NoWarn>1591</NoWarn>
175 + <DebugType>full</DebugType>
176 + <PlatformTarget>AnyCPU</PlatformTarget>
177 +@@ -96,7 +91,6 @@
178 + <DefineConstants>TRACE;DOTNET40 DOTNET45</DefineConstants>
179 + <DocumentationFile>bin\NET45-Release\Castle.Core.xml</DocumentationFile>
180 + <Optimize>true</Optimize>
181 +- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
182 + <NoWarn>1591</NoWarn>
183 + <DebugType>pdbonly</DebugType>
184 + <PlatformTarget>AnyCPU</PlatformTarget>
185 +--- src/Castle.Services.Logging.NLogIntegration/Castle.Services.Logging.NLogIntegration.csproj
186 ++++ src/Castle.Services.Logging.NLogIntegration/Castle.Services.Logging.NLogIntegration.csproj
187 +@@ -41,7 +41,6 @@
188 + <Optimize>false</Optimize>
189 + <RegisterForComInterop>false</RegisterForComInterop>
190 + <RemoveIntegerChecks>false</RemoveIntegerChecks>
191 +- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
192 + <WarningLevel>4</WarningLevel>
193 + <DebugType>full</DebugType>
194 + <ErrorReport>prompt</ErrorReport>
195 +@@ -67,7 +66,6 @@
196 + <Optimize>true</Optimize>
197 + <RegisterForComInterop>false</RegisterForComInterop>
198 + <RemoveIntegerChecks>false</RemoveIntegerChecks>
199 +- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
200 + <WarningLevel>4</WarningLevel>
201 + <DebugType>pdbonly</DebugType>
202 + <ErrorReport>prompt</ErrorReport>
203 +@@ -93,7 +91,6 @@
204 + <Optimize>false</Optimize>
205 + <RegisterForComInterop>false</RegisterForComInterop>
206 + <RemoveIntegerChecks>false</RemoveIntegerChecks>
207 +- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
208 + <WarningLevel>4</WarningLevel>
209 + <DebugType>full</DebugType>
210 + <ErrorReport>prompt</ErrorReport>
211 +@@ -107,7 +104,6 @@
212 + <DefineConstants>TRACE</DefineConstants>
213 + <BaseAddress>285212672</BaseAddress>
214 + <Optimize>true</Optimize>
215 +- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
216 + <FileAlignment>4096</FileAlignment>
217 + <DebugType>pdbonly</DebugType>
218 + <PlatformTarget>AnyCPU</PlatformTarget>
219 +@@ -120,7 +116,6 @@
220 + <DefineConstants>TRACE</DefineConstants>
221 + <BaseAddress>285212672</BaseAddress>
222 + <Optimize>true</Optimize>
223 +- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
224 + <FileAlignment>4096</FileAlignment>
225 + <DebugType>pdbonly</DebugType>
226 + <PlatformTarget>AnyCPU</PlatformTarget>
227 +@@ -134,7 +129,6 @@
228 + <DefineConstants>TRACE</DefineConstants>
229 + <BaseAddress>285212672</BaseAddress>
230 + <Optimize>true</Optimize>
231 +- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
232 + <FileAlignment>4096</FileAlignment>
233 + <DebugType>pdbonly</DebugType>
234 + <PlatformTarget>AnyCPU</PlatformTarget>
235 +--- src/Castle.Services.Logging.log4netIntegration/Castle.Services.Logging.log4netIntegration.csproj
236 ++++ src/Castle.Services.Logging.log4netIntegration/Castle.Services.Logging.log4netIntegration.csproj
237 +@@ -53,7 +53,6 @@
238 + <Optimize>false</Optimize>
239 + <RegisterForComInterop>false</RegisterForComInterop>
240 + <RemoveIntegerChecks>false</RemoveIntegerChecks>
241 +- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
242 + <WarningLevel>4</WarningLevel>
243 + <DebugType>full</DebugType>
244 + <ErrorReport>prompt</ErrorReport>
245 +@@ -78,7 +77,6 @@
246 + <Optimize>true</Optimize>
247 + <RegisterForComInterop>false</RegisterForComInterop>
248 + <RemoveIntegerChecks>false</RemoveIntegerChecks>
249 +- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
250 + <WarningLevel>4</WarningLevel>
251 + <DebugType>pdbonly</DebugType>
252 + <ErrorReport>prompt</ErrorReport>
253 +@@ -91,7 +89,6 @@
254 + <DefineConstants>TRACE</DefineConstants>
255 + <BaseAddress>285212672</BaseAddress>
256 + <Optimize>true</Optimize>
257 +- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
258 + <FileAlignment>4096</FileAlignment>
259 + <DebugType>pdbonly</DebugType>
260 + <PlatformTarget>AnyCPU</PlatformTarget>
261 +@@ -105,7 +102,6 @@
262 + <DefineConstants>TRACE</DefineConstants>
263 + <BaseAddress>285212672</BaseAddress>
264 + <Optimize>true</Optimize>
265 +- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
266 + <FileAlignment>4096</FileAlignment>
267 + <DebugType>pdbonly</DebugType>
268 + <PlatformTarget>AnyCPU</PlatformTarget>
269 +@@ -117,7 +113,6 @@
270 + <OutputPath>bin\NET45-Debug\</OutputPath>
271 + <DefineConstants>TRACE;DEBUG</DefineConstants>
272 + <BaseAddress>285212672</BaseAddress>
273 +- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
274 + <FileAlignment>4096</FileAlignment>
275 + <DebugType>full</DebugType>
276 + <PlatformTarget>AnyCPU</PlatformTarget>
277 +@@ -130,7 +125,6 @@
278 + <DefineConstants>TRACE</DefineConstants>
279 + <BaseAddress>285212672</BaseAddress>
280 + <Optimize>true</Optimize>
281 +- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
282 + <FileAlignment>4096</FileAlignment>
283 + <DebugType>pdbonly</DebugType>
284 + <PlatformTarget>AnyCPU</PlatformTarget>
285
286 diff --git a/dev-dotnet/castle-core/metadata.xml b/dev-dotnet/castle-core/metadata.xml
287 new file mode 100644
288 index 0000000..166e76b
289 --- /dev/null
290 +++ b/dev-dotnet/castle-core/metadata.xml
291 @@ -0,0 +1,12 @@
292 +<?xml version="1.0" encoding="UTF-8"?>
293 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
294 +<pkgmetadata>
295 + <maintainer type="project">
296 + <email>dotnet@g.o</email>
297 + <description>Gentoo Dotnet Project</description>
298 + </maintainer>
299 + <use>
300 + <flag name='developer'>enables debug information for any of debug and release builds</flag>
301 + <flag name='nupkg'>creates local nuget package</flag>
302 + </use>
303 +</pkgmetadata>