1 |
commit: bef2c5dce907da4a40a6496d5268e6794564de16 |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 23 08:41:25 2014 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 23 08:42:51 2014 +0000 |
6 |
URL: http://sources.gentoo.org/gitweb/?p=dev/leio.git;a=commit;h=bef2c5dc |
7 |
|
8 |
Add x11-libs/gtk+:3 modified to accept raspberrypi-userland[wayland] as a wayland wsys provider |
9 |
|
10 |
--- |
11 |
x11-libs/gtk+/Manifest | 1 + |
12 |
x11-libs/gtk+/files/settings.ini | 4 + |
13 |
x11-libs/gtk+/gtk+-3.12.2.ebuild | 221 +++++++++++++++++++++++++++++++++++++++ |
14 |
x11-libs/gtk+/metadata.xml | 21 ++++ |
15 |
4 files changed, 247 insertions(+) |
16 |
|
17 |
diff --git a/x11-libs/gtk+/Manifest b/x11-libs/gtk+/Manifest |
18 |
new file mode 100644 |
19 |
index 0000000..4fa8c24 |
20 |
--- /dev/null |
21 |
+++ b/x11-libs/gtk+/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST gtk+-3.12.2.tar.xz 15015024 SHA256 61d74eea74231b1ea4b53084a9d6fc9917ab0e1d71b69d92cbf60a4b4fb385d0 SHA512 4a8d2f52328587d73e30f363bdbbd91322dae0198f5581a2da3ebbe96ef0a0635193d2537e8fc127dc0950a24df42862233edd3a873dcbd166dc675bae849c9e WHIRLPOOL 26328632d78f986d25e40d8773ff3cc90a0b3a5bafb4f21224504bd1c8c78995df556e8337d7b374f047bfff2bd0b9e0082ec163591f7a0a035260b8a2db2932 |
24 |
|
25 |
diff --git a/x11-libs/gtk+/files/settings.ini b/x11-libs/gtk+/files/settings.ini |
26 |
new file mode 100644 |
27 |
index 0000000..a65c0a8 |
28 |
--- /dev/null |
29 |
+++ b/x11-libs/gtk+/files/settings.ini |
30 |
@@ -0,0 +1,4 @@ |
31 |
+[Settings] |
32 |
+gtk-theme-name = Adwaita |
33 |
+gtk-icon-theme-name = gnome |
34 |
+gtk-cursor-theme-name = Adwaita |
35 |
|
36 |
diff --git a/x11-libs/gtk+/gtk+-3.12.2.ebuild b/x11-libs/gtk+/gtk+-3.12.2.ebuild |
37 |
new file mode 100644 |
38 |
index 0000000..210357d |
39 |
--- /dev/null |
40 |
+++ b/x11-libs/gtk+/gtk+-3.12.2.ebuild |
41 |
@@ -0,0 +1,221 @@ |
42 |
+# Copyright 1999-2014 Gentoo Foundation |
43 |
+# Distributed under the terms of the GNU General Public License v2 |
44 |
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/gtk+-3.12.2.ebuild,v 1.6 2014/08/21 10:46:39 ago Exp $ |
45 |
+ |
46 |
+EAPI="5" |
47 |
+GCONF_DEBUG="no" |
48 |
+GNOME2_LA_PUNT="yes" |
49 |
+ |
50 |
+inherit flag-o-matic gnome2 multilib virtualx |
51 |
+ |
52 |
+DESCRIPTION="Gimp ToolKit +" |
53 |
+HOMEPAGE="http://www.gtk.org/" |
54 |
+ |
55 |
+LICENSE="LGPL-2+" |
56 |
+SLOT="3" |
57 |
+# NOTE: This gtk+ has multi-gdk-backend support, see: |
58 |
+# * http://blogs.gnome.org/kris/2010/12/29/gdk-3-0-on-mac-os-x/ |
59 |
+# * http://mail.gnome.org/archives/gtk-devel-list/2010-November/msg00099.html |
60 |
+# I tried this and got it all compiling, but the end result is unusable as it |
61 |
+# horribly mixes up the backends -- grobian |
62 |
+IUSE="aqua cloudprint colord cups debug examples +introspection test vim-syntax wayland X xinerama" |
63 |
+REQUIRED_USE=" |
64 |
+ || ( aqua wayland X ) |
65 |
+ xinerama? ( X ) |
66 |
+" |
67 |
+ |
68 |
+KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
69 |
+ |
70 |
+# FIXME: introspection data is built against system installation of gtk+:3 |
71 |
+# NOTE: cairo[svg] dep is due to bug 291283 (not patched to avoid eautoreconf) |
72 |
+# Use gtk+:2 for gtk-update-icon-cache |
73 |
+COMMON_DEPEND=" |
74 |
+ >=dev-libs/atk-2.7.5[introspection?] |
75 |
+ >=dev-libs/glib-2.39.5:2 |
76 |
+ media-libs/fontconfig |
77 |
+ >=x11-libs/cairo-1.12[aqua?,glib,svg,X?] |
78 |
+ >=x11-libs/gdk-pixbuf-2.27.1:2[introspection?,X?] |
79 |
+ >=x11-libs/gtk+-2.24:2 |
80 |
+ >=x11-libs/pango-1.32.4[introspection?] |
81 |
+ x11-misc/shared-mime-info |
82 |
+ |
83 |
+ cloudprint? ( |
84 |
+ >=net-libs/rest-0.7 |
85 |
+ >=dev-libs/json-glib-1.0 ) |
86 |
+ colord? ( >=x11-misc/colord-0.1.9:0= ) |
87 |
+ cups? ( >=net-print/cups-1.2 ) |
88 |
+ introspection? ( >=dev-libs/gobject-introspection-1.39 ) |
89 |
+ wayland? ( |
90 |
+ >=dev-libs/wayland-1.3.90 |
91 |
+ || ( media-libs/mesa[wayland] media-libs/raspberrypi-userland[wayland] ) |
92 |
+ >=x11-libs/libxkbcommon-0.2 |
93 |
+ ) |
94 |
+ X? ( |
95 |
+ >=app-accessibility/at-spi2-atk-2.5.3 |
96 |
+ x11-libs/libXrender |
97 |
+ x11-libs/libX11 |
98 |
+ >=x11-libs/libXi-1.3 |
99 |
+ x11-libs/libXext |
100 |
+ >=x11-libs/libXrandr-1.3 |
101 |
+ x11-libs/libXcursor |
102 |
+ x11-libs/libXfixes |
103 |
+ x11-libs/libXcomposite |
104 |
+ x11-libs/libXdamage |
105 |
+ xinerama? ( x11-libs/libXinerama ) |
106 |
+ ) |
107 |
+" |
108 |
+DEPEND="${COMMON_DEPEND} |
109 |
+ app-text/docbook-xsl-stylesheets |
110 |
+ app-text/docbook-xml-dtd:4.1.2 |
111 |
+ dev-libs/libxslt |
112 |
+ dev-util/gdbus-codegen |
113 |
+ >=dev-util/gtk-doc-am-1.20 |
114 |
+ sys-devel/gettext |
115 |
+ virtual/pkgconfig |
116 |
+ X? ( |
117 |
+ x11-proto/xextproto |
118 |
+ x11-proto/xproto |
119 |
+ x11-proto/inputproto |
120 |
+ x11-proto/damageproto |
121 |
+ xinerama? ( x11-proto/xineramaproto ) |
122 |
+ ) |
123 |
+ test? ( |
124 |
+ media-fonts/font-misc-misc |
125 |
+ media-fonts/font-cursor-misc ) |
126 |
+" |
127 |
+# gtk+-3.2.2 breaks Alt key handling in <=x11-libs/vte-0.30.1:2.90 |
128 |
+# gtk+-3.3.18 breaks scrolling in <=x11-libs/vte-0.31.0:2.90 |
129 |
+# >=xorg-server-1.11.4 needed for |
130 |
+# http://mail.gnome.org/archives/desktop-devel-list/2012-March/msg00024.html |
131 |
+RDEPEND="${COMMON_DEPEND} |
132 |
+ !<gnome-base/gail-1000 |
133 |
+ !<x11-libs/vte-0.31.0:2.90 |
134 |
+ X? ( !<x11-base/xorg-server-1.11.4 ) |
135 |
+" |
136 |
+PDEPEND="vim-syntax? ( app-vim/gtk-syntax )" |
137 |
+ |
138 |
+strip_builddir() { |
139 |
+ local rule=$1 |
140 |
+ shift |
141 |
+ local directory=$1 |
142 |
+ shift |
143 |
+ sed -e "s/^\(${rule} =.*\)${directory}\(.*\)$/\1\2/" -i $@ \ |
144 |
+ || die "Could not strip director ${directory} from build." |
145 |
+} |
146 |
+ |
147 |
+src_prepare() { |
148 |
+ # -O3 and company cause random crashes in applications. Bug #133469 |
149 |
+ replace-flags -O3 -O2 |
150 |
+ strip-flags |
151 |
+ |
152 |
+ if ! use test ; then |
153 |
+ # don't waste time building tests |
154 |
+ strip_builddir SRC_SUBDIRS testsuite Makefile.am |
155 |
+ strip_builddir SRC_SUBDIRS testsuite Makefile.in |
156 |
+ strip_builddir SRC_SUBDIRS tests Makefile.am |
157 |
+ strip_builddir SRC_SUBDIRS tests Makefile.in |
158 |
+ fi |
159 |
+ |
160 |
+ if ! use examples; then |
161 |
+ # don't waste time building demos |
162 |
+ strip_builddir SRC_SUBDIRS demos Makefile.am |
163 |
+ strip_builddir SRC_SUBDIRS demos Makefile.in |
164 |
+ strip_builddir SRC_SUBDIRS examples Makefile.am |
165 |
+ strip_builddir SRC_SUBDIRS examples Makefile.in |
166 |
+ fi |
167 |
+ |
168 |
+ gnome2_src_prepare |
169 |
+} |
170 |
+ |
171 |
+src_configure() { |
172 |
+ # Passing --disable-debug is not recommended for production use |
173 |
+ # need libdir here to avoid a double slash in a path that libtool doesn't |
174 |
+ # grok so well during install (// between $EPREFIX and usr ...) |
175 |
+ gnome2_src_configure \ |
176 |
+ $(use_enable aqua quartz-backend) \ |
177 |
+ $(use_enable cloudprint) \ |
178 |
+ $(use_enable colord) \ |
179 |
+ $(use_enable cups cups auto) \ |
180 |
+ $(usex debug --enable-debug=yes "") \ |
181 |
+ $(use_enable introspection) \ |
182 |
+ $(use_enable wayland wayland-backend) \ |
183 |
+ $(use_enable X x11-backend) \ |
184 |
+ $(use_enable X xcomposite) \ |
185 |
+ $(use_enable X xdamage) \ |
186 |
+ $(use_enable X xfixes) \ |
187 |
+ $(use_enable X xkb) \ |
188 |
+ $(use_enable X xrandr) \ |
189 |
+ $(use_enable xinerama) \ |
190 |
+ --disable-papi \ |
191 |
+ --enable-man \ |
192 |
+ --enable-gtk2-dependency \ |
193 |
+ --with-xml-catalog="${EPREFIX}"/etc/xml/catalog \ |
194 |
+ --libdir="${EPREFIX}"/usr/$(get_libdir) |
195 |
+} |
196 |
+ |
197 |
+src_test() { |
198 |
+ # Tests require a new gnome-themes-standard, but adding it to DEPEND |
199 |
+ # would result in circular dependencies. |
200 |
+ # https://bugzilla.gnome.org/show_bug.cgi?id=669562 |
201 |
+ if ! has_version '>=x11-themes/gnome-themes-standard-3.6[gtk]'; then |
202 |
+ ewarn "Tests will be skipped because >=gnome-themes-standard-3.6[gtk]" |
203 |
+ ewarn "is not installed. Please re-run tests after installing the" |
204 |
+ ewarn "required version of gnome-themes-standard." |
205 |
+ return 0 |
206 |
+ fi |
207 |
+ |
208 |
+ # FIXME: this should be handled at eclass level |
209 |
+ "${EROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/gtk" || die |
210 |
+ |
211 |
+ unset DBUS_SESSION_BUS_ADDRESS |
212 |
+ GSETTINGS_SCHEMA_DIR="${S}/gtk" Xemake check |
213 |
+} |
214 |
+ |
215 |
+src_install() { |
216 |
+ gnome2_src_install |
217 |
+ |
218 |
+ insinto /etc/gtk-3.0 |
219 |
+ doins "${FILESDIR}"/settings.ini |
220 |
+ |
221 |
+ dodoc AUTHORS ChangeLog* HACKING NEWS* README* |
222 |
+ |
223 |
+ # add -framework Carbon to the .pc files |
224 |
+ if use aqua ; then |
225 |
+ for i in gtk+-3.0.pc gtk+-quartz-3.0.pc gtk+-unix-print-3.0.pc; do |
226 |
+ sed -e "s:Libs\: :Libs\: -framework Carbon :" \ |
227 |
+ -i "${ED}"usr/$(get_libdir)/pkgconfig/$i || die "sed failed" |
228 |
+ done |
229 |
+ fi |
230 |
+} |
231 |
+ |
232 |
+pkg_preinst() { |
233 |
+ gnome2_pkg_preinst |
234 |
+ |
235 |
+ # Make sure loaders.cache belongs to gdk-pixbuf alone |
236 |
+ local cache="usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache" |
237 |
+ |
238 |
+ if [[ -e ${EROOT}${cache} ]]; then |
239 |
+ cp "${EROOT}"${cache} "${ED}"/${cache} || die |
240 |
+ else |
241 |
+ touch "${ED}"/${cache} || die |
242 |
+ fi |
243 |
+} |
244 |
+ |
245 |
+pkg_postinst() { |
246 |
+ gnome2_pkg_postinst |
247 |
+ gnome2_query_immodules_gtk3 |
248 |
+ |
249 |
+ if ! has_version "app-text/evince"; then |
250 |
+ elog "Please install app-text/evince for print preview functionality." |
251 |
+ elog "Alternatively, check \"gtk-print-preview-command\" documentation and" |
252 |
+ elog "add it to your settings.ini file." |
253 |
+ fi |
254 |
+} |
255 |
+ |
256 |
+pkg_postrm() { |
257 |
+ gnome2_pkg_postrm |
258 |
+ |
259 |
+ if [[ -z ${REPLACED_BY_VERSIONS} ]]; then |
260 |
+ rm -f "${EROOT}"usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache |
261 |
+ fi |
262 |
+} |
263 |
|
264 |
diff --git a/x11-libs/gtk+/metadata.xml b/x11-libs/gtk+/metadata.xml |
265 |
new file mode 100644 |
266 |
index 0000000..f29cdbe |
267 |
--- /dev/null |
268 |
+++ b/x11-libs/gtk+/metadata.xml |
269 |
@@ -0,0 +1,21 @@ |
270 |
+<?xml version="1.0" encoding="UTF-8"?> |
271 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
272 |
+<pkgmetadata> |
273 |
+ <herd>gnome</herd> |
274 |
+ <longdescription> |
275 |
+ GTK+ is a multi-platform toolkit for creating graphical user |
276 |
+ interfaces. Offering a complete set of widgets, GTK+ is suitable |
277 |
+ for projects ranging from small one-off projects to complete |
278 |
+ application suites. |
279 |
+ </longdescription> |
280 |
+ <use> |
281 |
+ <flag name="cloudprint">Enable printing via Google Cloud Print.</flag> |
282 |
+ <flag name="colord">Use <pkg>x11-misc/colord</pkg> for color management |
283 |
+ in printing</flag> |
284 |
+ <flag name="packagekit">Enable support for the distro-neutral package |
285 |
+ manager GUI <pkg>app-admin/packagekit</pkg> in application chooser</flag> |
286 |
+ </use> |
287 |
+ <upstream> |
288 |
+ <remote-id type="cpe">cpe:/a:gtk:gtk%2B</remote-id> |
289 |
+ </upstream> |
290 |
+</pkgmetadata> |