summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2013-05-13 19:07:47 +0000
committerPacho Ramos <pacho@gentoo.org>2013-05-13 19:07:47 +0000
commit2681fa5ab88d389142990fbf63204bb23bd4b107 (patch)
tree1294ad3e2bedbea4fc1f723e9a2d675bc920ce7f /x11-libs
parentObsolete. (diff)
downloadhistorical-2681fa5ab88d389142990fbf63204bb23bd4b107.tar.gz
historical-2681fa5ab88d389142990fbf63204bb23bd4b107.tar.bz2
historical-2681fa5ab88d389142990fbf63204bb23bd4b107.zip
Version bump
Package-Manager: portage-2.1.11.63/cvs/Linux x86_64 Manifest-Sign-Key: 0xA188FBD4
Diffstat (limited to 'x11-libs')
-rw-r--r--x11-libs/gtk+/ChangeLog7
-rw-r--r--x11-libs/gtk+/Manifest22
-rw-r--r--x11-libs/gtk+/gtk+-2.24.18.ebuild252
3 files changed, 265 insertions, 16 deletions
diff --git a/x11-libs/gtk+/ChangeLog b/x11-libs/gtk+/ChangeLog
index 4e903254d2ae..a948517e30cd 100644
--- a/x11-libs/gtk+/ChangeLog
+++ b/x11-libs/gtk+/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for x11-libs/gtk+
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v 1.662 2013/05/01 11:13:39 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v 1.663 2013/05/13 19:07:37 pacho Exp $
+
+*gtk+-2.24.18 (13 May 2013)
+
+ 13 May 2013; Pacho Ramos <pacho@gentoo.org> +gtk+-2.24.18.ebuild:
+ Version bump
01 May 2013; Agostino Sarubbo <ago@gentoo.org> gtk+-2.24.17.ebuild:
Stable for sh, wrt bug #466510
diff --git a/x11-libs/gtk+/Manifest b/x11-libs/gtk+/Manifest
index f063a1853bd0..9d73cd048a6e 100644
--- a/x11-libs/gtk+/Manifest
+++ b/x11-libs/gtk+/Manifest
@@ -1,5 +1,5 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA512
+Hash: SHA256
AUX gtk+-1.2-locale_fix.patch 419 SHA256 2e3cf84902d2f318dcbf4f9ad976573295d8d984c7a860291f37f768fc7966cb SHA512 7350d2b60e4d66219ec57ce56f9e2cd3c9c2b5c399d8e35c49243a0383b3455ba4225257bcd1303ad5b4ef98ea6b6ff401afde43b1b3841eeac2527443f7cd33 WHIRLPOOL d9be6ee6014f4a62b6ef962be5fa610084148e479d916838390dce8f2acff525b1ecb6d596d9af4058177eb21753fa7bcadd7fdebc95fe905cd3cf3829d7db1a
AUX gtk+-1.2.10-as-needed.patch 19865 SHA256 0864194a1e2be5f1b3df91d7dceb50bbe038fbb29f24901891c22829d55d4da7 SHA512 e69ab1a967218889dda64e8a87a390140ab70585b0ad031c3d6cbd5431857c0bf9c76300bb0f9ca8dfd703c0297c618d806795df1f18a5ab23fe3f06fb11c5a2 WHIRLPOOL 9281fcda1a9ab7e1542eb466573887ca258aec440d83d64901f9122ab41ab0c91e5bcbedce8abb2c9952f6be2e5459e4a84bf3f0374f5305579c5bbd20dfc0e9
@@ -24,6 +24,7 @@ DIST gtk+-1.2.10-r8-gentoo.diff.bz2 81223 SHA256 517bdadbaa0e13285b2d72a667b3112
DIST gtk+-1.2.10.tar.gz 2868322 SHA256 3fb843ea671c89b909fd145fa09fd2276af3312e58cbab29ed1c93b462108c34 SHA512 6a05062520954287b0e24a95169d18c216145ee79d1fa7f54222db32c8e39e011e3dc49886d3bc4de1cc1ebd71f5744e41891cde8d5c2759f637e71c390a235f WHIRLPOOL 906a78c2e2664b1cbd70fb9e64ce6ca1155b2a59c169eab986f5b4b90e937f380a5d35e2e28eb56913b0fbdfb53abeca5ef6823f92a3ab3906cd4e9f7c595b15
DIST gtk+-2.24.16.tar.xz 13435020 SHA256 93cd69cc2cecf9a3aa31a50caf4a24752a6928a48c527ae967b109df6f9302d3 SHA512 0b3b7be3eea1372b9fe1a9a4ddaaabaf92ed1437d3c3c281f936b847cd9cb5a1e97f4b8496009faec00c182719a16767b9061efffbd03c0770b35c099f43cccf WHIRLPOOL 17057f2b4d5b8f071014adb7e0114fef1406590216e09bf745e205baa1bcd4104559a452b422870472ce3f5b5700dda894ecc2e7914e2fa7ae4d4f86235cf63a
DIST gtk+-2.24.17.tar.xz 13288028 SHA256 e947b2b460156d98e8e38930b82458e1d613a71eb26e927f966f7081a640f415 SHA512 7a83555b4b6eb534bbdb77eae85164e182d68f786a72dcdbf41e221a25af0981263cc6637427cdf8984f82064927fb38d370d3f8621b7b056b3b5dbd92bcaf79 WHIRLPOOL c4693da71887d5eaaf17bcc60a0e65c60a745eeed5d02534019cae3f9c1baaaae919fdbfa2076999f795aaa2c7be8d1403f2a45a3fc9993eff5a456b0ac0311d
+DIST gtk+-2.24.18.tar.xz 13344536 SHA256 6c963101272ff53bb5b01d21bfb86cebba5f0a68f31c5e10523c63f07e762385 SHA512 5250ae00c8d5fcefded54c8476e45f6bcc69d1207457ed53a23cacf3986cbbbcd115c2b5b823c1f90f1e21de4eafb40c7081a7175943ce2adda593bf2759d0da WHIRLPOOL b899c19756ccd8f558ea4da43cf97ddf286c8315836bc6b7457c8a244d9d856d3c5ab62ec1972388ed4f774a1b3c0cdc8cdcba0665d293fc50e1006df1a791ea
DIST gtk+-3.2.4.tar.xz 12261004 SHA256 f981bf514858c00d7084bd6f6c34b3c60b8aebdb959e7aca6faa59ed67c136bd SHA512 89eb2157262a448cf32a5c11cc8ab5a6b916c04119d16fb6f33a44e616e0236427921a0ee221df175c21f395a73958f02516f5aa6167ca2cc3f5b4550e8d3e3a WHIRLPOOL f9c67a34d5a3bf59ebd623fe16e81a471a4af90f698a50848d163ff1d6a6c0989a3d061951793a286bec00a6008db09bea70d513bcd47aab78f7387af62dbf37
DIST gtk+-3.4.4.tar.xz 12854476 SHA256 f154e460075034da4c0ce89c320025dcd459da2a1fdf32d92a09522eaca242c7 SHA512 1a16f54a511f85a22f74a8ea82d218efa14ea5a58fc94fca805b0e321bdcea48a5f0a018a6d996c954ee80a51a2a16b68bdb2e3f3ab57c2362f3241c6cfa9a56 WHIRLPOOL eb1d117544aafec4936920a668b684959e89383b5b014512b82be0e99b7e48e3bdf81ceff4202b64179df4aa77453390d85a433d6e913cce8740a6b31701b15a
DIST gtk+-3.6.2.tar.xz 13288392 SHA256 aaccf2e1576338acf37816290578e8f19888935f381665b3847076be25fe513c SHA512 3b67c75e1de29679f2d3ffb095d7999a89967c77673b9daa574f63c8553fab9075627c892f92a4e5caf618c8736a5b476994eb13cedd4b29dadcab19b1a5d5aa WHIRLPOOL 24113134e6e73d62e2e1694fc4f9f0f6a8d2d0a976efed9c5638e0d7aa62431f37b0ca96c5cea90f1915a0161a155ed4fdcd8e39347a0cc6d1ca768f710f4c1f
@@ -34,6 +35,7 @@ DIST introspection.m4.bz2 1181 SHA256 69a2a57b12179159420825d1d44c74108014b0864c
EBUILD gtk+-1.2.10-r12.ebuild 2406 SHA256 03e22a0e23e19cc0ad87697527ac186aeb6904b7e007bb0c023196f80765b716 SHA512 fb4a7905b5d6390a9d12bd5b0dd8e1b19744a5620279da1ae8c6962c80db44b9707dc6cd4d3a80cb091b5f4cfeacfeee7f5ebe46d1ecd2a3f720d8ccb73d8be4 WHIRLPOOL f3414b479f126236bef1670a51b46a2c37553f1c37edc912ed121f807926fa2dc87bcc8af1fa079cd12eeb8bc3084a4348948565356621c6a1ec267f40da1235
EBUILD gtk+-2.24.16.ebuild 8295 SHA256 3ee00ba54882021d12aa9be3e65ac59cb58c270e121256c8852b511e193f5a1a SHA512 a98318201eb30caca991250def12a5742aaa9b3d3b17787b37bdfe0cfdbc589930795c7b3538faceb611c1efb15f35a11c8fadddac0d2feefd2310748663a8f5 WHIRLPOOL dccdd749b4dfef75b6a29a7acd7274c48ddbed7634b5702bbc6e543db9427f985f47ce79ae23c79a6e4b5b07f35498c2822ee7ddec337307e6d451cb4910a3f5
EBUILD gtk+-2.24.17.ebuild 8322 SHA256 ffecf60222a8ad35a7b5fa03ad362344b2cae15e9e2b06a35906f9203ae5ec07 SHA512 cdb3c7cd9742882ac43075b14323a84ff4c7518e870494e9488dbb0d919d99e0c924896d9da84c6fdd6c06488bc883449edfeb401282cb9f38d62af132c7c6e1 WHIRLPOOL a3f967355c1c0207261f0eea634cf71865cc9bf63a52b007efb55b45e10a2e5df4379c670bec34fa4f1ed79227d42525f469d84810d80d3a07acd163aeb2ce38
+EBUILD gtk+-2.24.18.ebuild 8113 SHA256 7d562607d22f6d9d61e539fe6d88e97adb7d6779fd05283b27fce75747bc326c SHA512 aea325af629447d5404dcfdac82f820b1085f08455c324e62dcb5cc168779cdc53472d74cfbd8b75e734a9fd0e93d854775ef5dd8836a605ac446538d0676b29 WHIRLPOOL 1a3aacc8fe33bf6d54343fe80e9a865596a6036128039b0f124fba25ea681277df9dfdb0374b39134e9e2da36b5d99edb1b3358a823123af341f3b2ec993649d
EBUILD gtk+-3.2.4-r1.ebuild 6922 SHA256 a5a138e1243cc1a25f6d6a29f9a1f3fcffabc939b4c12cb4c6fbfd46f1059299 SHA512 0a67fb5b8114ad8fedcc54dbc0d0ab9db1ec7252d7cc4f6bd092f770fa8c85de9bd743738d1da2824c18382e065dab95e27f1acd8b1347203777ee6a22ef65af WHIRLPOOL ffabadedaea7bbc5807ec2304c45d758156f9c40e3319a1c88eea4600221f3cbe35e27b1d4a1d05f0985117b715152c46da8bbb9b7f20cfef6c3fba726bf6178
EBUILD gtk+-3.4.4.ebuild 7093 SHA256 8b6b52b25cd14140fcd54ad1c9e6cefd46d3194c740d8fe16890fa02f1bfac85 SHA512 9698a2de174e1d122f30d8ed185e026b3f7be2992574341127027347f0ffd62890b21a2f9829c2aabad2b5bc823147f956515f87f501fd2bee45a32ed858544c WHIRLPOOL c918ffcdf90c0d966f4881c374490281c73d5d9ed06d11e32406ddb436624c42a23e6eba9cd1ac38115deac8246c5857e74f9b482f8797c16cd1d36a6c013b52
EBUILD gtk+-3.6.2.ebuild 6926 SHA256 221183e85b8a661422d4ffd41bea0167a89c9c40d8fbf3409984d9936c0b1a21 SHA512 c1a1c60dcf7826246d72ed1a57620cc8f0c28dc13f93bcdeee37c5d37c767802f311a8405ecc0883de678d6dcc3cd6fa89cc39799b1dd22fe8298ebbc9adea35 WHIRLPOOL bb324d8d6bc9635c71302013dfc30abd6f7cb286577ac64b334dcb53446e268d5b40ec434539b63fa9d41302d4b08577b3a30f3f60c641728d3b8b61960ec295
@@ -41,23 +43,13 @@ EBUILD gtk+-3.6.3-r1.ebuild 7102 SHA256 274ae2208522cf40060fd603dffd6fc426848f9a
EBUILD gtk+-3.6.3-r2.ebuild 7140 SHA256 98849d610bd1d0f6a768d592fb1aeb5e73091bdb4171badc44d2a4cb7a1a3cc5 SHA512 cff7b64f6ac55f625712076674f482069197361cd5e1235a0724142b983f926566488aa96e26bcfd57209f5d174daf286e0e4ac6a8e2c10f5fa9fd90ae8dbba4 WHIRLPOOL bfca4104ebdacee63c5224910a82550a915fd03744f4ef14b80eb18c438d4b613048b7b3cbc19e333f8f7e1fb79e3a1835151738f2ec58fcaff8c500f2784a24
EBUILD gtk+-3.8.0.ebuild 6772 SHA256 8b7c97ef728d988fa6f7f49f1461a292a9c57833beea742bc27650c1d008551b SHA512 9725a7ced82003fcbfa29aeeb3dcd83b38da64cdf505ce36a0ed1f59898aff55af9757ab3c7b0878a4c1f2b44b7f2c23083b878bcbb9702ba7c353f6290eec06 WHIRLPOOL b61a9a551c1a26e00441ce8d00b4d399c71722c0243bc1591ba785f0efec9c42fe9ee35226d18dbca68a82af655cef502641b747373a412ab39ba6cff2371592
EBUILD gtk+-3.8.1.ebuild 6741 SHA256 b8883558252297fdd206da787b1d6d13ae960f2b4db67c425959c19c2ea28ba5 SHA512 1fa386af050204a48312474252104aeac66335292a41ebbb390b13547c4ac3cf48d859ec0dc1b9e405e9ffe48bb9c45f767b01aa9af1d7db774000e31dfbfe6b WHIRLPOOL 2dc81c01ad63c9497dafa3c900574b64193d78b0fa2046f35e078d5903b8573bef31d2e991ef1f878f7f85ca891dc0ee02a78251b4bcebbf251e773bfa45ad6c
-MISC ChangeLog 5168 SHA256 9b2aaa7b5ef6080ed340615c3d382594d27a3026bdfa7f483e4a351dde35546a SHA512 e1995892167d5406e7f6a63b9a996c3242cb5926b5918cb5a3eb79b15eefce343a04cbeca2b5a4ece716aa7e9ac4b6a71f5ba367b6209ec0ea0ffc842784e377 WHIRLPOOL a2c46c21204ab1e453414b72d934b72ebf405f9f562bb2d98febcf6a80590a4ed0dc7c776a80feb0da12a1f1cab4b50268d6e613a8d3c85fea8c36fa3e289201
+MISC ChangeLog 5283 SHA256 4f3699e2e7b6510004a9c6755bf1556ba021eb93d759a7ebf82605391d99d8f6 SHA512 40daff062dea3710e06abad691251bc37fe6a97b6fd3feca4a93122301e7eaaa53c8134be7be5ddcf7173c3b74786c4c2b62363b6d6048c4a6d1ac47458d20b8 WHIRLPOOL 2631c805392015684d2116d87010ca4a425bf725b3136cbdab81276f45fadb5080dabb2cb218020002012c1a8eec2f72a4ff47155f071f223dcbff085e697d1b
MISC ChangeLog-2012 98793 SHA256 cace01db369f8f0e2902b3893738711adaf7f92ce43ad566b1a38d73b2a90633 SHA512 98499bb7fc111d86c5bc87b5ca415d0d3e73c3a1b3655a14e164e28e45e5f4141a8f0e1c259177141abf9861aecf47e48bddd4b3dfd5b902e5ab01cd9ab24a34 WHIRLPOOL 618327a12a938e54f1e3f86299d51f1721d8be69b12c8ea33fc0061df3020d83dd20025feb658a3ca26a5e05338102e0a37a62ecf8224e3e492bb4e3b571ceec
MISC metadata.xml 819 SHA256 209dfda45798143d24e44a476d11c0c1b6d714069cbdb45e1eda91384d316266 SHA512 2c67e6ef20846e825c2b9f90a4f1d8d69d20bcaeae0b27b4d318944653259e4f0afe4107ed457471f36cb832eefed007bde17f4aa59d8c97062fb641f4adc9d0 WHIRLPOOL cb99e984950e6144a68886606962b66004dc2b97e6930fe350ddb7a0a5bb0e2f4af671f9c9292be803629a05ce7fe4dc2a9ebef422951568e8c2f20aa53b378a
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iQIcBAEBCgAGBQJRgPhEAAoJELp701BxlEWf6E8P+gJbs8N2ZWij14bn/SYlYAyh
-GsDMNXv3S9eIqUAtnfna6oZ+j3XDN92W0SgrEl+blcC3jbHVzId/9tbaknT0Bey6
-ZNGNkhIvKpKJMugc0nF0qkET8w+o5VpqP+bMoyKiFujiP1MISqofbjwc0cOYHNMT
-CvsnqO+0S6/4CM+3emr3vXvp1t1MOg3dufTXbnryffNpdmHacdA2a2eaXNn4GbJ8
-24rMyQVnO2Dfk3JE+6ehaY+FUaOsrM3ixv6U1pfuJNfAK2PjCNJAmNLmXGWXhRZx
-1c1hIdY8OpoZhjIg5HFibPb73TES62D4DQkhC7eoyYeeUQQmgTZBYsWlyW9YpHc3
-xF43WrLebL88I3MPI5UIgcYJdE8pO5xUo+KJYIdSQ5dMcEuuKoLeDz16TT5eqrww
-cMuuBU7ywSRFKAtAfKDfEkizaH07P1OHxbXfirLV1z5xHJASEBWUrnw5Kve9qjxR
-nZsfa2jaxVuY3nfaorT/0+tgdtzE8ovgDdZcWVRB3TL0qZ3kYR4BNZ+m00l1tneZ
-Wb458eq8Sckv99yWENPm/1xDWslbM3bsA0TwCMnp7CT6ZOmLBCptn5Lv3vQ1KfEs
-Ba61EPSjeC1Nu6/a5LFvrcUPQbbwXlvteZdeqlzwvjSFi8Yk3rQV54TCtPyj+xFh
-Uz+I6nHW0yLVAKPgjyFB
-=o+4h
+iEYEAREIAAYFAlGROfoACgkQCaWpQKGI+9SFjwCdHU7PpLVWd4Bs5TwoD1OchHP/
+7xIAmwQ/ayPUJ8zhT5TtxR+nx7FUpllt
+=QaDB
-----END PGP SIGNATURE-----
diff --git a/x11-libs/gtk+/gtk+-2.24.18.ebuild b/x11-libs/gtk+/gtk+-2.24.18.ebuild
new file mode 100644
index 000000000000..834dc139f53c
--- /dev/null
+++ b/x11-libs/gtk+/gtk+-2.24.18.ebuild
@@ -0,0 +1,252 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/gtk+-2.24.18.ebuild,v 1.1 2013/05/13 19:07:37 pacho Exp $
+
+EAPI="5"
+inherit eutils flag-o-matic gnome2-utils gnome.org virtualx autotools readme.gentoo
+
+DESCRIPTION="Gimp ToolKit +"
+HOMEPAGE="http://www.gtk.org/"
+
+LICENSE="LGPL-2+"
+SLOT="2"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="aqua cups debug examples +introspection test vim-syntax xinerama"
+
+# NOTE: cairo[svg] dep is due to bug 291283 (not patched to avoid eautoreconf)
+COMMON_DEPEND="
+ !aqua? (
+ x11-libs/libXrender
+ x11-libs/libX11
+ x11-libs/libXi
+ x11-libs/libXt
+ x11-libs/libXext
+ >=x11-libs/libXrandr-1.3
+ x11-libs/libXcursor
+ x11-libs/libXfixes
+ x11-libs/libXcomposite
+ x11-libs/libXdamage
+ >=x11-libs/cairo-1.6:=[X,svg]
+ x11-libs/gdk-pixbuf:2[X,introspection?]
+ )
+ aqua? (
+ >=x11-libs/cairo-1.6:=[aqua,svg]
+ x11-libs/gdk-pixbuf:2[introspection?]
+ )
+ xinerama? ( x11-libs/libXinerama )
+ >=dev-libs/glib-2.30:2
+ >=x11-libs/pango-1.20[introspection?]
+ >=dev-libs/atk-1.29.2[introspection?]
+ media-libs/fontconfig
+ x11-misc/shared-mime-info
+ cups? ( net-print/cups:= )
+ introspection? ( >=dev-libs/gobject-introspection-0.9.3 )
+ !<gnome-base/gail-1000
+"
+DEPEND="${COMMON_DEPEND}
+ virtual/pkgconfig
+ !aqua? (
+ x11-proto/xextproto
+ x11-proto/xproto
+ x11-proto/inputproto
+ x11-proto/damageproto
+ )
+ xinerama? ( x11-proto/xineramaproto )
+ dev-libs/gobject-introspection-common
+ >=dev-util/gtk-doc-am-1.11
+ test? (
+ x11-themes/hicolor-icon-theme
+ media-fonts/font-misc-misc
+ media-fonts/font-cursor-misc )
+"
+# dev-libs/gobject-introspection-common needed for introspection.m4
+
+# gtk+-2.24.8 breaks Alt key handling in <=x11-libs/vte-0.28.2:0
+# Remove blocker after >=vte-0.28.2-r201:0 is stable
+RDEPEND="${COMMON_DEPEND}
+ !<x11-libs/vte-0.28.2-r201:0
+"
+PDEPEND="vim-syntax? ( app-vim/gtk-syntax )"
+
+DISABLE_AUTOFORMATTING="yes"
+DOC_CONTENTS="To make the gtk2 file chooser use 'current directory' mode by default,
+edit ~/.config/gtk-2.0/gtkfilechooser.ini to contain the following:
+[Filechooser Settings]
+StartupMode=cwd"
+
+strip_builddir() {
+ local rule=$1
+ shift
+ local directory=$1
+ shift
+ sed -e "s/^\(${rule} =.*\)${directory}\(.*\)$/\1\2/" -i $@ \
+ || die "Could not strip director ${directory} from build."
+}
+
+set_gtk2_confdir() {
+ # An arch specific config directory is used on multilib systems
+ GTK2_CONFDIR="/etc/gtk-2.0/${CHOST}"
+}
+
+src_prepare() {
+ gnome2_environment_reset
+
+ # use an arch-specific config directory so that 32bit and 64bit versions
+ # dont clash on multilib systems
+ epatch "${FILESDIR}/${PN}-2.21.3-multilib.patch"
+
+ # Don't break inclusion of gtkclist.h, upstream bug #536767
+ epatch "${FILESDIR}/${PN}-2.14.3-limit-gtksignal-includes.patch"
+
+ # fix building with gir #372953, upstream bug #642085
+ epatch "${FILESDIR}"/${PN}-2.24.7-darwin-quartz-introspection.patch
+
+ # marshalers code was pre-generated with glib-2.31, upstream bug #671763
+ rm -v gdk/gdkmarshalers.c gtk/gtkmarshal.c gtk/gtkmarshalers.c \
+ perf/marshalers.c || die
+
+ # Stop trying to build unmaintained docs, bug #349754
+ strip_builddir SUBDIRS tutorial docs/Makefile.am docs/Makefile.in
+ strip_builddir SUBDIRS faq docs/Makefile.am docs/Makefile.in
+
+ # -O3 and company cause random crashes in applications. Bug #133469
+ replace-flags -O3 -O2
+ strip-flags
+
+ use ppc64 && append-flags -mminimal-toc
+
+ if ! use test; then
+ # don't waste time building tests
+ strip_builddir SRC_SUBDIRS tests Makefile.{am,in}
+ strip_builddir SUBDIRS tests gdk/Makefile.{am,in} gtk/Makefile.{am,in}
+ else
+ # Non-working test in gentoo's env
+ sed 's:\(g_test_add_func ("/ui-tests/keys-events.*\):/*\1*/:g' \
+ -i gtk/tests/testing.c || die "sed 1 failed"
+
+ # Cannot work because glib is too clever to find real user's home
+ # gentoo bug #285687, upstream bug #639832
+ # XXX: /!\ Pay extra attention to second sed when bumping /!\
+ sed '/TEST_PROGS.*recentmanager/d' -i gtk/tests/Makefile.am \
+ || die "failed to disable recentmanager test (1)"
+ sed '/^TEST_PROGS =/,+3 s/recentmanager//' -i gtk/tests/Makefile.in \
+ || die "failed to disable recentmanager test (2)"
+ sed 's:\({ "GtkFileChooserButton".*},\):/*\1*/:g' -i gtk/tests/object.c \
+ || die "failed to disable recentmanager test (3)"
+
+ # Skip tests known to fail
+ # https://bugzilla.gnome.org/show_bug.cgi?id=646609
+ sed -e '/g_test_add_func.*test_text_access/s:^://:' \
+ -i "${S}/gtk/tests/testing.c" || die
+
+ # https://bugzilla.gnome.org/show_bug.cgi?id=617473
+ sed -i -e 's:pltcheck.sh:$(NULL):g' \
+ gtk/Makefile.am || die
+
+ # UI tests require immodules already installed; bug #413185
+ if ! has_version 'x11-libs/gtk+:2'; then
+ ewarn "Disabling UI tests because this is the first install of"
+ ewarn "gtk+:2 on this machine. Please re-run the tests after $P"
+ ewarn "has been installed."
+ sed '/g_test_add_func.*ui-tests/ d' \
+ -i gtk/tests/testing.c || die "sed 2 failed"
+ fi
+ fi
+
+ if ! use examples; then
+ # don't waste time building demos
+ strip_builddir SRC_SUBDIRS demos Makefile.am Makefile.in
+ fi
+
+ epatch_user
+
+ eautoreconf
+ # Use elibtoolize in place of eautoreconf when it will be dropped
+ #elibtoolize
+}
+
+src_configure() {
+ # Passing --disable-debug is not recommended for production use
+ econf \
+ $(usex aqua --with-gdktarget=quartz --with-gdktarget=x11) \
+ $(usex aqua "" --with-xinput) \
+ $(usex debug --enable-debug=yes "") \
+ $(use_enable cups cups auto) \
+ $(use_enable introspection) \
+ $(use_enable xinerama) \
+ --disable-papi
+}
+
+src_test() {
+ unset DBUS_SESSION_BUS_ADDRESS
+ Xemake check
+}
+
+src_install() {
+ default
+
+ set_gtk2_confdir
+ dodir ${GTK2_CONFDIR}
+ keepdir ${GTK2_CONFDIR}
+
+ # see bug #133241
+ echo 'gtk-fallback-icon-theme = "gnome"' > "${T}/gtkrc"
+ insinto /etc/gtk-2.0
+ doins "${T}"/gtkrc
+
+ dodoc AUTHORS ChangeLog* HACKING NEWS* README*
+
+ # add -framework Carbon to the .pc files
+ use aqua && for i in gtk+-2.0.pc gtk+-quartz-2.0.pc gtk+-unix-print-2.0.pc; do
+ sed -i -e "s:Libs\: :Libs\: -framework Carbon :" "${ED%/}"/usr/lib/pkgconfig/$i || die "sed failed"
+ done
+
+ # dev-util/gtk-builder-convert split off into a separate package, #402905
+ rm "${ED}"usr/bin/gtk-builder-convert
+
+ prune_libtool_files --modules
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ set_gtk2_confdir
+
+ # gtk.immodules should be in their CHOST directories respectively.
+ gtk-query-immodules-2.0 > "${EROOT%/}${GTK2_CONFDIR}/gtk.immodules" \
+ || ewarn "Failed to run gtk-query-immodules-2.0"
+
+ if [ -e "${EROOT%/}/etc/gtk-2.0/gtk.immodules" ]; then
+ elog "File /etc/gtk-2.0/gtk.immodules has been moved to \$CHOST"
+ elog "aware location. Removing deprecated file."
+ rm -f ${EROOT%/}/etc/gtk-2.0/gtk.immodules
+ fi
+
+ # pixbufs are now handled by x11-libs/gdk-pixbuf
+ if [ -e "${EROOT%/}${GTK2_CONFDIR}/gdk-pixbuf.loaders" ]; then
+ elog "File ${EROOT%/}${GTK2_CONFDIR}/gdk-pixbuf.loaders is now handled by x11-libs/gdk-pixbuf"
+ elog "Removing deprecated file."
+ rm -f ${EROOT%/}${GTK2_CONFDIR}/gdk-pixbuf.loaders
+ fi
+
+ # two checks needed since we dropped multilib conditional
+ if [ -e "${EROOT%/}/etc/gtk-2.0/gdk-pixbuf.loaders" ]; then
+ elog "File ${EROOT%/}/etc/gtk-2.0/gdk-pixbuf.loaders is now handled by x11-libs/gdk-pixbuf"
+ elog "Removing deprecated file."
+ rm -f ${EROOT%/}/etc/gtk-2.0/gdk-pixbuf.loaders
+ fi
+
+ if [ -e "${EROOT%/}"/usr/lib/gtk-2.0/2.[^1]* ]; then
+ elog "You need to rebuild ebuilds that installed into" "${EROOT%/}"/usr/lib/gtk-2.0/2.[^1]*
+ elog "to do that you can use qfile from portage-utils:"
+ elog "emerge -va1 \$(qfile -qC ${EPREFIX}/usr/lib/gtk-2.0/2.[^1]*)"
+ fi
+
+ if ! has_version "app-text/evince"; then
+ elog "Please install app-text/evince for print preview functionality."
+ elog "Alternatively, check \"gtk-print-preview-command\" documentation and"
+ elog "add it to your gtkrc."
+ fi
+
+ readme.gentoo_print_elog
+}