1 |
commit: f86e71b253aa22a624bb8a28825ff42e5f2ff151 |
2 |
Author: ArsenShnurkov <ArsenShnurkov <AT> users <DOT> noreply <DOT> github <DOT> com> |
3 |
AuthorDate: Tue Jan 24 22:01:11 2017 +0000 |
4 |
Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 24 22:01:11 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=f86e71b2 |
7 |
|
8 |
minor tweaks |
9 |
|
10 |
dev-dotnet/x-pagedlist/x-pagedlist-5.3.0.8.ebuild | 67 +++++++++-------------- |
11 |
1 file changed, 27 insertions(+), 40 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 67968e6..e536854 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 |
@@ -3,6 +3,11 @@ |
18 |
# $Id$ |
19 |
|
20 |
EAPI=6 |
21 |
+KEYWORDS="~amd64 ~x86" |
22 |
+RESTRICT="mirror" |
23 |
+ |
24 |
+USE_DOTNET="net45" |
25 |
+IUSE="net45 +gac +nupkg +pkg-config debug developer" |
26 |
|
27 |
inherit versionator gac nupkg |
28 |
|
29 |
@@ -10,18 +15,16 @@ HOMEPAGE="https://github.com/kpi-ua/X.PagedList/" |
30 |
DESCRIPTION="Nugget for easily paging through any IEnumerable/IQueryable in Asp.Net MVC" |
31 |
LICENSE="MIT" |
32 |
SLOT="0" |
33 |
-KEYWORDS="~amd64 ~x86" |
34 |
-IUSE="net45 +gac +nupkg +pkg-config debug developer" |
35 |
-USE_DOTNET="net45" |
36 |
|
37 |
COMMON_DEPEND=">=dev-lang/mono-4.0.2.5 |
38 |
" |
39 |
|
40 |
-RDEPEND="${COMMON_DEPEND} |
41 |
-" |
42 |
- |
43 |
DEPEND="${COMMON_DEPEND} |
44 |
virtual/pkgconfig |
45 |
+ >=dev-util/mono-packaging-tools-1.4.2.2 |
46 |
+" |
47 |
+ |
48 |
+RDEPEND="${COMMON_DEPEND} |
49 |
" |
50 |
|
51 |
NAME="X.PagedList" |
52 |
@@ -31,13 +34,12 @@ LICENSE_URL="${REPOSITORY}/blob/${EGIT_BRANCH}/LICENSE" |
53 |
ICONMETA="http://uxrepo.com/static/icon-sets/iconic/svg/list.svg" |
54 |
ICON_URL="https://github.com/ArsenShnurkov/X.PagedList/blob/switching-from-pcl/misc/list.svg" |
55 |
|
56 |
-EGIT_COMMIT="48bc7da1bc3b6b294c69796bd9573e670edd3c64" |
57 |
-SRC_URI="${REPOSITORY}/archive/${EGIT_BRANCH}/${EGIT_COMMIT}.zip -> ${PF}.zip |
58 |
- mirror://gentoo/mono.snk.bz2" |
59 |
+EGIT_COMMIT="c0521a4099c65efd3e964ea57129d5a61261f784" |
60 |
+SRC_URI="${REPOSITORY}/archive/${EGIT_BRANCH}/${EGIT_COMMIT}.tar.gz -> ${PF}.tar.gz" |
61 |
#S="${WORKDIR}/${NAME}-${EGIT_COMMIT}" |
62 |
S="${WORKDIR}/${NAME}-${EGIT_BRANCH}" |
63 |
|
64 |
-METAFILETOBUILD=./src/X.PagedList.sln |
65 |
+METAFILETOBUILD=./X.PagedList.sln |
66 |
#OUTPUT_DIR= |
67 |
|
68 |
# there is an original file exists: ./src/X.PagedList.Mvc/PagedList.Mvc.nuspec |
69 |
@@ -45,29 +47,12 @@ NUSPEC_FILE_NAME=X.PagedList.nuspec |
70 |
#NUSPEC_VERSION="${PVR//-r/.}" |
71 |
NUSPEC_VERSION=$(get_version_component_range 1-3)"${PR//r/.}" |
72 |
|
73 |
-# rm -rf /var/tmp/portage/dev-dotnet/X-PagedList-1.24.0.23549-r201512120 |
74 |
-# emerge =X-PagedList-1.24.0.23549-r201512120 |
75 |
-# leafpad /var/tmp/portage/dev-dotnet/X-PagedList-1.24.0.23549-r201512120/temp/build.log & |
76 |
- |
77 |
-src_unpack() |
78 |
-{ |
79 |
- default |
80 |
- enuget_download_rogue_binary "Microsoft.Web.Infrastructure" "1.0.0.0" |
81 |
- enuget_download_rogue_binary "Microsoft.AspNet.WebPages" "3.2.3" |
82 |
- enuget_download_rogue_binary "Microsoft.AspNet.Razor" "3.2.3" |
83 |
- enuget_download_rogue_binary "Microsoft.AspNet.Mvc" "5.2.3" |
84 |
-} |
85 |
+# rm -rf /var/tmp/portage/dev-dotnet/X-PagedList-* |
86 |
+# emerge =X-PagedList-5.3.0.8 |
87 |
+# leafpad /var/tmp/portage/dev-dotnet/X-PagedList-5.3.0.8/temp/build.log & |
88 |
|
89 |
src_prepare() { |
90 |
einfo "patching project files" |
91 |
- epatch "${FILESDIR}/X.PagedList.csproj.patch" |
92 |
- epatch "${FILESDIR}/X.PagedList.Mvc.csproj.patch" |
93 |
- |
94 |
- # no restoring for this particular project for now, see src_unpack() above instead |
95 |
- # einfo "restoring packages" |
96 |
- # enuget_restore -Verbosity detailed -SolutionDirectory "${S}" "./src/X.PagedList/packages.config" |
97 |
- # enuget_restore "./src/X.PagedList.Mvc/X.PagedList.Mvc.csproj" |
98 |
- # enuget_restore -Verbosity detailed -SolutionDirectory "${S}" "./src/X.PagedList.Mvc/packages.config" |
99 |
|
100 |
einfo "preparing nuspec" |
101 |
cp "${FILESDIR}/${NUSPEC_FILE_NAME}" "${S}/${NUSPEC_FILE_NAME}" || die |
102 |
@@ -80,9 +65,11 @@ src_configure() { |
103 |
:; |
104 |
} |
105 |
|
106 |
+SNK_FILENAME="${S}/X.PagedList/PublicPrivateKeyFile.snk" |
107 |
+ |
108 |
src_compile() { |
109 |
- exbuild /p:SignAssembly=true "/p:AssemblyOriginatorKeyFile=${WORKDIR}/mono.snk" "./src/X.PagedList/X.PagedList.csproj" |
110 |
- exbuild /p:SignAssembly=true "/p:AssemblyOriginatorKeyFile=${WORKDIR}/mono.snk" "./src/X.PagedList.Mvc/X.PagedList.Mvc.csproj" |
111 |
+ exbuild_strong "./X.PagedList/X.PagedList.csproj" |
112 |
+ exbuild_strong "./X.PagedList.Mvc/X.PagedList.Mvc.csproj" |
113 |
|
114 |
# run nuget_pack |
115 |
einfo "setting .nupkg version to ${NUSPEC_VERSION}" |
116 |
@@ -92,8 +79,8 @@ src_compile() { |
117 |
src_install() { |
118 |
enupkg "${WORKDIR}/${NAME}.${NUSPEC_VERSION}.nupkg" |
119 |
|
120 |
- egacinstall "src/X.PagedList/bin/${DIR}/X.PagedList.dll" |
121 |
- egacinstall "src/X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll" |
122 |
+ egacinstall "X.PagedList/bin/${DIR}/X.PagedList.dll" |
123 |
+ egacinstall "X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll" |
124 |
|
125 |
einstall_pc_file "${PN}" "${PV}" "X.PagedList.Mvc" |
126 |
} |
127 |
@@ -105,10 +92,10 @@ patch_nuspec_file() |
128 |
DIR="Debug" |
129 |
FILES_STRING=`sed 's/[\/&]/\\\\&/g' <<-EOF || die "escaping replacement string characters" |
130 |
<files> <!-- https://docs.nuget.org/create/nuspec-reference --> |
131 |
- <file src="src/X.PagedList/bin/${DIR}/X.PagedList.dll" target="lib\net45\" /> |
132 |
- <file src="src/X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll" target="lib\net45\" /> |
133 |
- <file src="src/X.PagedList/bin/${DIR}/X.PagedList.dll.mdb" target="lib\net45\" /> |
134 |
- <file src="src/X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll.mdb" target="lib\net45\" /> |
135 |
+ <file src="X.PagedList/bin/${DIR}/X.PagedList.dll" target="lib\net45\" /> |
136 |
+ <file src="X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll" target="lib\net45\" /> |
137 |
+ <file src="X.PagedList/bin/${DIR}/X.PagedList.dll.mdb" target="lib\net45\" /> |
138 |
+ <file src="X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll.mdb" target="lib\net45\" /> |
139 |
</files> |
140 |
EOF |
141 |
` |
142 |
@@ -116,8 +103,8 @@ patch_nuspec_file() |
143 |
DIR="Release" |
144 |
FILES_STRING=`sed 's/[\/&]/\\\\&/g' <<-EOF || die "escaping replacement string characters" |
145 |
<files> <!-- https://docs.nuget.org/create/nuspec-reference --> |
146 |
- <file src="src/X.PagedList/bin/${DIR}/X.PagedList.dll" target="lib\net45\" /> |
147 |
- <file src="src/X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll" target="lib\net45\" /> |
148 |
+ <file src="X.PagedList/bin/${DIR}/X.PagedList.dll" target="lib\net45\" /> |
149 |
+ <file src="X.PagedList.Mvc/bin/${DIR}/X.PagedList.Mvc.dll" target="lib\net45\" /> |
150 |
</files> |
151 |
EOF |
152 |
` |