* [gentoo-commits] proj/dotnet:master commit in: dev-dotnet/castle-dynamicproxy/, dev-dotnet/castle-dynamicproxy/files/
@ 2017-11-10 6:48 Mikhail Pukhlikov
0 siblings, 0 replies; only message in thread
From: Mikhail Pukhlikov @ 2017-11-10 6:48 UTC (permalink / raw
To: gentoo-commits
commit: c7504abb68532720108655a73860642b99fb1cab
Author: ArsenShnurkov <ArsenShnurkov <AT> users <DOT> noreply <DOT> github <DOT> com>
AuthorDate: Wed Nov 1 17:43:29 2017 +0000
Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org>
CommitDate: Wed Nov 1 17:43:29 2017 +0000
URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=c7504abb
compilation completed
.../castle-dynamicproxy-2.1.0.0.ebuild | 57 ++++++++++++++++------
.../files/Castle.Core-vs2008-2.1.0.0.csproj | 45 +++++++++++++++++
.../Castle.DynamicProxy-vs2008-2.1.0.0.csproj | 49 +++++++++++++++++++
3 files changed, 136 insertions(+), 15 deletions(-)
diff --git a/dev-dotnet/castle-dynamicproxy/castle-dynamicproxy-2.1.0.0.ebuild b/dev-dotnet/castle-dynamicproxy/castle-dynamicproxy-2.1.0.0.ebuild
index f651d07..2387629 100644
--- a/dev-dotnet/castle-dynamicproxy/castle-dynamicproxy-2.1.0.0.ebuild
+++ b/dev-dotnet/castle-dynamicproxy/castle-dynamicproxy-2.1.0.0.ebuild
@@ -33,56 +33,83 @@ RDEPEND="${CDEPEND}
DEPEND="${CDEPEND}
"
-PROJECT_PATH="Tools/Castle.DynamicProxy2/Castle.DynamicProxy"
-PROJECT_NAME="Castle.DynamicProxy-vs2008"
-PROJECT_OUT="CastleCore.DynamicProxy2"
+PROJECT_PATH1="Core/Castle.Core"
+PROJECT_PATH2="Tools/Castle.DynamicProxy2/Castle.DynamicProxy"
+PROJECT_NAME1="Castle.Core-vs2008"
+PROJECT_NAME2="Castle.DynamicProxy-vs2008"
+PROJECT_OUT1="Castle.Core"
+PROJECT_OUT2="Castle.DynamicProxy2"
KEY2="${DISTDIR}/mono.snk"
-ASSEMBLY_VERSION="1.0.2017.0831"
+ASSEMBLY_VERSION="2.1.0.0"
-function output_filename ( ) {
+function output_filename1 ( ) {
local DIR=""
if use debug; then
DIR="Debug"
else
DIR="Release"
fi
- echo "${PROJECT_PATH}/bin/${DIR}/${PROJECT_OUT}.dll"
+ echo "${PROJECT_PATH1}/bin/${DIR}/${PROJECT_OUT1}.dll"
+}
+
+function output_filename2 ( ) {
+ local DIR=""
+ if use debug; then
+ DIR="Debug"
+ else
+ DIR="Release"
+ fi
+ echo "${PROJECT_PATH2}/bin/${DIR}/${PROJECT_OUT2}.dll"
}
src_prepare() {
- #cp "${FILESDIR}/${PROJECT_NAME}-${PV}.csproj" "${S}/${PROJECT_PATH}/${PROJECT_NAME}.csproj" || die
+ # copy (replace) project files
+ cp "${FILESDIR}/${PROJECT_NAME1}-${PV}.csproj" "${S}/${PROJECT_PATH1}/${PROJECT_NAME1}.csproj" || die
+ cp "${FILESDIR}/${PROJECT_NAME2}-${PV}.csproj" "${S}/${PROJECT_PATH2}/${PROJECT_NAME2}.csproj" || die
+ # create version info files
cat <<-METADATA >"${S}/Core/Castle.Core/AssemblyInfo.cs" || die
[assembly: System.Reflection.AssemblyVersion("2.1.0.0")]
METADATA
+ cat <<-METADATA >"${S}/Tools/Castle.DynamicProxy2/Castle.DynamicProxy/AssemblyInfo.cs" || die
+ [assembly: System.Reflection.AssemblyVersion("2.1.0.0")]
+ METADATA
+ # other initialization
eapply_user
}
src_compile() {
- emsbuild /p:RootNamespace=Irony /p:SignAssembly=true /p:PublicSign=true "/p:AssemblyOriginatorKeyFile=${KEY2}" "/p:OutputName=${PROJECT_OUT}" "/p:OutputType=Library" "/p:VersionNumber=${ASSEMBLY_VERSION}" "${S}/${PROJECT_PATH}/${PROJECT_NAME}.csproj"
- sn -R "$(output_filename)" "${KEY2}" || die
+ emsbuild /p:SignAssembly=true /p:PublicSign=true "/p:AssemblyOriginatorKeyFile=${KEY2}" "${S}/${PROJECT_PATH2}/${PROJECT_NAME2}.csproj"
+ sn -R "$(output_filename1)" "${KEY2}" || die
+ sn -R "$(output_filename2)" "${KEY2}" || die
}
src_install() {
insinto "/gac"
- doins "$(output_filename)"
+ doins "$(output_filename1)"
+ doins "$(output_filename2)"
}
pkg_preinst()
{
- echo mv "${D}/gac/${PROJECT_OUT}.dll" "${T}/${PROJECT_OUT}.dll"
- mv "${D}/gac/${PROJECT_OUT}.dll" "${T}/${PROJECT_OUT}.dll" || die
+ echo mv "${D}/gac/${PROJECT_OUT1}.dll" "${T}/${PROJECT_OUT1}.dll"
+ echo mv "${D}/gac/${PROJECT_OUT2}.dll" "${T}/${PROJECT_OUT2}.dll"
+ mv "${D}/gac/${PROJECT_OUT1}.dll" "${T}/${PROJECT_OUT1}.dll" || die
+ mv "${D}/gac/${PROJECT_OUT2}.dll" "${T}/${PROJECT_OUT2}.dll" || die
echo rm -rf "${D}/gac"
rm -rf "${D}/gac" || die
}
pkg_postinst()
{
- egacadd "${T}/${PROJECT_OUT}.dll"
- rm "${T}/${PROJECT_OUT}.dll" || die
+ egacadd "${T}/${PROJECT_OUT1}.dll"
+ egacadd "${T}/${PROJECT_OUT2}.dll"
+ rm "${T}/${PROJECT_OUT1}.dll" || die
+ rm "${T}/${PROJECT_OUT2}.dll" || die
}
pkg_prerm()
{
- egacdel "${PROJECT_OUT}, Version=${ASSEMBLY_VERSION}, Culture=neutral, PublicKeyToken=0738eb9f132ed756"
+ egacdel "${PROJECT_OUT1}, Version=${ASSEMBLY_VERSION}, Culture=neutral, PublicKeyToken=0738eb9f132ed756"
+ egacdel "${PROJECT_OUT2}, Version=${ASSEMBLY_VERSION}, Culture=neutral, PublicKeyToken=0738eb9f132ed756"
}
diff --git a/dev-dotnet/castle-dynamicproxy/files/Castle.Core-vs2008-2.1.0.0.csproj b/dev-dotnet/castle-dynamicproxy/files/Castle.Core-vs2008-2.1.0.0.csproj
new file mode 100644
index 0000000..ffd4cdb
--- /dev/null
+++ b/dev-dotnet/castle-dynamicproxy/files/Castle.Core-vs2008-2.1.0.0.csproj
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{E4FA5B53-7D36-429E-8E5C-53D5479242BA}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <RootNamespace>Castle</RootNamespace>
+ <AssemblyName>Castle.Core</AssemblyName>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DefineConstants>TRACE;DEBUG;DOTNET40</DefineConstants>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DebugSymbols>true</DebugSymbols>
+ <Optimize>false</Optimize>
+ <DebugType>full</DebugType>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DefineConstants>TRACE;DOTNET40</DefineConstants>
+ <OutputPath>bin\Release\</OutputPath>
+ <Optimize>true</Optimize>
+ <DebugType>pdbonly</DebugType>
+ <DebugSymbols>false</DebugSymbols>
+ </PropertyGroup>
+ <PropertyGroup>
+ <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
+ <NoStdLib>false</NoStdLib>
+ <WarningLevel>4</WarningLevel>
+ <NoWarn>1591</NoWarn>
+ <ErrorReport>prompt</ErrorReport>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Configuration" />
+ <Reference Include="System.Xml" />
+ <Reference Include="System.Web" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="**/*.cs" />
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+</Project>
+
diff --git a/dev-dotnet/castle-dynamicproxy/files/Castle.DynamicProxy-vs2008-2.1.0.0.csproj b/dev-dotnet/castle-dynamicproxy/files/Castle.DynamicProxy-vs2008-2.1.0.0.csproj
new file mode 100644
index 0000000..52cee76
--- /dev/null
+++ b/dev-dotnet/castle-dynamicproxy/files/Castle.DynamicProxy-vs2008-2.1.0.0.csproj
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{2DE7CC8C-6F06-43BC-A7B6-9466BEDEAC28}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <RootNamespace>Castle.DynamicProxy</RootNamespace>
+ <AssemblyName>Castle.DynamicProxy2</AssemblyName>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DefineConstants>TRACE;DEBUG;PHYSICALASSEMBLY</DefineConstants>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DebugSymbols>true</DebugSymbols>
+ <Optimize>false</Optimize>
+ <DebugType>full</DebugType>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DefineConstants>TRACE;PHYSICALASSEMBLY</DefineConstants>
+ <OutputPath>bin\Release\</OutputPath>
+ <Optimize>true</Optimize>
+ <DebugType>pdbonly</DebugType>
+ <DebugSymbols>false</DebugSymbols>
+ </PropertyGroup>
+ <PropertyGroup>
+ <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
+ <NoStdLib>false</NoStdLib>
+ <WarningLevel>4</WarningLevel>
+ <NoWarn>1591</NoWarn>
+ <ErrorReport>prompt</ErrorReport>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="**/*.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\..\..\Core\Castle.Core\Castle.Core-vs2008.csproj">
+ <Project>{E4FA5B53-7D36-429E-8E5C-53D5479242BA}</Project>
+ <Name>Castle.Core-vs2008</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+</Project>
+
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-11-10 6:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-10 6:48 [gentoo-commits] proj/dotnet:master commit in: dev-dotnet/castle-dynamicproxy/, dev-dotnet/castle-dynamicproxy/files/ Mikhail Pukhlikov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox