commit: f8b84c35382bf4a9ede387834873bbcf32599141 Author: ArsenShnurkov <Arsen.Shnurkov <AT> gmail <DOT> com> AuthorDate: Sun Aug 28 13:10:16 2016 +0000 Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org> CommitDate: Sun Aug 28 13:10:16 2016 +0000 URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=f8b84c35
nupkg generation added .../files/Microsoft.Web.Infrastructure.csproj | 55 ++++++++++++++++++++++ .../files/Microsoft.Web.Infrastructure.nuspec | 21 +++++++++ .../microsoft-web-infrastructure-1.0.0.0.ebuild | 49 +++++++++++++++++-- 3 files changed, 122 insertions(+), 3 deletions(-) diff --git a/dev-dotnet/microsoft-web-infrastructure/files/Microsoft.Web.Infrastructure.csproj b/dev-dotnet/microsoft-web-infrastructure/files/Microsoft.Web.Infrastructure.csproj new file mode 100644 index 0000000..e5d913d --- /dev/null +++ b/dev-dotnet/microsoft-web-infrastructure/files/Microsoft.Web.Infrastructure.csproj @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">x86</Platform> + <ProjectGuid>{905FFE53-8540-47FD-BA6C-7334993F9EFF}</ProjectGuid> + <OutputType>Library</OutputType> + <RootNamespace>Microsoft.Web.Infrastructure</RootNamespace> + <AssemblyName>Microsoft.Web.Infrastructure</AssemblyName> + <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug</OutputPath> + <DefineConstants>DEBUG;NET_4_5</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + <ConsolePause>false</ConsolePause> + <PlatformTarget>anycpu</PlatformTarget> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> + <Optimize>true</Optimize> + <OutputPath>bin\Release</OutputPath> + <DefineConstants>NET_4_5</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + <ConsolePause>false</ConsolePause> + <PlatformTarget>anycpu</PlatformTarget> + </PropertyGroup> + <ItemGroup> + <Compile Include="Microsoft.Web.Infrastructure\InfrastructureHelper.cs" /> + <Compile Include="Microsoft.Web.Infrastructure\HttpContextHelper.cs" /> + <Compile Include="Assembly\AssemblyInfo.cs" /> + <Compile Include="Microsoft.Web.Infrastructure.DynamicValidationHelper\ValidationUtility.cs" /> + <Compile Include="Microsoft.Web.Infrastructure.DynamicValidationHelper\LazyWebROCollection.cs" /> + <Compile Include="Microsoft.Web.Infrastructure.DynamicModuleHelper\DynamicModuleUtility.cs" /> + <Compile Include="..\..\build\common\Consts.cs"> + <Link>Consts.cs</Link> + </Compile> + <Compile Include="..\..\build\common\Locale.cs"> + <Link>Locale.cs</Link> + </Compile> + <Compile Include="..\..\build\common\MonoTODOAttribute.cs"> + <Link>MonoTODOAttribute.cs</Link> + </Compile> + </ItemGroup> + <ItemGroup> + <Reference Include="System" /> + <Reference Include="System.Configuration" /> + <Reference Include="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> + </ItemGroup> + <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> +</Project> \ No newline at end of file diff --git a/dev-dotnet/microsoft-web-infrastructure/files/Microsoft.Web.Infrastructure.nuspec b/dev-dotnet/microsoft-web-infrastructure/files/Microsoft.Web.Infrastructure.nuspec new file mode 100644 index 0000000..266ad35 --- /dev/null +++ b/dev-dotnet/microsoft-web-infrastructure/files/Microsoft.Web.Infrastructure.nuspec @@ -0,0 +1,21 @@ +<?xml version="1.0"?> +<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd"> + <metadata> + <id>Microsoft.Web.Infrastructure</id> + <version>1.0.0.0</version> + <title>Microsoft.Web.Infrastructure</title> + <authors>Microsoft</authors> + <owners>Microsoft</owners> + <licenseUrl>http://go.microsoft.com/fwlink/?LinkID=214339</licenseUrl> + <projectUrl>http://www.asp.net/</projectUrl> + <iconUrl>https://download-codeplex.sec.s-msft.com/Download?ProjectName=aspnetwebstack&DownloadId=360555</iconUrl> + <requireLicenseAcceptance>false</requireLicenseAcceptance> + <description>This package contains the Microsoft.Web.Infrastructure assembly that lets you dynamically register HTTP modules at run time.</description> + <summary>This package contains the Microsoft.Web.Infrastructure assembly that lets you dynamically register HTTP modules at run time.</summary> + <tags>ASPNETWEBPAGES</tags> + </metadata> + <files> + <file src="$PATH$/Microsoft.Web.Infrastructure.dll" target="lib/net45/" /> + <file src="$PATH$/Microsoft.Web.Infrastructure.dll*" target="lib/net45/" /> + </files> +</package> diff --git a/dev-dotnet/microsoft-web-infrastructure/microsoft-web-infrastructure-1.0.0.0.ebuild b/dev-dotnet/microsoft-web-infrastructure/microsoft-web-infrastructure-1.0.0.0.ebuild index a04a3e3..3903c4a 100644 --- a/dev-dotnet/microsoft-web-infrastructure/microsoft-web-infrastructure-1.0.0.0.ebuild +++ b/dev-dotnet/microsoft-web-infrastructure/microsoft-web-infrastructure-1.0.0.0.ebuild @@ -5,18 +5,22 @@ EAPI=6 USE_DOTNET="net45" -inherit nupkg -IUSE="+${DOTNET}" +inherit gac nupkg +IUSE+=" +net45 debug" DESCRIPTION="assembly that lets you dynamically register HTTP modules at run time" HOMEPAGE="https://www.asp.net/" SRC_URI="http://download.mono-project.com/sources/mono/mono-4.6.0.150.tar.bz2" +NAME=Microsoft.Web.Infrastructure + LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64 ~x86" +# dependency on mono is included in dotnet.eclass which is inherited with nupkg.eclass (so no need to include >=dev-lang/mono-4.0.2.5 here) +# dependency on nuget is included in nupkg.eclass when USE="nupkg" is set COMMONDEPEND=" " RDEPEND="${COMMONDEPEND} @@ -24,4 +28,43 @@ RDEPEND="${COMMONDEPEND} DEPEND="${COMMONDEPEND} " -S="${WORKDIR}/${PN}-$(get_version_component_range 1-3)" +S="${WORKDIR}/mono-4.6.0" + +CSPROJ=${NAME}.csproj + +src_prepare() +{ + cp "${FILESDIR}/${CSPROJ}" "${S}/mcs/class/${NAME}/${CSPROJ}" || die + cp "${FILESDIR}/${NAME}.nuspec" "${S}/mcs/class/${NAME}/${NAME}.nuspec" || die + eapply_user +} + +src_configure() +{ + :; +} + +src_compile() +{ + exbuild "${S}/mcs/class/${NAME}/${CSPROJ}" + if use debug; then + DIR="Debug" + else + DIR="Release" + fi + sn -R "${S}/mcs/class/${NAME}/bin/${DIR}/${NAME}.dll" "${S}/mcs/class/mono.snk" || die + sed -i "s~\\\$PATH\\\$~mcs/class/${NAME}/bin/${DIR}~g" "${S}/mcs/class/${NAME}/${NAME}.nuspec" || die + enuspec "${S}/mcs/class/${NAME}/${NAME}.nuspec" +} + +src_install() +{ + if use debug; then + DIR="Debug" + else + DIR="Release" + fi + # installation to GAC will cause file collision with mono package + #egacinstall "${S}/mcs/class/${NAME}/bin/${DIR}/${NAME}.dll" + enupkg "${WORKDIR}/${NAME}.1.0.0.0.nupkg" +}
