commit: 4400f6378b2c7d85627e76156bdf54106844f504
Author: ArsenShnurkov <Arsen.Shnurkov <AT> gmail <DOT> com>
AuthorDate: Fri Sep 2 10:18:09 2016 +0000
Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org>
CommitDate: Fri Sep 2 10:18:09 2016 +0000
URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=4400f637
helpers added
.../files/disable-warning-as-error.patch | 11 +++++++++++
.../system-web-razor-3.2.3_p2014092400.ebuild | 8 +++++++-
.../files/remove-DataVisualiztion.patch | 20 ++++++++++++++++++++
.../system-web-webpages-3.2.3_p2014092400.ebuild | 8 +++++++-
4 files changed, 45 insertions(+), 2 deletions(-)
diff --git a/dev-dotnet/system-web-razor/files/disable-warning-as-error.patch
b/dev-dotnet/system-web-razor/files/disable-warning-as-error.patch
new file mode 100644
index 0000000..d8fbfbf
--- /dev/null
+++ b/dev-dotnet/system-web-razor/files/disable-warning-as-error.patch
@@ -0,0 +1,11 @@
+diff -u a/src/System.Web.WebPages/System.Web.WebPages.csproj
b/src/System.Web.WebPages/System.Web.WebPages.csproj
+--- a/src/System.Web.WebPages/System.Web.WebPages.csproj 2016-09-02
07:36:21.000000000 +0300
++++ b/src/System.Web.WebPages/System.Web.WebPages.csproj 2016-09-02
07:39:47.965011321 +0300
+@@ -11,6 +11,7 @@
+ <RunCodeAnalysis>$(CodeAnalysis)</RunCodeAnalysis>
+ <CodeAnalysisRuleSet>..\Strict.ruleset</CodeAnalysisRuleSet>
+ <DefineConstants>$(DefineConstants);ASPNETWEBPAGES</DefineConstants>
++ <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
+ <NoWarn>1591</NoWarn>
+ </PropertyGroup>
+ <ItemGroup>
diff --git
a/dev-dotnet/system-web-razor/system-web-razor-3.2.3_p2014092400.ebuild
b/dev-dotnet/system-web-razor/system-web-razor-3.2.3_p2014092400.ebuild
index f1acd16..947f6be 100644
--- a/dev-dotnet/system-web-razor/system-web-razor-3.2.3_p2014092400.ebuild
+++ b/dev-dotnet/system-web-razor/system-web-razor-3.2.3_p2014092400.ebuild
@@ -48,6 +48,7 @@ src_prepare() {
cp "${FILESDIR}/${NUSPEC_ID}.nuspec" "${S}" || die
chmod -R +rw "${S}" || die
patch_nuspec_file "${S}/${NUSPEC_ID}.nuspec"
+ eapply "${FILESDIR}/disable-warning-as-error.patch"
eapply_user
}
@@ -61,7 +62,8 @@ patch_nuspec_file()
fi
FILES_STRING=`sed 's/[\/&]/\\\\&/g' <<-EOF || die "escaping
replacement string characters"
<files> <!-- https://docs.nuget.org/create/nuspec-reference
-->
- <file src="${DLL_PATH}/${DIR}/${DLL_NAME}.dll*"
target="lib/net45/" />
+ <file src="${DLL_PATH}/${DIR}/${DLL_NAME}.*"
target="lib/net45/" />
+ <file src="${DLL_PATH}/${DIR}/System.Web.WebPages.Razor.*"
target="lib/net45/" />
</files>
EOF
`
@@ -72,6 +74,9 @@ patch_nuspec_file()
src_compile() {
exbuild "${METAFILETOBUILD}"
sn -R "${DLL_PATH}/${DIR}/${DLL_NAME}.dll"
/var/lib/layman/dotnet/eclass/mono.snk || die
+
+ exbuild
"${S}/src/System.Web.WebPages.Razor/System.Web.WebPages.Razor.csproj"
+ sn -R "${DLL_PATH}/${DIR}/System.Web.WebPages.Razor.dll"
/var/lib/layman/dotnet/eclass/mono.snk || die
einfo nuspec: "${S}/${NUSPEC_ID}.nuspec"
einfo nupkg: "${WORKDIR}/${NUSPEC_ID}.${NUSPEC_VERSION}.nupkg"
@@ -87,6 +92,7 @@ src_install() {
fi
egacinstall "${DLL_PATH}/${DIR}/${DLL_NAME}.dll"
+ egacinstall "${DLL_PATH}/${DIR}/System.Web.WebPages.Razor.dll"
enupkg "${WORKDIR}/${NUSPEC_ID}.${NUSPEC_VERSION}.nupkg"
}
diff --git a/dev-dotnet/system-web-webpages/files/remove-DataVisualiztion.patch
b/dev-dotnet/system-web-webpages/files/remove-DataVisualiztion.patch
new file mode 100644
index 0000000..af13ac6
--- /dev/null
+++ b/dev-dotnet/system-web-webpages/files/remove-DataVisualiztion.patch
@@ -0,0 +1,20 @@
+diff -u a/src/System.Web.Helpers/System.Web.Helpers.csproj
b/src/System.Web.Helpers/System.Web.Helpers.csproj
+--- a/src/System.Web.Helpers/System.Web.Helpers.csproj 2016-08-28
05:44:59.000000000 +0300
++++ b/src/System.Web.Helpers/System.Web.Helpers.csproj 2016-09-02
13:04:01.000000000 +0300
+@@ -19,7 +19,6 @@
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Runtime.Caching" />
+ <Reference Include="System.Web" />
+- <Reference Include="System.Web.DataVisualization" />
+ <Reference Include="System.Web.Extensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.XML" />
+@@ -31,8 +30,6 @@
+ <Compile Include="..\GlobalSuppressions.cs">
+ <Link>Common\GlobalSuppressions.cs</Link>
+ </Compile>
+- <Compile Include="Chart\Chart.cs" />
+- <Compile Include="Chart\ChartTheme.cs" />
+ <Compile Include="Common\VirtualPathUtil.cs" />
+ <Compile Include="ConversionUtil.cs" />
+ <Compile Include="Crypto.cs" />
diff --git
a/dev-dotnet/system-web-webpages/system-web-webpages-3.2.3_p2014092400.ebuild
b/dev-dotnet/system-web-webpages/system-web-webpages-3.2.3_p2014092400.ebuild
index 946f16c..c909998 100644
---
a/dev-dotnet/system-web-webpages/system-web-webpages-3.2.3_p2014092400.ebuild
+++
b/dev-dotnet/system-web-webpages/system-web-webpages-3.2.3_p2014092400.ebuild
@@ -48,6 +48,7 @@ src_prepare() {
cp "${FILESDIR}/${NUSPEC_ID}.nuspec" "${S}" || die
chmod -R +rw "${S}" || die
patch_nuspec_file "${S}/${NUSPEC_ID}.nuspec"
+ eapply "${FILESDIR}/remove-DataVisualiztion.patch"
eapply "${FILESDIR}/disable-warning-as-error.patch"
eapply_user
}
@@ -64,6 +65,7 @@ patch_nuspec_file()
<files> <!-- https://docs.nuget.org/create/nuspec-reference
-->
<file src="${DLL_PATH}/${DIR}/${DLL_NAME}.*"
target="lib/net45/" />
<file
src="${DLL_PATH}/${DIR}/System.Web.WebPages.Deployment.*" target="lib/net45/" />
+ <file src="${DLL_PATH}/${DIR}/System.Web.Helpers.*"
target="lib/net45/" />
</files>
EOF
`
@@ -73,8 +75,11 @@ patch_nuspec_file()
src_compile() {
exbuild "${METAFILETOBUILD}"
- sn -R "${DLL_PATH}/${DIR}/${DLL_NAME}.dll"
/var/lib/layman/dotnet/eclass/mono.snk || die
+ exbuild "${S}/src/System.Web.Helpers/System.Web.Helpers.csproj"
+
+ sn -R "${DLL_PATH}/${DIR}/System.Web.WebPages.dll"
/var/lib/layman/dotnet/eclass/mono.snk || die
sn -R "${DLL_PATH}/${DIR}/System.Web.WebPages.Deployment.dll"
/var/lib/layman/dotnet/eclass/mono.snk || die
+ sn -R "${DLL_PATH}/${DIR}/System.Web.Helpers.dll"
/var/lib/layman/dotnet/eclass/mono.snk || die
einfo nuspec: "${S}/${NUSPEC_ID}.nuspec"
einfo nupkg: "${WORKDIR}/${NUSPEC_ID}.${NUSPEC_VERSION}.nupkg"
@@ -91,6 +96,7 @@ src_install() {
egacinstall "${DLL_PATH}/${DIR}/${DLL_NAME}.dll"
egacinstall "${DLL_PATH}/${DIR}/System.Web.WebPages.Deployment.dll"
+ egacinstall "${DLL_PATH}/${DIR}/System.Web.Helpers.dll"
enupkg "${WORKDIR}/${NUSPEC_ID}.${NUSPEC_VERSION}.nupkg"
}