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/microsoft-web-infrastructure/files/, ...
Date: Wed, 31 Aug 2016 08:31:53
Message-Id: 1472389816.f8b84c35382bf4a9ede387834873bbcf32599141.cynede@gentoo
1 commit: f8b84c35382bf4a9ede387834873bbcf32599141
2 Author: ArsenShnurkov <Arsen.Shnurkov <AT> gmail <DOT> com>
3 AuthorDate: Sun Aug 28 13:10:16 2016 +0000
4 Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 28 13:10:16 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=f8b84c35
7
8 nupkg generation added
9
10 .../files/Microsoft.Web.Infrastructure.csproj | 55 ++++++++++++++++++++++
11 .../files/Microsoft.Web.Infrastructure.nuspec | 21 +++++++++
12 .../microsoft-web-infrastructure-1.0.0.0.ebuild | 49 +++++++++++++++++--
13 3 files changed, 122 insertions(+), 3 deletions(-)
14
15 diff --git a/dev-dotnet/microsoft-web-infrastructure/files/Microsoft.Web.Infrastructure.csproj b/dev-dotnet/microsoft-web-infrastructure/files/Microsoft.Web.Infrastructure.csproj
16 new file mode 100644
17 index 0000000..e5d913d
18 --- /dev/null
19 +++ b/dev-dotnet/microsoft-web-infrastructure/files/Microsoft.Web.Infrastructure.csproj
20 @@ -0,0 +1,55 @@
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)' == '' ">x86</Platform>
26 + <ProjectGuid>{905FFE53-8540-47FD-BA6C-7334993F9EFF}</ProjectGuid>
27 + <OutputType>Library</OutputType>
28 + <RootNamespace>Microsoft.Web.Infrastructure</RootNamespace>
29 + <AssemblyName>Microsoft.Web.Infrastructure</AssemblyName>
30 + <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
31 + </PropertyGroup>
32 + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
33 + <DebugSymbols>true</DebugSymbols>
34 + <DebugType>full</DebugType>
35 + <Optimize>false</Optimize>
36 + <OutputPath>bin\Debug</OutputPath>
37 + <DefineConstants>DEBUG;NET_4_5</DefineConstants>
38 + <ErrorReport>prompt</ErrorReport>
39 + <WarningLevel>4</WarningLevel>
40 + <ConsolePause>false</ConsolePause>
41 + <PlatformTarget>anycpu</PlatformTarget>
42 + </PropertyGroup>
43 + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
44 + <Optimize>true</Optimize>
45 + <OutputPath>bin\Release</OutputPath>
46 + <DefineConstants>NET_4_5</DefineConstants>
47 + <ErrorReport>prompt</ErrorReport>
48 + <WarningLevel>4</WarningLevel>
49 + <ConsolePause>false</ConsolePause>
50 + <PlatformTarget>anycpu</PlatformTarget>
51 + </PropertyGroup>
52 + <ItemGroup>
53 + <Compile Include="Microsoft.Web.Infrastructure\InfrastructureHelper.cs" />
54 + <Compile Include="Microsoft.Web.Infrastructure\HttpContextHelper.cs" />
55 + <Compile Include="Assembly\AssemblyInfo.cs" />
56 + <Compile Include="Microsoft.Web.Infrastructure.DynamicValidationHelper\ValidationUtility.cs" />
57 + <Compile Include="Microsoft.Web.Infrastructure.DynamicValidationHelper\LazyWebROCollection.cs" />
58 + <Compile Include="Microsoft.Web.Infrastructure.DynamicModuleHelper\DynamicModuleUtility.cs" />
59 + <Compile Include="..\..\build\common\Consts.cs">
60 + <Link>Consts.cs</Link>
61 + </Compile>
62 + <Compile Include="..\..\build\common\Locale.cs">
63 + <Link>Locale.cs</Link>
64 + </Compile>
65 + <Compile Include="..\..\build\common\MonoTODOAttribute.cs">
66 + <Link>MonoTODOAttribute.cs</Link>
67 + </Compile>
68 + </ItemGroup>
69 + <ItemGroup>
70 + <Reference Include="System" />
71 + <Reference Include="System.Configuration" />
72 + <Reference Include="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
73 + </ItemGroup>
74 + <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
75 +</Project>
76 \ No newline at end of file
77
78 diff --git a/dev-dotnet/microsoft-web-infrastructure/files/Microsoft.Web.Infrastructure.nuspec b/dev-dotnet/microsoft-web-infrastructure/files/Microsoft.Web.Infrastructure.nuspec
79 new file mode 100644
80 index 0000000..266ad35
81 --- /dev/null
82 +++ b/dev-dotnet/microsoft-web-infrastructure/files/Microsoft.Web.Infrastructure.nuspec
83 @@ -0,0 +1,21 @@
84 +<?xml version="1.0"?>
85 +<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
86 + <metadata>
87 + <id>Microsoft.Web.Infrastructure</id>
88 + <version>1.0.0.0</version>
89 + <title>Microsoft.Web.Infrastructure</title>
90 + <authors>Microsoft</authors>
91 + <owners>Microsoft</owners>
92 + <licenseUrl>http://go.microsoft.com/fwlink/?LinkID=214339</licenseUrl>
93 + <projectUrl>http://www.asp.net/</projectUrl>
94 + <iconUrl>https://download-codeplex.sec.s-msft.com/Download?ProjectName=aspnetwebstack&amp;DownloadId=360555</iconUrl>
95 + <requireLicenseAcceptance>false</requireLicenseAcceptance>
96 + <description>This package contains the Microsoft.Web.Infrastructure assembly that lets you dynamically register HTTP modules at run time.</description>
97 + <summary>This package contains the Microsoft.Web.Infrastructure assembly that lets you dynamically register HTTP modules at run time.</summary>
98 + <tags>ASPNETWEBPAGES</tags>
99 + </metadata>
100 + <files>
101 + <file src="$PATH$/Microsoft.Web.Infrastructure.dll" target="lib/net45/" />
102 + <file src="$PATH$/Microsoft.Web.Infrastructure.dll*" target="lib/net45/" />
103 + </files>
104 +</package>
105
106 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
107 index a04a3e3..3903c4a 100644
108 --- a/dev-dotnet/microsoft-web-infrastructure/microsoft-web-infrastructure-1.0.0.0.ebuild
109 +++ b/dev-dotnet/microsoft-web-infrastructure/microsoft-web-infrastructure-1.0.0.0.ebuild
110 @@ -5,18 +5,22 @@
111 EAPI=6
112
113 USE_DOTNET="net45"
114 -inherit nupkg
115 -IUSE="+${DOTNET}"
116 +inherit gac nupkg
117 +IUSE+=" +net45 debug"
118
119 DESCRIPTION="assembly that lets you dynamically register HTTP modules at run time"
120 HOMEPAGE="https://www.asp.net/"
121 SRC_URI="http://download.mono-project.com/sources/mono/mono-4.6.0.150.tar.bz2"
122
123 +NAME=Microsoft.Web.Infrastructure
124 +
125 LICENSE="Apache-2.0"
126 SLOT="0"
127
128 KEYWORDS="~amd64 ~x86"
129
130 +# 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)
131 +# dependency on nuget is included in nupkg.eclass when USE="nupkg" is set
132 COMMONDEPEND="
133 "
134 RDEPEND="${COMMONDEPEND}
135 @@ -24,4 +28,43 @@ RDEPEND="${COMMONDEPEND}
136 DEPEND="${COMMONDEPEND}
137 "
138
139 -S="${WORKDIR}/${PN}-$(get_version_component_range 1-3)"
140 +S="${WORKDIR}/mono-4.6.0"
141 +
142 +CSPROJ=${NAME}.csproj
143 +
144 +src_prepare()
145 +{
146 + cp "${FILESDIR}/${CSPROJ}" "${S}/mcs/class/${NAME}/${CSPROJ}" || die
147 + cp "${FILESDIR}/${NAME}.nuspec" "${S}/mcs/class/${NAME}/${NAME}.nuspec" || die
148 + eapply_user
149 +}
150 +
151 +src_configure()
152 +{
153 + :;
154 +}
155 +
156 +src_compile()
157 +{
158 + exbuild "${S}/mcs/class/${NAME}/${CSPROJ}"
159 + if use debug; then
160 + DIR="Debug"
161 + else
162 + DIR="Release"
163 + fi
164 + sn -R "${S}/mcs/class/${NAME}/bin/${DIR}/${NAME}.dll" "${S}/mcs/class/mono.snk" || die
165 + sed -i "s~\\\$PATH\\\$~mcs/class/${NAME}/bin/${DIR}~g" "${S}/mcs/class/${NAME}/${NAME}.nuspec" || die
166 + enuspec "${S}/mcs/class/${NAME}/${NAME}.nuspec"
167 +}
168 +
169 +src_install()
170 +{
171 + if use debug; then
172 + DIR="Debug"
173 + else
174 + DIR="Release"
175 + fi
176 + # installation to GAC will cause file collision with mono package
177 + #egacinstall "${S}/mcs/class/${NAME}/bin/${DIR}/${NAME}.dll"
178 + enupkg "${WORKDIR}/${NAME}.1.0.0.0.nupkg"
179 +}