commit:     4734848de879680577d9cb8a6248da50a457aa21
Author:     ArsenShnurkov <Arsen.Shnurkov <AT> gmail <DOT> com>
AuthorDate: Thu Sep 29 11:06:24 2016 +0000
Commit:     Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org>
CommitDate: Fri Sep 30 07:52:30 2016 +0000
URL:        https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=4734848d

initial attempt (no version info in assembly)

 .../castle-core/castle-core-4.0.0_beta1.ebuild     |  57 ++++++
 .../remove-warnings-as-errors-4.0.0_beta1.patch    | 200 +++++++++++++++++++++
 dev-dotnet/castle-core/metadata.xml                |  12 ++
 3 files changed, 269 insertions(+)

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
new file mode 100644
index 0000000..f9c44e7
--- /dev/null
+++ b/dev-dotnet/castle-core/castle-core-4.0.0_beta1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+SLOT="0"
+
+USE_DOTNET="net45"
+IUSE="+${USE_DOTNET} +gac developer debug doc"
+
+inherit gac dotnet
+
+SRC_URI="https://github.com/castleproject/Core/archive/v4.0.0-beta001.tar.gz 
-> ${PN}-${PV}.tar.gz"
+RESTRICT="mirror"
+S="${WORKDIR}/Core-4.0.0-beta001"
+
+HOMEPAGE="http://www.castleproject.org/";
+DESCRIPTION="including Castle DynamicProxy, Logging Services and 
DictionaryAdapter "
+LICENSE="Apache-2.0" # 
https://github.com/castleproject/Core/blob/master/LICENSE
+KEYWORDS="~amd64 ~ppc ~x86"
+
+COMMON_DEPEND=">=dev-lang/mono-4.0.2.5
+"
+RDEPEND="${COMMON_DEPEND}
+"
+DEPEND="${COMMON_DEPEND}
+"
+
+src_prepare() {
+       epatch "${FILESDIR}/remove-warnings-as-errors-${PV}.patch"
+       eapply_user
+}
+
+src_compile() {
+       if use debug; then
+               CARGS=/p:Configuration=NET45-Debug
+       else
+               CARGS=/p:Configuration=NET45-Release
+       fi
+
+       if use developer; then
+               SARGS=/p:DebugSymbols=True
+       else
+               SARGS=/p:DebugSymbols=False
+       fi
+
+       exbuild_raw /v:detailed /tv:4.0 /p:TargetFrameworkVersion=v4.5 ${CARGS} 
${SARGS} "/p:RootPath=${S}" "Castle.Core.sln"
+}
+
+src_install() {
+       if use debug; then
+               CONFIGURATION=NET45-Debug
+       else
+               CONFIGURATION=NET45-Release
+       fi
+       egacinstall "src/Castle.Core/bin/${CONFIGURATION}/Castle.Core.dll"
+}

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
new file mode 100644
index 0000000..6b69fa9
--- /dev/null
+++ b/dev-dotnet/castle-core/files/remove-warnings-as-errors-4.0.0_beta1.patch
@@ -0,0 +1,200 @@
+--- src/Castle.Core.Tests/Castle.Core.Tests.csproj
++++ src/Castle.Core.Tests/Castle.Core.Tests.csproj
+@@ -29,7 +29,6 @@
+     <Optimize>false</Optimize>
+     <DefineConstants>TRACE;DEBUG;DOTNET40</DefineConstants>
+     <ErrorReport>prompt</ErrorReport>
+-    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+     <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+     <Prefer32Bit>false</Prefer32Bit>
+   </PropertyGroup>
+@@ -45,7 +44,6 @@
+     <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+     <DocumentationFile>
+     </DocumentationFile>
+-    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+     <Prefer32Bit>false</Prefer32Bit>
+   </PropertyGroup>
+   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 
'NET35-Debug|AnyCPU'">
+@@ -57,7 +55,6 @@
+     <PlatformTarget>AnyCPU</PlatformTarget>
+     <ErrorReport>prompt</ErrorReport>
+     <DebugSymbols>true</DebugSymbols>
+-    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+     <Prefer32Bit>false</Prefer32Bit>
+   </PropertyGroup>
+   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 
'NET35-Release|AnyCPU'">
+@@ -70,7 +67,6 @@
+     <ErrorReport>prompt</ErrorReport>
+     <DocumentationFile>
+     </DocumentationFile>
+-    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+     <Prefer32Bit>false</Prefer32Bit>
+   </PropertyGroup>
+   <PropertyGroup>
+@@ -81,7 +77,6 @@
+     <OutputPath>bin\NET45-Debug\</OutputPath>
+     <DefineConstants>TRACE;DEBUG;DOTNET40 DOTNET45</DefineConstants>
+     <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+-    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+     <DebugType>full</DebugType>
+     <PlatformTarget>AnyCPU</PlatformTarget>
+     <ErrorReport>prompt</ErrorReport>
+@@ -91,7 +86,6 @@
+     <OutputPath>bin\NET45-Release\</OutputPath>
+     <DefineConstants>TRACE;DOTNET40 DOTNET45</DefineConstants>
+     <Optimize>true</Optimize>
+-    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+     <DebugType>pdbonly</DebugType>
+     <PlatformTarget>AnyCPU</PlatformTarget>
+     <ErrorReport>prompt</ErrorReport>
+--- src/Castle.Core/Castle.Core.csproj
++++ src/Castle.Core/Castle.Core.csproj
+@@ -27,7 +27,6 @@
+     <Optimize>false</Optimize>
+     <DefineConstants>TRACE;DEBUG;DOTNET40</DefineConstants>
+     <ErrorReport>prompt</ErrorReport>
+-    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+     <DocumentationFile>
+     </DocumentationFile>
+     <NoWarn>1591</NoWarn>
+@@ -44,7 +43,6 @@
+     <ErrorReport>prompt</ErrorReport>
+     <DocumentationFile>bin\NET40-Release\Castle.Core.xml</DocumentationFile>
+     <NoWarn>1591</NoWarn>
+-    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+     <Prefer32Bit>false</Prefer32Bit>
+   </PropertyGroup>
+   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 
'NET35-Debug|AnyCPU'">
+@@ -56,7 +54,6 @@
+     <DocumentationFile>
+     </DocumentationFile>
+     <Optimize>true</Optimize>
+-    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+     <NoWarn>1591</NoWarn>
+     <DebugType>pdbonly</DebugType>
+     <PlatformTarget>AnyCPU</PlatformTarget>
+@@ -72,7 +69,6 @@
+     <DefineConstants>TRACE;DOTNET35</DefineConstants>
+     <DocumentationFile>bin\NET35-Release\Castle.Core.xml</DocumentationFile>
+     <Optimize>true</Optimize>
+-    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+     <NoWarn>1591</NoWarn>
+     <DebugType>pdbonly</DebugType>
+     <PlatformTarget>AnyCPU</PlatformTarget>
+@@ -84,7 +80,6 @@
+     <OutputPath>bin\NET45-Debug\</OutputPath>
+     <DefineConstants>TRACE;DEBUG;DOTNET40 DOTNET45</DefineConstants>
+     <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+-    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+     <NoWarn>1591</NoWarn>
+     <DebugType>full</DebugType>
+     <PlatformTarget>AnyCPU</PlatformTarget>
+@@ -96,7 +91,6 @@
+     <DefineConstants>TRACE;DOTNET40 DOTNET45</DefineConstants>
+     <DocumentationFile>bin\NET45-Release\Castle.Core.xml</DocumentationFile>
+     <Optimize>true</Optimize>
+-    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+     <NoWarn>1591</NoWarn>
+     <DebugType>pdbonly</DebugType>
+     <PlatformTarget>AnyCPU</PlatformTarget>
+--- 
src/Castle.Services.Logging.NLogIntegration/Castle.Services.Logging.NLogIntegration.csproj
++++ 
src/Castle.Services.Logging.NLogIntegration/Castle.Services.Logging.NLogIntegration.csproj
+@@ -41,7 +41,6 @@
+     <Optimize>false</Optimize>
+     <RegisterForComInterop>false</RegisterForComInterop>
+     <RemoveIntegerChecks>false</RemoveIntegerChecks>
+-    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+     <WarningLevel>4</WarningLevel>
+     <DebugType>full</DebugType>
+     <ErrorReport>prompt</ErrorReport>
+@@ -67,7 +66,6 @@
+     <Optimize>true</Optimize>
+     <RegisterForComInterop>false</RegisterForComInterop>
+     <RemoveIntegerChecks>false</RemoveIntegerChecks>
+-    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+     <WarningLevel>4</WarningLevel>
+     <DebugType>pdbonly</DebugType>
+     <ErrorReport>prompt</ErrorReport>
+@@ -93,7 +91,6 @@
+     <Optimize>false</Optimize>
+     <RegisterForComInterop>false</RegisterForComInterop>
+     <RemoveIntegerChecks>false</RemoveIntegerChecks>
+-    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+     <WarningLevel>4</WarningLevel>
+     <DebugType>full</DebugType>
+     <ErrorReport>prompt</ErrorReport>
+@@ -107,7 +104,6 @@
+     <DefineConstants>TRACE</DefineConstants>
+     <BaseAddress>285212672</BaseAddress>
+     <Optimize>true</Optimize>
+-    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+     <FileAlignment>4096</FileAlignment>
+     <DebugType>pdbonly</DebugType>
+     <PlatformTarget>AnyCPU</PlatformTarget>
+@@ -120,7 +116,6 @@
+     <DefineConstants>TRACE</DefineConstants>
+     <BaseAddress>285212672</BaseAddress>
+     <Optimize>true</Optimize>
+-    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+     <FileAlignment>4096</FileAlignment>
+     <DebugType>pdbonly</DebugType>
+     <PlatformTarget>AnyCPU</PlatformTarget>
+@@ -134,7 +129,6 @@
+     <DefineConstants>TRACE</DefineConstants>
+     <BaseAddress>285212672</BaseAddress>
+     <Optimize>true</Optimize>
+-    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+     <FileAlignment>4096</FileAlignment>
+     <DebugType>pdbonly</DebugType>
+     <PlatformTarget>AnyCPU</PlatformTarget>
+--- 
src/Castle.Services.Logging.log4netIntegration/Castle.Services.Logging.log4netIntegration.csproj
++++ 
src/Castle.Services.Logging.log4netIntegration/Castle.Services.Logging.log4netIntegration.csproj
+@@ -53,7 +53,6 @@
+     <Optimize>false</Optimize>
+     <RegisterForComInterop>false</RegisterForComInterop>
+     <RemoveIntegerChecks>false</RemoveIntegerChecks>
+-    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+     <WarningLevel>4</WarningLevel>
+     <DebugType>full</DebugType>
+     <ErrorReport>prompt</ErrorReport>
+@@ -78,7 +77,6 @@
+     <Optimize>true</Optimize>
+     <RegisterForComInterop>false</RegisterForComInterop>
+     <RemoveIntegerChecks>false</RemoveIntegerChecks>
+-    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+     <WarningLevel>4</WarningLevel>
+     <DebugType>pdbonly</DebugType>
+     <ErrorReport>prompt</ErrorReport>
+@@ -91,7 +89,6 @@
+     <DefineConstants>TRACE</DefineConstants>
+     <BaseAddress>285212672</BaseAddress>
+     <Optimize>true</Optimize>
+-    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+     <FileAlignment>4096</FileAlignment>
+     <DebugType>pdbonly</DebugType>
+     <PlatformTarget>AnyCPU</PlatformTarget>
+@@ -105,7 +102,6 @@
+     <DefineConstants>TRACE</DefineConstants>
+     <BaseAddress>285212672</BaseAddress>
+     <Optimize>true</Optimize>
+-    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+     <FileAlignment>4096</FileAlignment>
+     <DebugType>pdbonly</DebugType>
+     <PlatformTarget>AnyCPU</PlatformTarget>
+@@ -117,7 +113,6 @@
+     <OutputPath>bin\NET45-Debug\</OutputPath>
+     <DefineConstants>TRACE;DEBUG</DefineConstants>
+     <BaseAddress>285212672</BaseAddress>
+-    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+     <FileAlignment>4096</FileAlignment>
+     <DebugType>full</DebugType>
+     <PlatformTarget>AnyCPU</PlatformTarget>
+@@ -130,7 +125,6 @@
+     <DefineConstants>TRACE</DefineConstants>
+     <BaseAddress>285212672</BaseAddress>
+     <Optimize>true</Optimize>
+-    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+     <FileAlignment>4096</FileAlignment>
+     <DebugType>pdbonly</DebugType>
+     <PlatformTarget>AnyCPU</PlatformTarget>

diff --git a/dev-dotnet/castle-core/metadata.xml 
b/dev-dotnet/castle-core/metadata.xml
new file mode 100644
index 0000000..166e76b
--- /dev/null
+++ b/dev-dotnet/castle-core/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="project">
+           <email>dot...@gentoo.org</email>
+           <description>Gentoo Dotnet Project</description>
+       </maintainer>
+       <use>
+               <flag name='developer'>enables debug information for any of 
debug and release builds</flag>
+               <flag name='nupkg'>creates local nuget package</flag>
+       </use>
+</pkgmetadata>

Reply via email to