1 |
commit: 6747077fa58f0ab09aaa000e182a88d14c3ba456 |
2 |
Author: ArsenShnurkov <Arsen.Shnurkov <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Sep 2 07:06:31 2016 +0000 |
4 |
Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 2 07:06:31 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=6747077f |
7 |
|
8 |
initial version |
9 |
|
10 |
.../files/Microsoft.AspNet.Mvc.nuspec | 24 ++++++ |
11 |
.../files/disable-warning-as-error-in-mvc.patch | 11 +++ |
12 |
.../files/disable-warning-as-error.patch | 11 +++ |
13 |
dev-dotnet/system-web-mvc/metadata.xml | 12 +++ |
14 |
.../system-web-mvc-5.2.3_p2014092400.ebuild | 92 ++++++++++++++++++++++ |
15 |
5 files changed, 150 insertions(+) |
16 |
|
17 |
diff --git a/dev-dotnet/system-web-mvc/files/Microsoft.AspNet.Mvc.nuspec b/dev-dotnet/system-web-mvc/files/Microsoft.AspNet.Mvc.nuspec |
18 |
new file mode 100644 |
19 |
index 0000000..13e3970 |
20 |
--- /dev/null |
21 |
+++ b/dev-dotnet/system-web-mvc/files/Microsoft.AspNet.Mvc.nuspec |
22 |
@@ -0,0 +1,24 @@ |
23 |
+<?xml version="1.0"?> |
24 |
+<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd"> |
25 |
+ <metadata> |
26 |
+ <id>Microsoft.AspNet.Mvc</id> |
27 |
+ <version>$BuildVersion$</version> |
28 |
+ <title>Microsoft ASP.NET MVC</title> |
29 |
+ <authors>Microsoft</authors> |
30 |
+ <owners>Microsoft,aspnet</owners> |
31 |
+ <licenseUrl>http://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm</licenseUrl> |
32 |
+ <projectUrl>http://www.asp.net/mvc</projectUrl> |
33 |
+ <iconUrl>http://go.microsoft.com/fwlink/?LinkID=288859</iconUrl> |
34 |
+ <requireLicenseAcceptance>true</requireLicenseAcceptance> |
35 |
+ <description>This package contains the runtime assemblies for ASP.NET MVC. ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that enables a clean separation of concerns and that gives you full control over markup.</description> |
36 |
+ <summary>This package contains the runtime assemblies for ASP.NET MVC.</summary> |
37 |
+ <releaseNotes>Please visit http://go.microsoft.com/fwlink/?LinkID=403009 to view the release notes.</releaseNotes> |
38 |
+ <copyright>© Microsoft Corporation. All rights reserved.</copyright> |
39 |
+ <language>en-US</language> |
40 |
+ <tags>Microsoft AspNet Mvc AspNetMvc</tags> |
41 |
+ <dependencies> |
42 |
+ <dependency id="Microsoft.AspNet.WebPages" version="[3.2.3, 3.3.0)" /> |
43 |
+ <dependency id="Microsoft.AspNet.Razor" version="[3.2.3, 3.3.0)" /> |
44 |
+ </dependencies> |
45 |
+ </metadata> |
46 |
+</package> |
47 |
\ No newline at end of file |
48 |
|
49 |
diff --git a/dev-dotnet/system-web-mvc/files/disable-warning-as-error-in-mvc.patch b/dev-dotnet/system-web-mvc/files/disable-warning-as-error-in-mvc.patch |
50 |
new file mode 100644 |
51 |
index 0000000..3c70a57 |
52 |
--- /dev/null |
53 |
+++ b/dev-dotnet/system-web-mvc/files/disable-warning-as-error-in-mvc.patch |
54 |
@@ -0,0 +1,11 @@ |
55 |
+diff -u a/src/System.Web.Mvc/System.Web.Mvc.csproj b/src/System.Web.Mvc/System.Web.Mvc.csproj |
56 |
+--- a/src/System.Web.Mvc/System.Web.Mvc.csproj 2014-09-25 08:41:35.000000000 +0400 |
57 |
++++ b/src/System.Web.Mvc/System.Web.Mvc.csproj 2016-09-02 09:56:20.154191569 +0300 |
58 |
+@@ -11,6 +11,7 @@ |
59 |
+ <RunCodeAnalysis>$(CodeAnalysis)</RunCodeAnalysis> |
60 |
+ <CodeAnalysisRuleSet>..\Strict.ruleset</CodeAnalysisRuleSet> |
61 |
+ <DefineConstants>$(DefineConstants);ASPNETMVC</DefineConstants> |
62 |
++ <TreatWarningsAsErrors>false</TreatWarningsAsErrors> |
63 |
+ <NoWarn>1591</NoWarn> |
64 |
+ <BaseAddress>1609891840</BaseAddress> |
65 |
+ </PropertyGroup> |
66 |
|
67 |
diff --git a/dev-dotnet/system-web-mvc/files/disable-warning-as-error.patch b/dev-dotnet/system-web-mvc/files/disable-warning-as-error.patch |
68 |
new file mode 100644 |
69 |
index 0000000..d8fbfbf |
70 |
--- /dev/null |
71 |
+++ b/dev-dotnet/system-web-mvc/files/disable-warning-as-error.patch |
72 |
@@ -0,0 +1,11 @@ |
73 |
+diff -u a/src/System.Web.WebPages/System.Web.WebPages.csproj b/src/System.Web.WebPages/System.Web.WebPages.csproj |
74 |
+--- a/src/System.Web.WebPages/System.Web.WebPages.csproj 2016-09-02 07:36:21.000000000 +0300 |
75 |
++++ b/src/System.Web.WebPages/System.Web.WebPages.csproj 2016-09-02 07:39:47.965011321 +0300 |
76 |
+@@ -11,6 +11,7 @@ |
77 |
+ <RunCodeAnalysis>$(CodeAnalysis)</RunCodeAnalysis> |
78 |
+ <CodeAnalysisRuleSet>..\Strict.ruleset</CodeAnalysisRuleSet> |
79 |
+ <DefineConstants>$(DefineConstants);ASPNETWEBPAGES</DefineConstants> |
80 |
++ <TreatWarningsAsErrors>false</TreatWarningsAsErrors> |
81 |
+ <NoWarn>1591</NoWarn> |
82 |
+ </PropertyGroup> |
83 |
+ <ItemGroup> |
84 |
|
85 |
diff --git a/dev-dotnet/system-web-mvc/metadata.xml b/dev-dotnet/system-web-mvc/metadata.xml |
86 |
new file mode 100644 |
87 |
index 0000000..166e76b |
88 |
--- /dev/null |
89 |
+++ b/dev-dotnet/system-web-mvc/metadata.xml |
90 |
@@ -0,0 +1,12 @@ |
91 |
+<?xml version="1.0" encoding="UTF-8"?> |
92 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
93 |
+<pkgmetadata> |
94 |
+ <maintainer type="project"> |
95 |
+ <email>dotnet@g.o</email> |
96 |
+ <description>Gentoo Dotnet Project</description> |
97 |
+ </maintainer> |
98 |
+ <use> |
99 |
+ <flag name='developer'>enables debug information for any of debug and release builds</flag> |
100 |
+ <flag name='nupkg'>creates local nuget package</flag> |
101 |
+ </use> |
102 |
+</pkgmetadata> |
103 |
|
104 |
diff --git a/dev-dotnet/system-web-mvc/system-web-mvc-5.2.3_p2014092400.ebuild b/dev-dotnet/system-web-mvc/system-web-mvc-5.2.3_p2014092400.ebuild |
105 |
new file mode 100644 |
106 |
index 0000000..9ad1b47 |
107 |
--- /dev/null |
108 |
+++ b/dev-dotnet/system-web-mvc/system-web-mvc-5.2.3_p2014092400.ebuild |
109 |
@@ -0,0 +1,92 @@ |
110 |
+# Copyright 1999-2016 Gentoo Foundation |
111 |
+# Distributed under the terms of the GNU General Public License v2 |
112 |
+# $Id$ |
113 |
+ |
114 |
+EAPI=6 |
115 |
+inherit mono-env gac nupkg |
116 |
+ |
117 |
+REPO_NAME="aspnetwebstack" |
118 |
+HOMEPAGE="https://github.com/ASP-NET-MVC/aspnetwebstack" |
119 |
+ |
120 |
+EGIT_BRANCH="master" |
121 |
+EGIT_COMMIT="4e40cdef9c8a8226685f95ef03b746bc8322aa92" |
122 |
+SRC_URI="${HOMEPAGE}/archive/${EGIT_BRANCH}/${EGIT_COMMIT}.tar.gz -> ${REPO_NAME}-${EGIT_COMMIT}.tar.gz" |
123 |
+RESTRICT="mirror" |
124 |
+#S="${WORKDIR}/${REPO_NAME}-${EGIT_COMMIT}" |
125 |
+S="${WORKDIR}/${REPO_NAME}-${EGIT_BRANCH}" |
126 |
+ |
127 |
+SLOT="0" |
128 |
+ |
129 |
+DESCRIPTION="parser and code generation infrastructure for Razor markup syntax" |
130 |
+LICENSE="Apache-2.0" |
131 |
+KEYWORDS="~amd64 ~x86" |
132 |
+#USE_DOTNET="net45 net40 net20" |
133 |
+USE_DOTNET="net45" |
134 |
+ |
135 |
+IUSE="+${USE_DOTNET} developer debug" |
136 |
+ |
137 |
+COMMON_DEPEND=">=dev-lang/mono-4.0.2.5 |
138 |
+" |
139 |
+RDEPEND="${COMMON_DEPEND} |
140 |
+" |
141 |
+DEPEND="${COMMON_DEPEND} |
142 |
+" |
143 |
+ |
144 |
+DLL_NAME=System.Web.Mvc |
145 |
+DLL_PATH=bin |
146 |
+FILE_TO_BUILD=./src/${DLL_NAME}/${DLL_NAME}.csproj |
147 |
+METAFILETOBUILD="${S}/${FILE_TO_BUILD}" |
148 |
+ |
149 |
+NUSPEC_ID=Microsoft.AspNet.Mvc |
150 |
+ |
151 |
+COMMIT_DATE_INDEX="$(get_version_component_count ${PV} )" |
152 |
+COMMIT_DATE="$(get_version_component_range $COMMIT_DATE_INDEX ${PV} )" |
153 |
+NUSPEC_VERSION=$(get_version_component_range 1-3)"${COMMIT_DATE//p/.}" |
154 |
+ |
155 |
+src_prepare() { |
156 |
+ cp "${FILESDIR}/${NUSPEC_ID}.nuspec" "${S}" || die |
157 |
+ chmod -R +rw "${S}" || die |
158 |
+ patch_nuspec_file "${S}/${NUSPEC_ID}.nuspec" |
159 |
+ eapply "${FILESDIR}/disable-warning-as-error.patch" |
160 |
+ eapply "${FILESDIR}/disable-warning-as-error-in-mvc.patch" |
161 |
+ eapply_user |
162 |
+} |
163 |
+ |
164 |
+patch_nuspec_file() |
165 |
+{ |
166 |
+ if use nupkg; then |
167 |
+ if use debug; then |
168 |
+ DIR="Debug" |
169 |
+ else |
170 |
+ DIR="Release" |
171 |
+ fi |
172 |
+ FILES_STRING=`sed 's/[\/&]/\\\\&/g' <<-EOF || die "escaping replacement string characters" |
173 |
+ <files> <!-- https://docs.nuget.org/create/nuspec-reference --> |
174 |
+ <file src="${DLL_PATH}/${DIR}/${DLL_NAME}.*" target="lib/net45/" /> |
175 |
+ </files> |
176 |
+ EOF |
177 |
+ ` |
178 |
+ sed -i 's/<\/package>/'"${FILES_STRING//$'\n'/\\$'\n'}"'\n&/g' $1 || die "escaping line endings" |
179 |
+ fi |
180 |
+} |
181 |
+ |
182 |
+src_compile() { |
183 |
+ exbuild "${METAFILETOBUILD}" |
184 |
+ |
185 |
+ einfo nuspec: "${S}/${NUSPEC_ID}.nuspec" |
186 |
+ einfo nupkg: "${WORKDIR}/${NUSPEC_ID}.${NUSPEC_VERSION}.nupkg" |
187 |
+ |
188 |
+ enuspec -Prop BuildVersion=${NUSPEC_VERSION} "${S}/${NUSPEC_ID}.nuspec" |
189 |
+} |
190 |
+ |
191 |
+src_install() { |
192 |
+ if use debug; then |
193 |
+ DIR="Debug" |
194 |
+ else |
195 |
+ DIR="Release" |
196 |
+ fi |
197 |
+ |
198 |
+# egacinstall |
199 |
+ |
200 |
+ enupkg "${WORKDIR}/${NUSPEC_ID}.${NUSPEC_VERSION}.nupkg" |
201 |
+} |