/[gentoo-x86]/eclass/gtk-sharp-module.eclass
Gentoo

Diff of /eclass/gtk-sharp-module.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.14 Revision 1.22
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/gtk-sharp-module.eclass,v 1.14 2009/01/29 22:48:20 loki_val Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gtk-sharp-module.eclass,v 1.22 2009/03/17 16:33:28 loki_val Exp $
4 4
5# @ECLASS: gtk-sharp-module.eclass 5# @ECLASS: gtk-sharp-module.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# dotnet@gentoo.org 7# dotnet@gentoo.org
8# @BLURB: Manages the modules of the gtk-, gnome-, and gnome-desktop-sharp tarballs 8# @BLURB: Manages the modules of the gtk-, gnome-, and gnome-desktop-sharp tarballs
43# @ECLASS-VARIABLE: PV_MAJOR 43# @ECLASS-VARIABLE: PV_MAJOR
44# @DESCRIPTION: 44# @DESCRIPTION:
45# The first two components of the PV variable. 45# The first two components of the PV variable.
46PV_MAJOR=$(get_version_component_range 1-2) 46PV_MAJOR=$(get_version_component_range 1-2)
47 47
48# @FUNCTION: add_bdepends 48# @FUNCTION: add_bdepend
49# @USAGE: <package atom> 49# @USAGE: <package atom>
50# @DESCRIPTION: 50# @DESCRIPTION:
51# Adds to the DEPEND variable 51# Adds to the DEPEND variable
52add_bdepend() { 52add_bdepend() {
53 [[ ${#@} -eq 1 ]] || die "${FUNCNAME} needs ONE (1) argument" 53 [[ ${#@} -eq 1 ]] || die "${FUNCNAME} needs ONE (1) argument"
54 DEPEND="${DEPEND} $@" 54 DEPEND="${DEPEND} $@"
55} 55}
56 56
57# @FUNCTION: add_rdepends 57# @FUNCTION: add_rdepend
58# @USAGE: <package atom> 58# @USAGE: <package atom>
59# @DESCRIPTION: 59# @DESCRIPTION:
60# Adds to the RDEPEND variable 60# Adds to the RDEPEND variable
61add_rdepend() { 61add_rdepend() {
62 [[ ${#@} -eq 1 ]] || die "${FUNCNAME} needs ONE (1) argument" 62 [[ ${#@} -eq 1 ]] || die "${FUNCNAME} needs ONE (1) argument"
80# to which GTK_SHARP_MODULE belongs. 80# to which GTK_SHARP_MODULE belongs.
81case ${GTK_SHARP_MODULE} in 81case ${GTK_SHARP_MODULE} in
82 glib|glade|gtk|gdk|atk|pango|gtk-dotnet|gtk-gapi|gtk-docs) 82 glib|glade|gtk|gdk|atk|pango|gtk-dotnet|gtk-gapi|gtk-docs)
83 TARBALL="gtk-sharp" 83 TARBALL="gtk-sharp"
84 case ${PVR} in 84 case ${PVR} in
85 2.12.7-r1*) 85 2.12.*)
86 SRC_URI="mirror://gentoo/gtk-sharp-2.12.0-patches.tar.bz2 86 SRC_URI="mirror://gentoo/${TARBALL}-2.12.7.patch.bz2"
87 mirror://gentoo/gtk-sharp-2.12.7.patch.bz2"
88 #Upstream: https://bugzilla.novell.com/show_bug.cgi?id=$bugno 87 #Upstream: https://bugzilla.novell.com/show_bug.cgi?id=$bugno
89 #Upstream bug #421063 for the parallel-make patches
90 #Upstream bug #470390 for the gtk-sharp-2.12.7.patch 88 #Upstream bug #470390 for the gtk-sharp-2.12.7.patch
91 PATCHES=( "${WORKDIR}/patches/${TARBALL}-2.12.0-parallelmake.patch" 89 PATCHES=(
92 "${WORKDIR}/patches/${TARBALL}-2.12.0-doc-parallelmake.patch"
93 "${WORKDIR}/${TARBALL}-2.12.7.patch" ) 90 "${WORKDIR}/${TARBALL}-2.12.7.patch"
91 )
94 EAUTORECONF="YES" 92 EAUTORECONF="YES"
95 add_bdepend "=sys-devel/automake-1.10*" 93 add_bdepend "=sys-devel/automake-1.10*"
96 add_bdepend ">=sys-devel/autoconf-2.61" 94 add_bdepend ">=sys-devel/autoconf-2.61"
97 ;; 95 ;;
98 esac 96 esac
100 art|gnome|gnomevfs|gconf) 98 art|gnome|gnomevfs|gconf)
101 TARBALL="gnome-sharp" 99 TARBALL="gnome-sharp"
102 add_depend "=dev-dotnet/gtk-sharp-${GTK_SHARP_REQUIRED_VERSION}*" 100 add_depend "=dev-dotnet/gtk-sharp-${GTK_SHARP_REQUIRED_VERSION}*"
103 has "${GTK_SHARP_MODULE}" "${gapi_users_list}" && \ 101 has "${GTK_SHARP_MODULE}" "${gapi_users_list}" && \
104 add_bdepend "=dev-dotnet/gtk-sharp-gapi-${GTK_SHARP_REQUIRED_VERSION}*" 102 add_bdepend "=dev-dotnet/gtk-sharp-gapi-${GTK_SHARP_REQUIRED_VERSION}*"
103 case ${PVR} in
104 2.24.1*)
105 SRC_URI="mirror://gentoo/${TARBALL}-2.24.1.patch.bz2"
106 # Upstream bug: https://bugzilla.novell.com/show_bug.cgi?id=483251
107 PATCHES=(
108 "${WORKDIR}/${TARBALL}-2.24.1.patch"
109 )
110 EAUTORECONF="YES"
111 add_bdepend "=sys-devel/automake-1.10*"
112 add_bdepend ">=sys-devel/autoconf-2.61"
113 ;;
114 esac
105 ;; 115 ;;
106 gnome-desktop|gnome-print|gnome-panel|gtkhtml|gtksourceview|nautilusburn|rsvg|vte|wnck) 116 gnome-desktop|gnome-print|gnome-panel|gtkhtml|gtksourceview|nautilusburn|rsvg|vte|wnck)
107 TARBALL="gnome-desktop-sharp" 117 TARBALL="gnome-desktop-sharp"
108 add_depend "=dev-dotnet/gtk-sharp-${GTK_SHARP_REQUIRED_VERSION}*" 118 add_depend "=dev-dotnet/gtk-sharp-${GTK_SHARP_REQUIRED_VERSION}*"
109 add_depend "=dev-dotnet/gnome-sharp-${PV_MAJOR}*" 119 add_depend "=dev-dotnet/gnome-sharp-2.24*"
110 add_bdepend "=dev-dotnet/gtk-sharp-gapi-${GTK_SHARP_REQUIRED_VERSION}*" 120 add_bdepend "=dev-dotnet/gtk-sharp-gapi-${GTK_SHARP_REQUIRED_VERSION}*"
111 ;; 121 ;;
112 *) 122 *)
113 eerror "Huh? Sonny boy, looks like your GTK_SHARP_MODULE is not on the approved list. BAILING!" 123 eerror "Huh? Sonny boy, looks like your GTK_SHARP_MODULE is not on the approved list. BAILING!"
114 die "How did we get here!!?" 124 die "How did we get here!!?"
175 art-sharp-*) 185 art-sharp-*)
176 add_depend ">=media-libs/libart_lgpl-2.3.20" 186 add_depend ">=media-libs/libart_lgpl-2.3.20"
177 ;; 187 ;;
178 gnome-sharp-*) 188 gnome-sharp-*)
179 add_depend ">=gnome-base/libgnomeui-${PV_MAJOR}" 189 add_depend ">=gnome-base/libgnomeui-${PV_MAJOR}"
180 add_depend ">=gnome-base/gnome-panel-${PV_MAJOR}"
181 add_depend "~dev-dotnet/gnomevfs-sharp-${PV}" 190 add_depend "~dev-dotnet/gnomevfs-sharp-${PV}"
182 add_depend "~dev-dotnet/art-sharp-${PV}" 191 add_depend "~dev-dotnet/art-sharp-${PV}"
183 add_depend ">=gnome-base/libgnomecanvas-${GNOMECANVAS_REQUIRED_VERSION}" 192 add_depend ">=gnome-base/libgnomecanvas-${GNOMECANVAS_REQUIRED_VERSION}"
193 add_depend ">=x11-libs/gtk+-2.14.0"
184 ;; 194 ;;
185 gconf-sharp-*) 195 gconf-sharp-*)
186 add_depend ">=gnome-base/gconf-${PV_MAJOR}" 196 add_depend ">=gnome-base/gconf-${PV_MAJOR}"
187 add_depend ">=dev-dotnet/glade-sharp-${GTK_SHARP_REQUIRED_VERSION}" 197 add_depend "=dev-dotnet/glade-sharp-${GTK_SHARP_REQUIRED_VERSION}*"
188 add_depend "~dev-dotnet/gnome-sharp-${PV}" 198 add_depend "~dev-dotnet/gnome-sharp-${PV}"
189 add_depend "~dev-dotnet/art-sharp-${PV}" 199 add_depend "~dev-dotnet/art-sharp-${PV}"
190 ;; 200 ;;
191 gnomevfs-sharp-*) 201 gnomevfs-sharp-*)
192 add_depend ">=gnome-base/gnome-vfs-${PV_MAJOR}" 202 add_depend ">=gnome-base/gnome-vfs-${PV_MAJOR}"
193 ;; 203 ;;
194 #gnome-desktop-sharp tarball 204 #gnome-desktop-sharp tarball
195 gnome-desktop-sharp-*) 205 gnome-desktop-sharp-*)
206 # NOTE: This is REQUIRED to be locked to PV_MAJOR
207 # libgnome-desktop-2.so.INTEGER is hardcoded in gnomedesktop-sharp.dll.config
196 add_depend "=gnome-base/gnome-desktop-${PV_MAJOR}*" 208 add_depend "=gnome-base/gnome-desktop-${PV_MAJOR}*"
197 ;; 209 ;;
198 gnome-panel-sharp-*) 210 gnome-panel-sharp-*)
199 add_depend "=gnome-base/gnome-panel-${PV_MAJOR}*" 211 add_depend ">=gnome-base/gnome-panel-${PV_MAJOR}"
200 ;; 212 ;;
201 gnome-print-sharp-*) 213 gnome-print-sharp-*)
202 add_depend ">=gnome-base/libgnomeprint-${API_VERSION}" 214 add_depend ">=gnome-base/libgnomeprint-${API_VERSION}"
203 ;; 215 ;;
204 gtkhtml-sharp-*) 216 gtkhtml-sharp-*)
242add_bdepend ">=sys-apps/sed-4" 254add_bdepend ">=sys-apps/sed-4"
243add_bdepend ">=dev-util/pkgconfig-0.23" 255add_bdepend ">=dev-util/pkgconfig-0.23"
244add_bdepend ">=app-shells/bash-3.1" 256add_bdepend ">=app-shells/bash-3.1"
245 257
246IUSE="debug" 258IUSE="debug"
247# @ECLASS-VARIABLE: HOMEPAGE 259# @ECLASS-VARIABLE: S
248# @DESCRIPTION: 260# @DESCRIPTION:
249# Default value: ${WORKDIR}/${TARBALL}-${PV} 261# Default value: ${WORKDIR}/${TARBALL}-${PV}
250S="${WORKDIR}/${TARBALL}-${PV}" 262S="${WORKDIR}/${TARBALL}-${PV}"
251# @ECLASS-VARIABLE: SRC_URI 263# @ECLASS-VARIABLE: SRC_URI
252# @DESCRIPTION: 264# @DESCRIPTION:

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.22

  ViewVC Help
Powered by ViewVC 1.1.20