Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Wed, 15 Aug 2018 11:08:52
Message-Id: 1534331284.1bec883edcd91cec2ac5cf6300ed1b419e921298.mgorny@gentoo
1 commit: 1bec883edcd91cec2ac5cf6300ed1b419e921298
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 15 11:08:04 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 15 11:08:04 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1bec883e
7
8 gtk-sharp-module.eclass: Remove
9
10 Closes: https://bugs.gentoo.org/653460
11
12 eclass/gtk-sharp-module.eclass | 569 -----------------------------------------
13 1 file changed, 569 deletions(-)
14
15 diff --git a/eclass/gtk-sharp-module.eclass b/eclass/gtk-sharp-module.eclass
16 deleted file mode 100644
17 index 0a4aac883fb..00000000000
18 --- a/eclass/gtk-sharp-module.eclass
19 +++ /dev/null
20 @@ -1,569 +0,0 @@
21 -# Copyright 1999-2015 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -# @DEAD
25 -# Michał Górny <mgorny@g.o> (17 Jun 2018)
26 -# This eclass was used for old versions of split gtk-sharp modules,
27 -# and all packages/versions using it have been removed already.
28 -# It's not maintained, uses obsolete eclasses, outdated URIs,
29 -# it has documentation problems. Removal in 30 days.
30 -
31 -# @ECLASS: gtk-sharp-module.eclass
32 -# @MAINTAINER:
33 -# dotnet@g.o
34 -# @SUPPORTED_EAPIS: 2 3 4 5
35 -# @BLURB: Manages the modules of the gtk-, gnome-, and gnome-desktop-sharp tarballs
36 -# @DESCRIPTION:
37 -# This eclass provides phase functions and helper functions for the modules
38 -# of the gtk-sharp, gnome-sharp and gnome-desktop-sharp tarballs.
39 -# PLEASE TAKE NOTE: ONLY FOR EAPI-2 EBUILDS
40 -
41 -WANT_AUTOMAKE=none
42 -WANT_AUTOCONF=none
43 -
44 -inherit eutils mono multilib libtool autotools base versionator
45 -
46 -case ${EAPI:-0} in
47 - 2|3|4|5) ;;
48 - *) die "Unknown EAPI." ;;
49 -esac
50 -
51 -# @ECLASS-VARIABLE: GTK_SHARP_MODULE
52 -# @DESCRIPTION:
53 -# The name of the Gtk# module.
54 -# Default value: ${PN/-sharp/}
55 -GTK_SHARP_MODULE=${GTK_SHARP_MODULE:=${PN/-sharp/}}
56 -
57 -# @ECLASS-VARIABLE: GTK_SHARP_MODULE_DIR
58 -# @DESCRIPTION:
59 -# The subdirectory of S in which GTK_SHARP_MODULE is installed.
60 -# Default value: ${PN/-sharp/}
61 -GTK_SHARP_MODULE_DIR=${GTK_SHARP_MODULE_DIR:=${PN/-sharp/}}
62 -
63 -# @ECLASS-VARIABLE: GTK_SHARP_REQUIRED_VERSION
64 -# @DESCRIPTION:
65 -# The version of the gtk-sharp tarball this package requires.
66 -# Optional.
67 -GTK_SHARP_REQUIRED_VERSION="${GTK_SHARP_REQUIRED_VERSION}"
68 -
69 -# @ECLASS-VARIABLE: gapi_users_list
70 -# @DESCRIPTION:
71 -# List of modules that use one of gapi2-codegen, gapi2-fixup or gapi2-parser
72 -# No ebuild-serviceable parts inside.
73 -gapi_users_list="art gnome gnomevfs ${gnome_desktop_sharp_module_list} atk gtk gdk glade pango"
74 -
75 -# @ECLASS-VARIABLE: PV_MAJOR
76 -# @DESCRIPTION:
77 -# The first two components of the PV variable.
78 -PV_MAJOR=$(get_version_component_range 1-2)
79 -
80 -# @FUNCTION: add_bdepend
81 -# @USAGE: <package atom>
82 -# @DESCRIPTION:
83 -# Adds to the DEPEND variable
84 -add_bdepend() {
85 - [[ ${#@} -eq 1 ]] || die "${FUNCNAME} needs ONE (1) argument"
86 - DEPEND="${DEPEND} $@"
87 -}
88 -
89 -# @FUNCTION: add_rdepend
90 -# @USAGE: <package atom>
91 -# @DESCRIPTION:
92 -# Adds to the RDEPEND variable
93 -add_rdepend() {
94 - [[ ${#@} -eq 1 ]] || die "${FUNCNAME} needs ONE (1) argument"
95 - RDEPEND="${RDEPEND} $@"
96 -}
97 -
98 -# @FUNCTION: add_depend
99 -# @USAGE: <package atom>
100 -# @DESCRIPTION:
101 -# Adds to the DEPEND and RDEPEND variables
102 -add_depend() {
103 - [[ ${#@} -eq 1 ]] || die "${FUNCNAME} needs ONE (1) argument"
104 - DEPEND="${DEPEND} $@"
105 - RDEPEND="${RDEPEND} $@"
106 -}
107 -
108 -# @ECLASS-VARIABLE: TARBALL
109 -# @DESCRIPTION:
110 -# The GtkSharp modules are currently divided into three seperate tarball
111 -# distributions. The TARBALL variable holds the name of the tarball
112 -# to which GTK_SHARP_MODULE belongs.
113 -case ${GTK_SHARP_MODULE} in
114 - glib|glade|gtk|gdk|atk|pango|gtk-dotnet|gtk-gapi|gtk-docs)
115 - TARBALL="gtk-sharp"
116 - case ${PVR} in
117 - 2.12.10*)
118 - SRC_URI="mirror://gentoo/${TARBALL}-2.12.7.patch.bz2"
119 - #Upstream: https://bugzilla.novell.com/show_bug.cgi?id=$bugno
120 - #Upstream bug #470390 for the gtk-sharp-2.12.7.patch
121 - PATCHES=(
122 - "${WORKDIR}/${TARBALL}-2.12.7.patch"
123 - )
124 - ;;
125 - 2.12.11*)
126 - SRC_URI="mirror://gentoo/${TARBALL}-2.12.11.patch.bz2"
127 - PATCHES=(
128 - "${WORKDIR}/${TARBALL}-2.12.11.patch"
129 - )
130 - ;;
131 - esac
132 - case ${PVR} in
133 - 2.12.1*)
134 - EAUTORECONF="YES"
135 - add_bdepend "=sys-devel/automake-1.10*"
136 - add_bdepend ">=sys-devel/autoconf-2.61"
137 - ;;
138 - esac
139 - ;;
140 - art|gnome|gnomevfs|gconf)
141 - TARBALL="gnome-sharp"
142 - add_depend "=dev-dotnet/gtk-sharp-${GTK_SHARP_REQUIRED_VERSION}*"
143 - has "${GTK_SHARP_MODULE}" "${gapi_users_list}" && \
144 - add_bdepend "=dev-dotnet/gtk-sharp-gapi-${GTK_SHARP_REQUIRED_VERSION}*"
145 - case ${PVR} in
146 - 2.24.1*)
147 - SRC_URI="mirror://gentoo/${TARBALL}-2.24.1.patch.bz2"
148 - # Upstream bug: https://bugzilla.novell.com/show_bug.cgi?id=483251
149 - PATCHES=(
150 - "${WORKDIR}/${TARBALL}-2.24.1.patch"
151 - )
152 - EAUTORECONF="YES"
153 - add_bdepend "=sys-devel/automake-1.10*"
154 - add_bdepend ">=sys-devel/autoconf-2.61"
155 - ;;
156 - 2.24.2*)
157 - add_depend ">=dev-lang/mono-2.7"
158 - ;;
159 - esac
160 - ;;
161 - gnome-desktop|gnome-print|gnome-panel|gtkhtml|gtksourceview|nautilusburn|rsvg|vte|wnck)
162 - TARBALL="gnome-desktop-sharp"
163 - add_depend "=dev-dotnet/gtk-sharp-${GTK_SHARP_REQUIRED_VERSION}*"
164 - add_depend "=dev-dotnet/gnome-sharp-2.24*"
165 - add_depend "gnome-base/gnome-desktop:2"
166 - add_bdepend "|| ( >=dev-dotnet/gtk-sharp-2.12.21 =dev-dotnet/gtk-sharp-gapi-${GTK_SHARP_REQUIRED_VERSION}* )"
167 - ;;
168 - *)
169 - eerror "Huh? Sonny boy, looks like your GTK_SHARP_MODULE is not on the approved list. BAILING!"
170 - die "How did we get here!!?"
171 - ;;
172 -esac
173 -
174 -case ${PF} in
175 - #gtk-sharp tarball
176 - gtk-sharp-docs*)
177 - add_depend ">=dev-lang/mono-2.0"
178 - ;;
179 - gtk-sharp-gapi*)
180 - add_rdepend "!<=dev-dotnet/gtk-sharp-2.12.7:2"
181 - add_depend "dev-perl/XML-LibXML"
182 - ;;
183 - gtk-sharp-*)
184 - add_bdepend "~dev-dotnet/gtk-sharp-gapi-${PV}"
185 - add_depend "~dev-dotnet/glib-sharp-${PV}"
186 - add_depend "~dev-dotnet/atk-sharp-${PV}"
187 - add_depend "~dev-dotnet/gdk-sharp-${PV}"
188 - add_depend "~dev-dotnet/pango-sharp-${PV}"
189 - ;;
190 - gdk-sharp-*)
191 - add_bdepend "~dev-dotnet/gtk-sharp-gapi-${PV}"
192 - add_depend "~dev-dotnet/glib-sharp-${PV}"
193 - add_depend "x11-libs/gtk+:2"
194 - add_depend "~dev-dotnet/pango-sharp-${PV}"
195 - add_rdepend "!<=dev-dotnet/gtk-sharp-2.12.7:2"
196 - ;;
197 - atk-sharp-*)
198 - add_bdepend "~dev-dotnet/gtk-sharp-gapi-${PV}"
199 - add_depend "~dev-dotnet/glib-sharp-${PV}"
200 - add_depend "dev-libs/atk"
201 - add_rdepend "!<=dev-dotnet/gtk-sharp-2.12.7:2"
202 - ;;
203 - glib-sharp-*)
204 - add_rdepend "!<=dev-dotnet/gtk-sharp-2.12.7:2"
205 - add_depend "dev-libs/glib:2"
206 - ;;
207 - pango-sharp-*)
208 - add_bdepend "~dev-dotnet/gtk-sharp-gapi-${PV}"
209 - add_depend "~dev-dotnet/glib-sharp-${PV}"
210 - add_depend "x11-libs/pango"
211 - add_rdepend "!<=dev-dotnet/gtk-sharp-2.12.7:2"
212 - ;;
213 - gtk-dotnet-*)
214 - add_depend "~dev-dotnet/glib-sharp-${PV}"
215 - add_depend "~dev-dotnet/gdk-sharp-${PV}"
216 - add_depend "~dev-dotnet/pango-sharp-${PV}"
217 - add_depend "~dev-dotnet/gtk-sharp-${PV}"
218 - add_depend "dev-lang/mono[-minimal]"
219 - add_rdepend "!<=dev-dotnet/gtk-sharp-2.12.7:2"
220 - ;;
221 - glade-sharp-*)
222 - add_bdepend "~dev-dotnet/gtk-sharp-gapi-${PV}"
223 - add_depend "~dev-dotnet/glib-sharp-${PV}"
224 - add_depend "~dev-dotnet/atk-sharp-${PV}"
225 - add_depend "~dev-dotnet/gdk-sharp-${PV}"
226 - add_depend "~dev-dotnet/gtk-sharp-${PV}"
227 - add_depend "~dev-dotnet/pango-sharp-${PV}"
228 - add_depend ">=gnome-base/libglade-2.3.6:2.0"
229 - ;;
230 - #gnome-sharp tarball
231 - art-sharp-*)
232 - add_depend ">=media-libs/libart_lgpl-2.3.20"
233 - ;;
234 - gnome-sharp-*)
235 - add_depend ">=gnome-base/libgnomeui-${PV_MAJOR}"
236 - add_depend "~dev-dotnet/gnomevfs-sharp-${PV}"
237 - add_depend "~dev-dotnet/art-sharp-${PV}"
238 - add_depend ">=gnome-base/libgnomecanvas-${GNOMECANVAS_REQUIRED_VERSION}"
239 - add_depend ">=x11-libs/gtk+-2.14.0:2"
240 - ;;
241 - gconf-sharp-*)
242 - add_depend ">=gnome-base/gconf-${PV_MAJOR}:2"
243 - add_depend "=dev-dotnet/glade-sharp-${GTK_SHARP_REQUIRED_VERSION}*"
244 - add_depend "~dev-dotnet/gnome-sharp-${PV}"
245 - add_depend "~dev-dotnet/art-sharp-${PV}"
246 - ;;
247 - gnomevfs-sharp-*)
248 - add_depend ">=gnome-base/gnome-vfs-${PV_MAJOR}:2"
249 - ;;
250 - #gnome-desktop-sharp tarball
251 - gnome-desktop-sharp-*)
252 - # NOTE: libgnome-desktop-2.so has been known to make binary-
253 - # incompatible changes, requiring .so bumps. gnome-desktop-sharp
254 - # is locked to a specific .so.n version, so strict dependencies
255 - # may be required in the future (as it has in the past).
256 - add_depend ">=gnome-base/gnome-desktop-${PV_MAJOR}:2"
257 - ;;
258 - gnome-panel-sharp-*)
259 - add_depend ">=gnome-base/gnome-panel-${PV_MAJOR}"
260 - ;;
261 - gnome-print-sharp-*)
262 - add_depend "gnome-base/libgnomeprint:2.2"
263 - add_depend "gnome-base/libgnomeprintui:2.2"
264 - ;;
265 - gtkhtml-sharp-*)
266 - #NOTE: gtkhtml dependency must follow gtkhtml-sharp version.
267 - #i.e. gtkhtml-sharp-2.24.0 >=gtkhtml-3.24
268 - # gtkhtml-sharp-2.16.0 >=gtkhtml-3.16
269 - # See bug 249540 for unpleasant side effects.
270 - add_depend ">=gnome-extra/gtkhtml-$(($(get_version_component_range 1) + 1 )).$(get_version_component_range 2):3.14"
271 - ;;
272 - gtksourceview-sharp-*)
273 - add_depend ">=x11-libs/gtksourceview-${GTKSOURCEVIEW_REQUIRED_VERSION}:2.0"
274 - ;;
275 - nautilusburn-sharp-*)
276 - add_depend ">=gnome-extra/nautilus-cd-burner-2.24.0"
277 - ;;
278 - rsvg-sharp-*)
279 - add_depend ">=gnome-base/librsvg-${RSVG_REQUIRED_VERSION}:2"
280 - ;;
281 - vte-sharp-*)
282 - add_depend ">=x11-libs/vte-${VTE_REQUIRED_VERSION}:0"
283 - ;;
284 - wnck-sharp-*)
285 - add_depend ">=x11-libs/libwnck-${PV_MAJOR}:1"
286 - ;;
287 -esac
288 -
289 -# @ECLASS-VARIABLE: DESCRIPTION
290 -# @DESCRIPTION:
291 -# Default value: GtkSharp's ${GTK_SHARP_MODULE} module of the ${TARBALL} tarball
292 -DESCRIPTION="GtkSharp's ${GTK_SHARP_MODULE} module of the ${TARBALL} tarball"
293 -# @ECLASS-VARIABLE: HOMEPAGE
294 -# @DESCRIPTION:
295 -# Default value: http://www.mono-project.com/GtkSharp
296 -HOMEPAGE="http://www.mono-project.com/GtkSharp"
297 -# @ECLASS-VARIABLE: LICENSE
298 -# @DESCRIPTION:
299 -# Default value: LGPL-2.1
300 -LICENSE="LGPL-2.1"
301 -
302 -add_depend ">=dev-lang/mono-2.0.1"
303 -add_bdepend ">=sys-apps/sed-4"
304 -add_bdepend "virtual/pkgconfig"
305 -add_bdepend ">=app-shells/bash-3.1"
306 -
307 -IUSE="debug"
308 -# @ECLASS-VARIABLE: S
309 -# @DESCRIPTION:
310 -# Default value: ${WORKDIR}/${TARBALL}-${PV}
311 -S="${WORKDIR}/${TARBALL}-${PV}"
312 -# @ECLASS-VARIABLE: SRC_URI
313 -# @DESCRIPTION:
314 -# Default value: mirror://gnome/sources/${TARBALL}/${PV_MAJOR}/${TARBALL}-${PV}.tar.bz2
315 -if [[ ${TARBALL} == "gtk-sharp" ]]; then
316 - SRC_URI="${SRC_URI}
317 - http://download.mono-project.com/sources/gtk-sharp212/${TARBALL}-${PV}.tar.bz2"
318 -else
319 - SRC_URI="${SRC_URI}
320 - mirror://gnome/sources/${TARBALL}/${PV_MAJOR}/${TARBALL}-${PV}.tar.bz2"
321 -fi
322 -
323 -# @FUNCTION: get_sharp_apis
324 -# @USAGE: <type> <pkgconfig-package>
325 -# @RETURN: .NET API files
326 -# @DESCRIPTION:
327 -# Given a valid pkg-config package, will return a list of API xml files.
328 -# <type> can be either --prefixed or --bare. If prefixed, each API file
329 -# will be prefixed with -I:
330 -get_sharp_apis() {
331 - [[ ${#@} -eq 2 ]] || die "${FUNCNAME} needs two arguments"
332 - get_sharp_assemblies "$@"
333 -}
334 -
335 -# @FUNCTION: get_sharp_assemblies
336 -# @USAGE: <type> <pkgconfig-package>
337 -# @RETURN: .NET .dll assemblies
338 -# @DESCRIPTION:
339 -# Given a valid pkg-config package, will return a list of .dll assemblies.
340 -# <type> can be either --prefixed or --bare. If prefixed, each .dll file
341 -# will be prefixed with -r:
342 -get_sharp_assemblies() {
343 - [[ ${#@} -eq 2 ]] || die "${FUNCNAME} needs two arguments"
344 - local string config=libs prefix="-r:"
345 - local -a rvalue
346 - [[ "${FUNCNAME[1]}" = "get_sharp_apis" ]] && config=cflags && prefix="-I:"
347 - for string in $(pkg-config --${config} ${2} 2> /dev/null)
348 - do
349 - rvalue+=( ${string#-?:} )
350 - done
351 -
352 - case $1 in
353 - --bare)
354 - :
355 - ;;
356 - --prefixed)
357 - for (( i=0 ; i< ${#rvalue[@]} ; i++ ))
358 - do
359 - rvalue[$i]=${prefix}${rvalue[$i]}
360 - done
361 - ;;
362 - *)
363 - die "${FUNCNAME}: Unknown parameter"
364 - ;;
365 - esac
366 - echo "${rvalue[@]}"
367 -}
368 -
369 -# @FUNCTION: phase_hook
370 -# @USAGE: <prefix>
371 -# @DESCRIPTION:
372 -# Looks for functions named <prefix>_caller_suffix and executes them.
373 -# _caller_suffix is the calling function with the prefix
374 -# gtk-sharp-module removed.
375 -phase_hook() {
376 - [[ ${#@} -eq 1 ]] || die "${FUNCNAME} needs one argument"
377 - if [[ "$(type -t ${1}${FUNCNAME[1]#gtk-sharp-module})" = "function" ]]
378 - then
379 - ebegin "Phase-hook: Running ${1}${FUNCNAME[1]#gtk-sharp-module}"
380 - ${1}${FUNCNAME[1]#gtk-sharp-module}
381 - eend 0
382 - fi
383 -}
384 -
385 -# @FUNCTION: ac_path_prog_override
386 -# @USAGE: <PROG> [path]
387 -# @DESCRIPTION:
388 -# Override AC_PATH_PROG() autoconf macros. Path will be set to " " if
389 -# not specified.
390 -ac_path_prog_override() {
391 - if [[ ${#@} -lt 1 || ${#@} -gt 2 ]]
392 - then
393 - eerror "${FUNCNAME[0]} requires at least one parameter and takes at most two:"
394 - eerror "AC_PATH_PROG(PARAM1, param2)"
395 - die "${FUNCNAME[0]} requires at least one parameter and takes at most two:"
396 - fi
397 - export ac_cv_path_${1}="${2:- }"
398 -}
399 -
400 -
401 -# @FUNCTION: pkg_check_modules_override
402 -# @USAGE: <GROUP> [package1] [package2]
403 -# @DESCRIPTION:
404 -# Will export the appropriate variables to override PKG_CHECK_MODULES autoconf
405 -# macros, with the string " " by default. If packages are specified, they will
406 -# be looked up with pkg-config and the appropriate LIBS and CFLAGS substituted.
407 -# LIBS and CFLAGS can also be specified per-package with the following syntax:
408 -# @CODE
409 -# package=LIBS%CFLAGS
410 -# @CODE
411 -# = and % have no effect unless both are specified.
412 -# Here is an example:
413 -# @CODE
414 -# pkg_check_modules_override GASH "gtk+-2.0=-jule%" gobject-2.0
415 -# @CODE
416 -# The above example will do:
417 -# export GASH_CFLAGS+=" -jule"
418 -# export GASH_LIBS+=" "
419 -# export GASH_CFLAGS+=" $(pkg-config --cflags gobject-2.0)"
420 -# export GASH_LIBS+=" $(pkg-config --libs gobject-2.0)"
421 -#
422 -# NOTE: If a package is not found, the string " " will be inserted in place of
423 -# <GROUP>_CFLAGS and <GROUP>_LIBS
424 -pkg_check_modules_override() {
425 - local package
426 - local group="${1}"
427 - local packages="${*:2}"
428 - export ${group}_CFLAGS=" "
429 - export ${group}_LIBS=" "
430 -
431 - if [[ ${#@} -lt 1 ]]
432 - then
433 - eerror "${FUNCNAME[0]} requires at least one parameter: GROUP"
434 - eerror "PKG_CHECK_MODULES(GROUP, package1 package2 etc)"
435 - die "${FUNCNAME[0]} requires at least one parameter: GROUP"
436 - fi
437 -
438 - for package in $packages
439 - do
440 - if [[ ${package/=} != ${package} && ${package/\%} != ${package} ]]
441 - then
442 - package_cflag_libs=${package##*=}
443 - export ${group}_CFLAGS+=" ${package_cflag_libs%%\%*}"
444 - export ${group}_LIBS+=" ${package_cflag_libs##*\%}"
445 - else
446 - if pkg-config --exists $package
447 - then
448 - export ${group}_CFLAGS+=" $(pkg-config --cflags $package)"
449 - export ${group}_LIBS+=" $(pkg-config --libs $package)"
450 - else
451 - export ${group}_CFLAGS+=" "
452 - export ${group}_LIBS+=" "
453 - fi
454 - fi
455 - done
456 -}
457 -
458 -# @FUNCTION: gtk-sharp-tarball-post_src_prepare
459 -# @DESCRIPTION:
460 -# Runs a M-m-m-monster sed on GTK_SHARP_MODULE_DIR to convert references to
461 -# local assemblies to the installed ones. Is only called by src_prepare when
462 -# $GTK_SHARP_MODULE is a member of $gtk_sharp_module_list.
463 -gtk-sharp-tarball-post_src_prepare() {
464 - has "${EAPI:-0}" 2 && ! use prefix && EPREFIX=
465 - cd "${S}/${GTK_SHARP_MODULE_DIR}"
466 - sed -i \
467 - -e "s; \$(srcdir)/../glib/glib-api.xml; $(get_sharp_apis --bare glib-sharp-2.0);" \
468 - -e "s; ../pango/pango-api.xml; $(get_sharp_apis --bare pango-sharp-2.0);" \
469 - -e "s; ../atk/atk-api.xml; $(get_sharp_apis --bare atk-sharp-2.0);" \
470 - -e "s; ../gdk/gdk-api.xml; $(get_sharp_apis --bare gdk-sharp-2.0);" \
471 - -e "s; ../gtk/gtk-api.xml; $(get_sharp_apis --bare gtk-sharp-2.0);" \
472 - -e "s; \.\./glib/glib-sharp.dll; $(get_sharp_assemblies --bare glib-sharp-2.0);g" \
473 - -e "s; \.\./pango/pango-sharp.dll; $(get_sharp_assemblies --bare pango-sharp-2.0);g" \
474 - -e "s; \.\./atk/atk-sharp.dll; $(get_sharp_assemblies --bare atk-sharp-2.0);g" \
475 - -e "s; \.\./gdk/gdk-sharp.dll; $(get_sharp_assemblies --bare gdk-sharp-2.0);g" \
476 - -e "s; \.\./gtk/gtk-sharp.dll; $(get_sharp_assemblies --bare gtk-sharp-2.0);g" \
477 - -e "s;\$(RUNTIME) \$(top_builddir)/parser/gapi-fixup.exe;${EPREFIX}/usr/bin/gapi2-fixup;" \
478 - -e "s;\$(RUNTIME) \$(top_builddir)/generator/gapi_codegen.exe;${EPREFIX}/usr/bin/gapi2-codegen;" \
479 - -e "s:\$(SYMBOLS) \$(top_builddir)/parser/gapi-fixup.exe:\$(SYMBOLS):" \
480 - -e "s:\$(INCLUDE_API) \$(top_builddir)/generator/gapi_codegen.exe:\$(INCLUDE_API):" \
481 - $(find . -name Makefile.in) || die "failed to fix ${TARBALL}-tarball makefiles"
482 -}
483 -
484 -# @FUNCTION: gnome-sharp-tarball-post_src_prepare
485 -# @DESCRIPTION:
486 -# Runs a M-m-m-monster sed on GTK_SHARP_MODULE_DIR to convert references to
487 -# local assemblies to the installed ones. Is only called by src_prepare when
488 -# $GTK_SHARP_MODULE is a member of $gnome_sharp_module_list.
489 -gnome-sharp-tarball-post_src_prepare() {
490 - cd "${S}/${GTK_SHARP_MODULE_DIR}"
491 - sed -i \
492 - -e "s; ../gnomevfs/gnome-vfs-api.xml; $(get_sharp_apis --bare gnome-vfs-sharp-2.0);" \
493 - -e "s; ../art/art-api.xml; $(get_sharp_apis --bare art-sharp-2.0);" \
494 - -e "s; \.\./art/art-sharp.dll; $(get_sharp_assemblies --bare art-sharp-2.0);g" \
495 - -e "s; \.\./gnomevfs/gnome-vfs-sharp.dll; $(get_sharp_assemblies --bare gnome-vfs-sharp-2.0);g" \
496 - -e "s;/r:\$(top_builddir)/art/art-sharp.dll;$(get_sharp_assemblies --prefixed art-sharp-2.0);" \
497 - -e "s;/r:\$(top_builddir)/gnome/gnome-sharp.dll;$(get_sharp_assemblies --prefixed gnome-sharp-2.0);" \
498 - $(find . -name Makefile.in) || die "failed to fix ${TARBALL}-tarball makefiles"
499 -}
500 -
501 -# @FUNCTION: gtk-sharp-module_src_prepare
502 -# @DESCRIPTION:
503 -# Runs autopatch from base.eclass, eautoreconf if EAUTORECONF is set to any
504 -# value.
505 -# Contains a phase_hook, runs very last.
506 -# phase_hook prefix trigger: ${TARBALL}-tarball-post
507 -# Is exported.
508 -gtk-sharp-module_src_prepare() {
509 - base_src_prepare
510 -# @ECLASS-VARIABLE: EAUTORECONF
511 -# @DESCRIPTION:
512 -# If set, EAUTORECONF will be run during src_prepare.
513 - [[ ${EAUTORECONF} ]] && eautoreconf
514 - phase_hook ${TARBALL}-tarball-post
515 - elibtoolize
516 -}
517 -
518 -# @FUNCTION: gtk-sharp-tarball_src_configure
519 -# @DESCRIPTION:
520 -# Sets some environment variables that will allow us to make the dependencies
521 -# for each ebuild be only its own dependencies, without patching configure.
522 -# Is only called by gtk-sharp-module_src_configure when $GTK_SHARP_MODULE
523 -# is a member of $gtk_sharp_module_list.
524 -gtk-sharp-tarball_src_configure() {
525 - pkg_check_modules_override GLIB gobject-2.0
526 - pkg_check_modules_override GIO gio-2.0
527 - pkg_check_modules_override PANGO pango
528 - pkg_check_modules_override ATK atk
529 - pkg_check_modules_override GTK gtk+-2.0
530 - pkg_check_modules_override GLADE libglade-2.0
531 -}
532 -
533 -# @FUNCTION: gnome-sharp-tarball_src_configure
534 -# @DESCRIPTION:
535 -# Sets some environment variables that will allow us to make the dependencies
536 -# for each ebuild be only its own dependencies. Without patching configure.
537 -# Is only called by gtk-sharp-module_src_configure when $GTK_SHARP_MODULE
538 -# is a member of $gnome_sharp_module_list.
539 -gnome-sharp-tarball_src_configure() {
540 - has "${EAPI:-0}" 2 && ! use prefix && EPREFIX=
541 - pkg_check_modules_override GLADESHARP glade-sharp-2.0
542 - pkg_check_modules_override GAPI gapi-2.0
543 - ac_path_prog_override GAPI_PARSER "${EPREFIX}"/usr/bin/gapi2-parser
544 - ac_path_prog_override GAPI_CODEGEN "${EPREFIX}"/usr/bin/gapi2-codegen
545 - ac_path_prog_override GAPI_FIXUP "${EPREFIX}"/usr/bin/gapi2-fixup
546 -}
547 -
548 -# @FUNCTION: gtk-sharp-module_src_configure
549 -# @USAGE: [econf-arguments]
550 -# @DESCRIPTION:
551 -# Calls econf with some default values.
552 -# Contains a phase_hook, run before econf.
553 -# phase_hook prefix trigger: ${TARBALL}-tarball
554 -# Is exported.
555 -gtk-sharp-module_src_configure() {
556 - phase_hook ${TARBALL}-tarball
557 - econf --disable-static \
558 - --disable-dependency-tracking \
559 - --disable-maintainer-mode \
560 - $(use debug &&echo "--enable-debug" ) \
561 - ${@} || die "econf failed"
562 -}
563 -
564 -# @FUNCTION: gtk-sharp-module_src_compile
565 -# @DESCRIPTION:
566 -# Calls emake in the subdir of the module.
567 -# Sets CSC=/usr/bin/mcs. Deletes top_srcdir Makefiles to prevent recursing in
568 -# case we missed some dll references.
569 -# Is exported.
570 -gtk-sharp-module_src_compile() {
571 - rm -f "${S}"/Makefile* &> /dev/null
572 - cd "${S}/${GTK_SHARP_MODULE_DIR}"
573 - emake CSC=/usr/bin/mcs || die "emake failed"
574 -}
575 -
576 -# @FUNCTION: gtk-sharp-module_src_install
577 -# @DESCRIPTION:
578 -# Installs the module. Fixes up lib paths so they're multilib-safe.
579 -# Gets rid of .la files.
580 -# Is exported.
581 -gtk-sharp-module_src_install() {
582 - cd "${S}/${GTK_SHARP_MODULE_DIR}"
583 - emake DESTDIR="${D}" install || die "emake install failed"
584 - mono_multilib_comply
585 - find "${D}" -type f -name '*.la' -exec rm -rf '{}' '+' || die "la removal failed"
586 - [[ $(find "${D}" -type f|wc -l) -lt 3 ]] && die "Too few files. This smells like a failed install."
587 -}
588 -
589 -EXPORT_FUNCTIONS src_prepare src_configure src_compile src_install