1 |
commit: b11654cdec541ab68198f93ba7667324a876d52a |
2 |
Author: ArsenShnurkov <ArsenShnurkov <AT> users <DOT> noreply <DOT> github <DOT> com> |
3 |
AuthorDate: Tue Jan 24 22:41:15 2017 +0000 |
4 |
Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 24 22:41:15 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=b11654cd |
7 |
|
8 |
version inserted |
9 |
|
10 |
dev-dotnet/x-pagedlist/x-pagedlist-5.3.0.8.ebuild | 23 +++++++++++++---------- |
11 |
1 file changed, 13 insertions(+), 10 deletions(-) |
12 |
|
13 |
diff --git a/dev-dotnet/x-pagedlist/x-pagedlist-5.3.0.8.ebuild b/dev-dotnet/x-pagedlist/x-pagedlist-5.3.0.8.ebuild |
14 |
index e536854..4cac7b1 100644 |
15 |
--- a/dev-dotnet/x-pagedlist/x-pagedlist-5.3.0.8.ebuild |
16 |
+++ b/dev-dotnet/x-pagedlist/x-pagedlist-5.3.0.8.ebuild |
17 |
@@ -44,8 +44,7 @@ METAFILETOBUILD=./X.PagedList.sln |
18 |
|
19 |
# there is an original file exists: ./src/X.PagedList.Mvc/PagedList.Mvc.nuspec |
20 |
NUSPEC_FILE_NAME=X.PagedList.nuspec |
21 |
-#NUSPEC_VERSION="${PVR//-r/.}" |
22 |
-NUSPEC_VERSION=$(get_version_component_range 1-3)"${PR//r/.}" |
23 |
+NUSPEC_VERSION="${PV}" |
24 |
|
25 |
# rm -rf /var/tmp/portage/dev-dotnet/X-PagedList-* |
26 |
# emerge =X-PagedList-5.3.0.8 |
27 |
@@ -54,6 +53,10 @@ NUSPEC_VERSION=$(get_version_component_range 1-3)"${PR//r/.}" |
28 |
src_prepare() { |
29 |
einfo "patching project files" |
30 |
|
31 |
+ find ${S} -iname "AssemblyInfo.cs" -exec sed -i '/Assembly.*Version/d' {} \; || die |
32 |
+ mpt-csproj --inject-import='$(MSBuildToolsPath)\MSBuild.Community.Tasks.Targets' ${S} || die |
33 |
+ mpt-csproj --inject-versioning=BuildVersion ${S} || die |
34 |
+ |
35 |
einfo "preparing nuspec" |
36 |
cp "${FILESDIR}/${NUSPEC_FILE_NAME}" "${S}/${NUSPEC_FILE_NAME}" || die |
37 |
patch_nuspec_file "${S}/${NUSPEC_FILE_NAME}" |
38 |
@@ -68,8 +71,8 @@ src_configure() { |
39 |
SNK_FILENAME="${S}/X.PagedList/PublicPrivateKeyFile.snk" |
40 |
|
41 |
src_compile() { |
42 |
- exbuild_strong "./X.PagedList/X.PagedList.csproj" |
43 |
- exbuild_strong "./X.PagedList.Mvc/X.PagedList.Mvc.csproj" |
44 |
+ exbuild_strong /p:BuildVersion=${PV} "./X.PagedList/X.PagedList.csproj" |
45 |
+ exbuild_strong /p:BuildVersion=${PV} "./X.PagedList.Mvc/X.PagedList.Mvc.csproj" |
46 |
|
47 |
# run nuget_pack |
48 |
einfo "setting .nupkg version to ${NUSPEC_VERSION}" |
49 |
@@ -92,10 +95,10 @@ patch_nuspec_file() |
50 |
DIR="Debug" |
51 |
FILES_STRING=`sed 's/[\/&]/\\\\&/g' <<-EOF || die "escaping replacement string characters" |
52 |
<files> <!-- https://docs.nuget.org/create/nuspec-reference --> |
53 |
- <file src="X.PagedList/bin/${DIR}/X.PagedList.dll" target="lib\net45\" /> |
54 |
- <file src="X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll" target="lib\net45\" /> |
55 |
- <file src="X.PagedList/bin/${DIR}/X.PagedList.dll.mdb" target="lib\net45\" /> |
56 |
- <file src="X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll.mdb" target="lib\net45\" /> |
57 |
+ <file src="X.PagedList/bin/${DIR}/X.PagedList.dll" target="lib/net45" /> |
58 |
+ <file src="X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll" target="lib/net45" /> |
59 |
+ <file src="X.PagedList/bin/${DIR}/X.PagedList.dll.mdb" target="lib/net45" /> |
60 |
+ <file src="X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll.mdb" target="lib/net45" /> |
61 |
</files> |
62 |
EOF |
63 |
` |
64 |
@@ -103,8 +106,8 @@ patch_nuspec_file() |
65 |
DIR="Release" |
66 |
FILES_STRING=`sed 's/[\/&]/\\\\&/g' <<-EOF || die "escaping replacement string characters" |
67 |
<files> <!-- https://docs.nuget.org/create/nuspec-reference --> |
68 |
- <file src="X.PagedList/bin/${DIR}/X.PagedList.dll" target="lib\net45\" /> |
69 |
- <file src="X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll" target="lib\net45\" /> |
70 |
+ <file src="X.PagedList/bin/${DIR}/X.PagedList.dll" target="lib\net45" /> |
71 |
+ <file src="X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll" target="lib\net45" /> |
72 |
</files> |
73 |
EOF |
74 |
` |