1 |
commit: 5be38726e319c9d6bf7794bb1e6d63a0ff5d7076 |
2 |
Author: ArsenShnurkov <Arsen.Shnurkov <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Jul 30 13:17:48 2016 +0000 |
4 |
Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 30 13:17:48 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=5be38726 |
7 |
|
8 |
remove calls to base from go-mono.eclass |
9 |
|
10 |
eclass/go-mono.eclass | 136 +++++++++++++++++++ |
11 |
.../mod_mono/files/mod_mono-2.10-apache-2.4.patch | 146 --------------------- |
12 |
...mono-2.10-r1.ebuild => mod_mono-3.12-r1.ebuild} | 9 +- |
13 |
3 files changed, 142 insertions(+), 149 deletions(-) |
14 |
|
15 |
diff --git a/eclass/go-mono.eclass b/eclass/go-mono.eclass |
16 |
new file mode 100644 |
17 |
index 0000000..5ae2264 |
18 |
--- /dev/null |
19 |
+++ b/eclass/go-mono.eclass |
20 |
@@ -0,0 +1,136 @@ |
21 |
+# Copyright 1999-2013 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+# @ECLASS: go-mono.eclass |
26 |
+# @MAINTAINER: |
27 |
+# dotnet@g.o |
28 |
+# @BLURB: Common functionality for go-mono.org apps |
29 |
+# @DESCRIPTION: |
30 |
+# Common functionality needed by all go-mono.org apps. |
31 |
+ |
32 |
+inherit versionator mono |
33 |
+ |
34 |
+PRE_URI="http://mono.ximian.com/monobuild/preview/sources" |
35 |
+ |
36 |
+GIT_PN="${PN/mono-debugger/debugger}" |
37 |
+ |
38 |
+ESVN_STORE_DIR="${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}/svn-src/mono" |
39 |
+ |
40 |
+GO_MONO_SUB_BRANCH=${GO_MONO_SUB_BRANCH} |
41 |
+ |
42 |
+if [[ "${PV%_rc*}" != "${PV}" ]] |
43 |
+then |
44 |
+ GO_MONO_P="${P%_rc*}" |
45 |
+ SRC_URI="${PRE_URI}/${PN}/${GO_MONO_P}.tar.bz2 -> ${P}.tar.bz2" |
46 |
+ S="${WORKDIR}/${GO_MONO_P}" |
47 |
+elif [[ "${PV%_pre*}" != "${PV}" ]] |
48 |
+then |
49 |
+ GO_MONO_P="${P%_pre*}" |
50 |
+ SRC_URI="${PRE_URI}/${PN}/${GO_MONO_P}.tar.bz2 -> ${P}.tar.bz2" |
51 |
+ S="${WORKDIR}/${GO_MONO_P}" |
52 |
+elif [[ "${PV}" == "9999" ]] |
53 |
+then |
54 |
+ GO_MONO_P=${P} |
55 |
+ EGIT_REPO_URI="https://github.com/mono/${GIT_PN}.git" |
56 |
+ SRC_URI="" |
57 |
+ inherit autotools git |
58 |
+elif [[ "${PV%.9999}" != "${PV}" ]] |
59 |
+then |
60 |
+ GO_MONO_P=${P} |
61 |
+ EGIT_REPO_URI="https://github.com/mono/${GIT_PN}.git" |
62 |
+ EGIT_BRANCH="mono-$(get_version_component_range 1)-$(get_version_component_range 2)${GO_MONO_SUB_BRANCH}" |
63 |
+ SRC_URI="" |
64 |
+ inherit autotools git |
65 |
+else |
66 |
+ GO_MONO_P=${P} |
67 |
+ SRC_URI="http://download.mono-project.com/sources/${PN}/${P}.tar.bz2" |
68 |
+fi |
69 |
+ |
70 |
+ |
71 |
+NO_MONO_DEPEND=( "dev-lang/mono" "dev-dotnet/libgdiplus" "dev-dotnet/gluezilla" ) |
72 |
+ |
73 |
+if [[ "$(get_version_component_range 3)" != "9999" ]] |
74 |
+then |
75 |
+ GO_MONO_REL_PV="$(get_version_component_range 1-2)" |
76 |
+ |
77 |
+else |
78 |
+ GO_MONO_REL_PV="${PV}" |
79 |
+fi |
80 |
+ |
81 |
+if ! has "${CATEGORY}/${PN}" "${NO_MONO_DEPEND[@]}" |
82 |
+then |
83 |
+ RDEPEND=">=dev-lang/mono-${GO_MONO_REL_PV}" |
84 |
+ DEPEND="${RDEPEND}" |
85 |
+fi |
86 |
+ |
87 |
+DEPEND="${DEPEND} |
88 |
+ virtual/pkgconfig" |
89 |
+ |
90 |
+# @FUNCTION: go-mono_src_unpack |
91 |
+# @DESCRIPTION: |
92 |
+# Runs default() |
93 |
+go-mono_src_unpack() { |
94 |
+ if [[ "${PV%.9999}" != "${PV}" || "${PV}" == "9999" ]] |
95 |
+ then |
96 |
+ default |
97 |
+ git_src_unpack |
98 |
+ else |
99 |
+ default |
100 |
+ fi |
101 |
+} |
102 |
+ |
103 |
+# @FUNCTION: go-mono_src_prepare |
104 |
+# @DESCRIPTION: |
105 |
+# Runs autopatch from base.eclass, if PATCHES is set. |
106 |
+go-mono_src_prepare() { |
107 |
+ if [[ "${PV%.9999}" != "${PV}" || "${PV}" == "9999" ]] |
108 |
+ then |
109 |
+ default |
110 |
+ [[ "$EAUTOBOOTSTRAP" != "no" ]] && eautoreconf |
111 |
+ else |
112 |
+ default |
113 |
+ fi |
114 |
+} |
115 |
+ |
116 |
+# @FUNCTION: go-mono_src_configure |
117 |
+# @DESCRIPTION: |
118 |
+# Runs econf, disabling static libraries and dependency-tracking. |
119 |
+go-mono_src_configure() { |
120 |
+ econf --disable-dependency-tracking \ |
121 |
+ --disable-static \ |
122 |
+ "$@" |
123 |
+} |
124 |
+ |
125 |
+# @FUNCTION: go-mono_src_compile |
126 |
+# @DESCRIPTION: |
127 |
+# Runs emake. |
128 |
+go-mono_src_compile() { |
129 |
+ emake "$@" || die "emake failed" |
130 |
+} |
131 |
+ |
132 |
+# @ECLASS-VARIABLE: DOCS |
133 |
+# @DESCRIPTION: |
134 |
+# Insert path of docs you want installed. If more than one, |
135 |
+# consider using an array. |
136 |
+ |
137 |
+# @FUNCTION: go-mono_src_install |
138 |
+# @DESCRIPTION: |
139 |
+# Rune emake, installs common doc files, if DOCS is |
140 |
+# set, installs those. Gets rid of .la files. |
141 |
+go-mono_src_install () { |
142 |
+ emake -j1 DESTDIR="${D}" "$@" install || die "install failed" |
143 |
+ mono_multilib_comply |
144 |
+ local commondoc=( AUTHORS ChangeLog README TODO ) |
145 |
+ for docfile in "${commondoc[@]}" |
146 |
+ do |
147 |
+ [[ -e "${docfile}" ]] && dodoc "${docfile}" |
148 |
+ done |
149 |
+ if [[ "${DOCS[@]}" ]] |
150 |
+ then |
151 |
+ dodoc "${DOCS[@]}" || die "dodoc DOCS failed" |
152 |
+ fi |
153 |
+ find "${D}" -name '*.la' -exec rm -rf '{}' '+' || die "la removal failed" |
154 |
+} |
155 |
+ |
156 |
+EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_install |
157 |
|
158 |
diff --git a/www-apache/mod_mono/files/mod_mono-2.10-apache-2.4.patch b/www-apache/mod_mono/files/mod_mono-2.10-apache-2.4.patch |
159 |
deleted file mode 100644 |
160 |
index 86694bf..0000000 |
161 |
--- a/www-apache/mod_mono/files/mod_mono-2.10-apache-2.4.patch |
162 |
+++ /dev/null |
163 |
@@ -1,146 +0,0 @@ |
164 |
-Sólo en mod_mono-2.10.new/: attachment.cgi?id=402888 |
165 |
-diff -ur mod_mono-2.10/configure.in mod_mono-2.10.new/configure.in |
166 |
---- mod_mono-2.10/configure.in 2011-01-13 23:32:35.000000000 +0100 |
167 |
-+++ mod_mono-2.10.new/configure.in 2015-06-07 21:09:26.417127319 +0200 |
168 |
-@@ -336,6 +336,16 @@ |
169 |
- ], [ |
170 |
- ]) |
171 |
- |
172 |
-+AC_TRY_RUN([ |
173 |
-+ #include <ap_release.h> |
174 |
-+ int main () |
175 |
-+ { |
176 |
-+ return (AP_SERVER_MAJORVERSION_NUMBER == 2 && AP_SERVER_MINORVERSION_NUMBER == 4) ? 0 : 1; |
177 |
-+ } |
178 |
-+], [ |
179 |
-+ APACHE_VER=2.4 |
180 |
-+], [ |
181 |
-+]) |
182 |
- fi |
183 |
- |
184 |
- if test ! "$APACHE_VER" = "1.3" -a ! "$APACHE_VER" = "retry" ; then |
185 |
-@@ -385,6 +395,10 @@ |
186 |
- AC_DEFINE([APACHE22],,[Compiling for Apache >= 2.2 ]) |
187 |
- fi |
188 |
- |
189 |
-+if test "$APACHE_VER" = "2.4" ; then |
190 |
-+ AC_DEFINE([APACHE24],,[Compiling for Apache >= 2.4 ]) |
191 |
-+fi |
192 |
-+ |
193 |
- # check for --with-mono-default-config-dir |
194 |
- DFLT_MONO_CONFIG_DIR=`$APXS -q SYSCONFDIR`/mod-mono-applications |
195 |
- AC_ARG_WITH(mono-default-config-dir, |
196 |
-diff -ur mod_mono-2.10/src/mod_mono.c mod_mono-2.10.new/src/mod_mono.c |
197 |
---- mod_mono-2.10/src/mod_mono.c 2011-01-13 23:32:35.000000000 +0100 |
198 |
-+++ mod_mono-2.10.new/src/mod_mono.c 2015-06-07 21:09:26.421127351 +0200 |
199 |
-@@ -386,7 +386,11 @@ |
200 |
- apache_get_userid () |
201 |
- { |
202 |
- #ifdef HAVE_UNIXD |
203 |
-- return unixd_config.user_id; |
204 |
-+#if defined(APACHE24) |
205 |
-+ return ap_unixd_config.user_id; |
206 |
-+#else |
207 |
-+ return unixd_config.user_id; |
208 |
-+#endif |
209 |
- #else |
210 |
- return ap_user_id; |
211 |
- #endif |
212 |
-@@ -396,7 +400,11 @@ |
213 |
- apache_get_groupid () |
214 |
- { |
215 |
- #ifdef HAVE_UNIXD |
216 |
-- return unixd_config.group_id; |
217 |
-+#if defined(APACHE24) |
218 |
-+ return ap_unixd_config.user_id; |
219 |
-+#else |
220 |
-+ return unixd_config.user_id; |
221 |
-+#endif |
222 |
- #else |
223 |
- return ap_group_id; |
224 |
- #endif |
225 |
-@@ -406,7 +414,11 @@ |
226 |
- apache_get_username () |
227 |
- { |
228 |
- #ifdef HAVE_UNIXD |
229 |
-+#if defined(APACHE24) |
230 |
-+ return ap_unixd_config.user_name; |
231 |
-+#else |
232 |
- return unixd_config.user_name; |
233 |
-+#endif |
234 |
- #else |
235 |
- return ap_user_name; |
236 |
- #endif |
237 |
-@@ -485,8 +497,12 @@ |
238 |
- |
239 |
- #if defined (AP_NEED_SET_MUTEX_PERMS) && defined (HAVE_UNIXD) |
240 |
- DEBUG_PRINT (1, "Setting mutex permissions for %s", xsp->dashboard_lock_file); |
241 |
-+#if defined(APACHE24) |
242 |
-+ rv = ap_unixd_set_global_mutex_perms (xsp->dashboard_mutex); |
243 |
-+#else |
244 |
- rv = unixd_set_global_mutex_perms (xsp->dashboard_mutex); |
245 |
-- if (rv != APR_SUCCESS) { |
246 |
-+#endif |
247 |
-+ if (rv != APR_SUCCESS) { |
248 |
- ap_log_error (APLOG_MARK, APLOG_CRIT, STATCODE_AND_SERVER (rv), |
249 |
- "Failed to set mutex permissions for %s", |
250 |
- xsp->dashboard_lock_file); |
251 |
-@@ -850,10 +866,14 @@ |
252 |
- #if defined(APACHE22) |
253 |
- return c->remote_addr->port; |
254 |
- #else |
255 |
-+#if defined(APACHE24) |
256 |
-+ return c->client_addr->port; |
257 |
-+#else |
258 |
- apr_port_t port; |
259 |
- apr_sockaddr_port_get (&port, c->remote_addr); |
260 |
- return port; |
261 |
- #endif |
262 |
-+#endif |
263 |
- |
264 |
- } |
265 |
- |
266 |
-@@ -863,10 +883,14 @@ |
267 |
- #if defined(APACHE22) |
268 |
- return r->connection->local_addr->port; |
269 |
- #else |
270 |
-+#if defined(APACHE24) |
271 |
-+ return r->connection->local_addr->port; |
272 |
-+#else |
273 |
- apr_port_t port; |
274 |
- apr_sockaddr_port_get (&port, r->connection->local_addr); |
275 |
- return port; |
276 |
- #endif |
277 |
-+#endif |
278 |
- } |
279 |
- |
280 |
- static const char * |
281 |
-@@ -1977,9 +2001,12 @@ |
282 |
- size += info.local_ip_len + sizeof (int32_t); |
283 |
- |
284 |
- size += sizeof (int32_t); |
285 |
-- |
286 |
-- info.remote_ip_len = strlen (r->connection->remote_ip); |
287 |
-- size += info.remote_ip_len + sizeof (int32_t); |
288 |
-+#if defined(APACHE24) |
289 |
-+ info.remote_ip_len = strlen (r->connection->client_ip); |
290 |
-+#else |
291 |
-+ info.remote_ip_len = strlen (r->connection->remote_ip); |
292 |
-+#endif |
293 |
-+ size += info.remote_ip_len + sizeof (int32_t); |
294 |
- |
295 |
- size += sizeof (int32_t); |
296 |
- |
297 |
-@@ -2026,7 +2053,11 @@ |
298 |
- i = LE_FROM_INT (i); |
299 |
- memcpy (ptr, &i, sizeof (i)); |
300 |
- ptr += sizeof (int32_t); |
301 |
-+#if defined(APACHE24) |
302 |
-+ ptr += write_string_to_buffer (ptr, 0, r->connection->client_ip, info.remote_ip_len); |
303 |
-+#else |
304 |
- ptr += write_string_to_buffer (ptr, 0, r->connection->remote_ip, info.remote_ip_len); |
305 |
-+#endif |
306 |
- i = connection_get_remote_port (r->connection); |
307 |
- i = LE_FROM_INT (i); |
308 |
- memcpy (ptr, &i, sizeof (i)); |
309 |
-Sólo en mod_mono-2.10.new/src: mod_mono.c.orig |
310 |
|
311 |
diff --git a/www-apache/mod_mono/mod_mono-2.10-r1.ebuild b/www-apache/mod_mono/mod_mono-3.12-r1.ebuild |
312 |
similarity index 85% |
313 |
rename from www-apache/mod_mono/mod_mono-2.10-r1.ebuild |
314 |
rename to www-apache/mod_mono/mod_mono-3.12-r1.ebuild |
315 |
index 48caacb..c7463f8 100644 |
316 |
--- a/www-apache/mod_mono/mod_mono-2.10-r1.ebuild |
317 |
+++ b/www-apache/mod_mono/mod_mono-3.12-r1.ebuild |
318 |
@@ -5,7 +5,7 @@ |
319 |
EAPI=6 |
320 |
|
321 |
# Watch the order of these! |
322 |
-inherit autotools apache-module eutils mono |
323 |
+inherit autotools apache-module eutils go-mono mono |
324 |
|
325 |
KEYWORDS="~amd64 ~x86" |
326 |
|
327 |
@@ -14,6 +14,10 @@ HOMEPAGE="http://www.mono-project.com/Mod_mono" |
328 |
LICENSE="Apache-2.0" |
329 |
SLOT="0" |
330 |
IUSE="debug" |
331 |
+EGIT_COMMIT="f21ce5a86a610aba053042324970706a9c424681" |
332 |
+SRC_URI="https://github.com/mono/mod_mono/archive/${EGIT_COMMIT}.tar.gz -> ${PN}-${PV}.tar.gz" |
333 |
+RESTRICT="mirror" |
334 |
+S="${WORKDIR}/mod_mono-${EGIT_COMMIT}" |
335 |
|
336 |
CDEPEND="" |
337 |
DEPEND="${CDEPEND}" |
338 |
@@ -32,8 +36,6 @@ src_prepare() { |
339 |
sed -e "s:@LIBDIR@:$(get_libdir):" "${FILESDIR}/${APACHE2_MOD_CONF}.conf" \ |
340 |
> "${WORKDIR}/${APACHE2_MOD_CONF##*/}.conf" || die |
341 |
|
342 |
- epatch "${FILESDIR}"/${PN}-2.10-apache-2.4.patch |
343 |
- |
344 |
eautoreconf |
345 |
go-mono_src_prepare |
346 |
} |
347 |
@@ -46,6 +48,7 @@ src_configure() { |
348 |
--with-apr-config="/usr/bin/apr-1-config" \ |
349 |
--with-apu-config="/usr/bin/apu-1-config" |
350 |
} |
351 |
+ |
352 |
src_compile() { |
353 |
go-mono_src_compile |
354 |
} |