1 |
commit: 1cba3b19946d6311d5542658c3c713b86252d876 |
2 |
Author: ArsenShnurkov <Arsen.Shnurkov <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Aug 30 22:02:43 2016 +0000 |
4 |
Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 30 22:02:43 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=1cba3b19 |
7 |
|
8 |
initial version |
9 |
|
10 |
.../files/Microsoft.AspNet.Razor.nuspec | 20 +++++ |
11 |
dev-dotnet/system-web-razor/metadata.xml | 12 +++ |
12 |
.../system-web-razor-3.2.3_p2014092400.ebuild | 93 ++++++++++++++++++++++ |
13 |
3 files changed, 125 insertions(+) |
14 |
|
15 |
diff --git a/dev-dotnet/system-web-razor/files/Microsoft.AspNet.Razor.nuspec b/dev-dotnet/system-web-razor/files/Microsoft.AspNet.Razor.nuspec |
16 |
new file mode 100644 |
17 |
index 0000000..d3ac34b |
18 |
--- /dev/null |
19 |
+++ b/dev-dotnet/system-web-razor/files/Microsoft.AspNet.Razor.nuspec |
20 |
@@ -0,0 +1,20 @@ |
21 |
+<?xml version="1.0"?> |
22 |
+<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd"> |
23 |
+ <metadata> |
24 |
+ <id>Microsoft.AspNet.Razor</id> |
25 |
+ <version>$BuildVersion$</version> |
26 |
+ <title>Microsoft ASP.NET Razor</title> |
27 |
+ <authors>Microsoft</authors> |
28 |
+ <owners>Microsoft,aspnet</owners> |
29 |
+ <licenseUrl>http://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm</licenseUrl> |
30 |
+ <projectUrl>http://www.asp.net/web-pages</projectUrl> |
31 |
+ <iconUrl>http://go.microsoft.com/fwlink/?LinkID=288859</iconUrl> |
32 |
+ <requireLicenseAcceptance>true</requireLicenseAcceptance> |
33 |
+ <description>This package contains the runtime assemblies for ASP.NET Web Pages. ASP.NET Web Pages and the new Razor syntax provide a fast, terse, clean and lightweight way to combine server code with HTML to create dynamic web content.</description> |
34 |
+ <summary>This package contains the runtime assemblies for ASP.NET Web Pages.</summary> |
35 |
+ <releaseNotes>Please visit http://go.microsoft.com/fwlink/?LinkID=403011 to view the release notes.</releaseNotes> |
36 |
+ <copyright>© Microsoft Corporation. All rights reserved.</copyright> |
37 |
+ <language>en-US</language> |
38 |
+ <tags>Microsoft AspNet WebPages AspNetWebPages Razor</tags> |
39 |
+ </metadata> |
40 |
+</package> |
41 |
\ No newline at end of file |
42 |
|
43 |
diff --git a/dev-dotnet/system-web-razor/metadata.xml b/dev-dotnet/system-web-razor/metadata.xml |
44 |
new file mode 100644 |
45 |
index 0000000..166e76b |
46 |
--- /dev/null |
47 |
+++ b/dev-dotnet/system-web-razor/metadata.xml |
48 |
@@ -0,0 +1,12 @@ |
49 |
+<?xml version="1.0" encoding="UTF-8"?> |
50 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
51 |
+<pkgmetadata> |
52 |
+ <maintainer type="project"> |
53 |
+ <email>dotnet@g.o</email> |
54 |
+ <description>Gentoo Dotnet Project</description> |
55 |
+ </maintainer> |
56 |
+ <use> |
57 |
+ <flag name='developer'>enables debug information for any of debug and release builds</flag> |
58 |
+ <flag name='nupkg'>creates local nuget package</flag> |
59 |
+ </use> |
60 |
+</pkgmetadata> |
61 |
|
62 |
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 |
63 |
new file mode 100644 |
64 |
index 0000000..46efc4d |
65 |
--- /dev/null |
66 |
+++ b/dev-dotnet/system-web-razor/system-web-razor-3.2.3_p2014092400.ebuild |
67 |
@@ -0,0 +1,93 @@ |
68 |
+# Copyright 1999-2016 Gentoo Foundation |
69 |
+# Distributed under the terms of the GNU General Public License v2 |
70 |
+# $Id$ |
71 |
+ |
72 |
+EAPI=6 |
73 |
+inherit mono-env gac nupkg |
74 |
+ |
75 |
+REPO_NAME="aspnetwebstack" |
76 |
+HOMEPAGE="https://github.com/ASP-NET-MVC/aspnetwebstack" |
77 |
+ |
78 |
+EGIT_BRANCH="master" |
79 |
+EGIT_COMMIT="4e40cdef9c8a8226685f95ef03b746bc8322aa92" |
80 |
+SRC_URI="${HOMEPAGE}/archive/${EGIT_BRANCH}/${EGIT_COMMIT}.tar.gz -> ${PF}.tar.gz" |
81 |
+RESTRICT="mirror" |
82 |
+#S="${WORKDIR}/${REPO_NAME}-${EGIT_COMMIT}" |
83 |
+S="${WORKDIR}/${REPO_NAME}-${EGIT_BRANCH}" |
84 |
+ |
85 |
+SLOT="0" |
86 |
+ |
87 |
+DESCRIPTION="parser and code generation infrastructure for Razor markup syntax" |
88 |
+LICENSE="Apache-2.0" |
89 |
+KEYWORDS="~amd64 ~x86" |
90 |
+#USE_DOTNET="net45 net40 net20" |
91 |
+USE_DOTNET="net45" |
92 |
+ |
93 |
+IUSE="+${USE_DOTNET} developer debug" |
94 |
+ |
95 |
+COMMON_DEPEND=">=dev-lang/mono-4.0.2.5 |
96 |
+" |
97 |
+RDEPEND="${COMMON_DEPEND} |
98 |
+" |
99 |
+DEPEND="${COMMON_DEPEND} |
100 |
+" |
101 |
+ |
102 |
+DLL_NAME=System.Web.Razor |
103 |
+DLL_PATH=bin |
104 |
+FILE_TO_BUILD=./src/System.Web.Razor/System.Web.Razor.csproj |
105 |
+METAFILETOBUILD="${S}/${FILE_TO_BUILD}" |
106 |
+ |
107 |
+NUSPEC_ID=Microsoft.AspNet.Razor |
108 |
+ |
109 |
+COMMIT_DATE_INDEX="$(get_version_component_count ${PV} )" |
110 |
+COMMIT_DATE="$(get_version_component_range $COMMIT_DATE_INDEX ${PV} )" |
111 |
+NUSPEC_VERSION=$(get_version_component_range 1-3)"${COMMIT_DATE//p/.}" |
112 |
+ |
113 |
+src_prepare() { |
114 |
+ cp "${FILESDIR}/${NUSPEC_ID}.nuspec" "${S}" || die |
115 |
+ chmod -R +rw "${S}" || die |
116 |
+ patch_nuspec_file "${S}/${NUSPEC_ID}.nuspec" |
117 |
+ eapply_user |
118 |
+} |
119 |
+ |
120 |
+patch_nuspec_file() |
121 |
+{ |
122 |
+ if use nupkg; then |
123 |
+ if use debug; then |
124 |
+ DIR="Debug" |
125 |
+ else |
126 |
+ DIR="Release" |
127 |
+ fi |
128 |
+ FILES_STRING=`sed 's/[\/&]/\\\\&/g' <<-EOF || die "escaping replacement string characters" |
129 |
+ <files> <!-- https://docs.nuget.org/create/nuspec-reference --> |
130 |
+ <file src="${DLL_PATH}/${DIR}/${DLL_NAME}.dll*" target="lib/net45/" /> |
131 |
+ </files> |
132 |
+ EOF |
133 |
+ ` |
134 |
+ sed -i 's/<\/package>/'"${FILES_STRING//$'\n'/\\$'\n'}"'\n&/g' $1 || die "escaping line endings" |
135 |
+ fi |
136 |
+} |
137 |
+ |
138 |
+src_compile() { |
139 |
+ exbuild "${METAFILETOBUILD}" |
140 |
+ |
141 |
+ einfo nuspec: "${S}/${NUSPEC_ID}.nuspec" |
142 |
+ einfo nupkg: "${WORKDIR}/${NUSPEC_ID}.${NUSPEC_VERSION}.nupkg" |
143 |
+ |
144 |
+ enuspec -Prop BuildVersion=${NUSPEC_VERSION} "${S}/${NUSPEC_ID}.nuspec" |
145 |
+} |
146 |
+ |
147 |
+src_install() { |
148 |
+ if use debug; then |
149 |
+ DIR="Debug" |
150 |
+ else |
151 |
+ DIR="Release" |
152 |
+ fi |
153 |
+ |
154 |
+# if use gac; then |
155 |
+# egacinstall "${S}/build/bin/${DIR}/Mono 4.x/NLog.dll" |
156 |
+# egacinstall "${S}/build/bin/${DIR}/Mono 4.x/NLog.Extended.dll" |
157 |
+# fi |
158 |
+ |
159 |
+ enupkg "${WORKDIR}/${NUSPEC_ID}.${NUSPEC_VERSION}.nupkg" |
160 |
+} |