aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Piasek <dagger@gentoo.org>2009-01-09 16:17:04 +0000
committerRobert Piasek <dagger@gentoo.org>2009-01-09 16:17:04 +0000
commit6148701714b9d10fc51cf9eb503673f84b767bc0 (patch)
tree66518c473a10185bae8de12afa08601d144b158a /x11-libs
parentTesing svn access (diff)
downloadembedded-cross-6148701714b9d10fc51cf9eb503673f84b767bc0.tar.gz
embedded-cross-6148701714b9d10fc51cf9eb503673f84b767bc0.tar.bz2
embedded-cross-6148701714b9d10fc51cf9eb503673f84b767bc0.zip
Initial upload of openmoko-target
Diffstat (limited to 'x11-libs')
-rw-r--r--x11-libs/e_dbus/Manifest5
-rw-r--r--x11-libs/e_dbus/e_dbus-0.5.0.050.ebuild46
-rw-r--r--x11-libs/e_dbus/e_dbus-20081209.ebuild44
-rw-r--r--x11-libs/e_dbus/e_dbus-20090108.ebuild44
-rw-r--r--x11-libs/e_dbus/files/e_dbus-0.5.0.050-e_notify_send-Makefile.patch12
-rw-r--r--x11-libs/ecore/Manifest4
-rw-r--r--x11-libs/ecore/ecore-0.9.9.050.ebuild74
-rw-r--r--x11-libs/ecore/ecore-20081212.ebuild85
-rw-r--r--x11-libs/ecore/ecore-20090108.ebuild85
-rw-r--r--x11-libs/evas/Manifest2
-rw-r--r--x11-libs/evas/evas-20081212.ebuild117
-rw-r--r--x11-libs/evas/evas-20090108.ebuild117
-rw-r--r--x11-libs/gtk+/Manifest11
-rw-r--r--x11-libs/gtk+/files/gtk+-2.12.0-flash-workaround.patch12
-rw-r--r--x11-libs/gtk+/files/gtk+-2.14.3-limit-gtksignal-includes.patch17
-rw-r--r--x11-libs/gtk+/files/gtk+-2.8.0-multilib.patch63
-rw-r--r--x11-libs/gtk+/files/hardcoded_libtool.patch31
-rw-r--r--x11-libs/gtk+/files/no-demos.patch21
-rw-r--r--x11-libs/gtk+/files/no-freeze.patch34
-rw-r--r--x11-libs/gtk+/files/run-iconcache.patch38
-rw-r--r--x11-libs/gtk+/files/smallscreen_filechooser.patch235
-rw-r--r--x11-libs/gtk+/files/toggle-font.diff100
-rw-r--r--x11-libs/gtk+/gtk+-2.14.5.ebuild168
-rw-r--r--x11-libs/libX11/Manifest4
-rw-r--r--x11-libs/libX11/files/libX11-1.1.3-crosscompile-makekeys.patch67
-rw-r--r--x11-libs/libX11/files/libX11-1.1.3-xcb-locking.patch28
-rw-r--r--x11-libs/libX11/libX11-1.1.3-r1.ebuild46
-rw-r--r--x11-libs/libXt/Manifest4
-rw-r--r--x11-libs/libXt/files/crosscompile-configure.ac.patch29
-rw-r--r--x11-libs/libXt/files/crosscompile-makestrs.patch51
-rw-r--r--x11-libs/libXt/libXt-1.0.5.ebuild37
-rw-r--r--x11-libs/tslib/Manifest6
-rw-r--r--x11-libs/tslib/files/tslib-1.0-UnknownEventType0.patch13
-rw-r--r--x11-libs/tslib/files/tslib-1.0-correct-libversion.patch28
-rw-r--r--x11-libs/tslib/tslib-1.0.ebuild51
-rw-r--r--x11-libs/tslib/tslib-9999.ebuild35
36 files changed, 1731 insertions, 33 deletions
diff --git a/x11-libs/e_dbus/Manifest b/x11-libs/e_dbus/Manifest
new file mode 100644
index 0000000..35b1c9d
--- /dev/null
+++ b/x11-libs/e_dbus/Manifest
@@ -0,0 +1,5 @@
+AUX e_dbus-0.5.0.050-e_notify_send-Makefile.patch 566 RMD160 a16d9b3c30468ebe6ea5c389f95cfc5a62657ba1 SHA1 da6799956de2c0a477a0435c9ed551f0fe5b3f0c SHA256 b36435962b294cb3146b930bc7da46844f2641f437b62d133762c94e02a16c77
+DIST e_dbus-0.5.0.050.tar.bz2 240402 RMD160 a8709338da65aa9a8422a8f550f5e1a125f2fdca SHA1 4780cb3ce37cd3be6fe86af901db1215bda15c4b SHA256 7008c8f6e009b165108afc59319442eb98d6506409d9c4f11c31dac6cbcc06df
+EBUILD e_dbus-0.5.0.050.ebuild 1028 RMD160 afeb8a93d7986dc65e837d5ac78ca320204bf826 SHA1 b05a6cf9f0434ae7928a8139721c2e4a35e8df4a SHA256 0e96b2e78a9270813b0ae1949a4908af7b6c9afaa3ee22dc504c4a8f4ebe434a
+EBUILD e_dbus-20081209.ebuild 921 RMD160 f394ea92cae0a62386ed7cece49aec444aca2341 SHA1 a9176f5fac47d98d141fa52778a8271039f37b44 SHA256 41ea502e3c36d857622cf7e07dae39802048241d1250761ba8e013c632f218f5
+EBUILD e_dbus-20090108.ebuild 921 RMD160 66702c01ce27ef321a94f0857f0e09d05c61aa22 SHA1 5ab0fb167b0f7eef1194d5362ce723f00c8d0306 SHA256 ad94ea4e3905c0ae00e4b68f3007cd244554fcf936bca36d3b085c6cecd678a7
diff --git a/x11-libs/e_dbus/e_dbus-0.5.0.050.ebuild b/x11-libs/e_dbus/e_dbus-0.5.0.050.ebuild
new file mode 100644
index 0000000..376fbf0
--- /dev/null
+++ b/x11-libs/e_dbus/e_dbus-0.5.0.050.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+DESCRIPTION="The Enlightenment dbus binding library."
+HOMEPAGE="http://enlightenment.org"
+SRC_URI="http://download.enlightenment.org/snapshots/2008-09-25/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~arm ~x86 ~amd64"
+IUSE="hal"
+
+inherit autotools
+
+RDEPEND=""
+DEPEND=">=dev-util/pkgconfig-0.9.0"
+
+src_unpack() {
+ # Fetch and unpack the source files
+ unpack ${A}
+
+ cd "${S}"
+
+ # Fix missing LD flag to libedus in src/bin/Makefile.am
+ epatch "${FILESDIR}/${P}-e_notify_send-Makefile.patch"
+
+ # We have to renew the automake/autoconf scripts because we
+ # modified the Makefile.am above.
+ eautoreconf || die "autoreconf failed"
+}
+
+src_compile() {
+ local myconf
+
+ myconf="${myconf}
+ $(use_enable hal ehal)"
+
+ econf ${myconf} || die "Configuration failed"
+ emake || die "Make failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Installation failed"
+ dodoc AUTHORS NEWS README
+}
diff --git a/x11-libs/e_dbus/e_dbus-20081209.ebuild b/x11-libs/e_dbus/e_dbus-20081209.ebuild
new file mode 100644
index 0000000..d9f849d
--- /dev/null
+++ b/x11-libs/e_dbus/e_dbus-20081209.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+DESCRIPTION="The Enlightenment dbus binding library."
+HOMEPAGE="http://enlightenment.org"
+ESVN_REPO_URI="http://svn.enlightenment.org/svn/e/trunk/${PN}"
+ESVN_REVISION="r38061"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~arm ~x86 ~amd64"
+IUSE="hal"
+
+inherit autotools subversion
+
+RDEPEND=">=dev-libs/eina-20081211
+ >=sys-apps/dbus-1.2.1
+ >=x11-libs/ecore-20081212"
+DEPEND=">=dev-util/pkgconfig-0.9.0"
+
+src_unpack() {
+ # Fetch and unpack the source files
+ subversion_src_unpack
+
+ cd "${S}"
+
+ eautoreconf || die "autoreconf failed"
+}
+
+src_compile() {
+ local myconf
+
+ myconf="${myconf}
+ $(use_enable hal ehal)"
+
+ econf ${myconf} || die "Configuration failed"
+ emake || die "Make failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Installation failed"
+ dodoc AUTHORS NEWS README
+}
diff --git a/x11-libs/e_dbus/e_dbus-20090108.ebuild b/x11-libs/e_dbus/e_dbus-20090108.ebuild
new file mode 100644
index 0000000..6c006e3
--- /dev/null
+++ b/x11-libs/e_dbus/e_dbus-20090108.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+DESCRIPTION="The Enlightenment dbus binding library."
+HOMEPAGE="http://enlightenment.org"
+ESVN_REPO_URI="http://svn.enlightenment.org/svn/e/trunk/${PN}"
+ESVN_REVISION="r38500"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~arm ~x86 ~amd64"
+IUSE="hal"
+
+inherit autotools subversion
+
+RDEPEND=">=dev-libs/eina-20090108
+ >=sys-apps/dbus-1.2.1
+ >=x11-libs/ecore-20090108"
+DEPEND=">=dev-util/pkgconfig-0.9.0"
+
+src_unpack() {
+ # Fetch and unpack the source files
+ subversion_src_unpack
+
+ cd "${S}"
+
+ eautoreconf || die "autoreconf failed"
+}
+
+src_compile() {
+ local myconf
+
+ myconf="${myconf}
+ $(use_enable hal ehal)"
+
+ econf ${myconf} || die "Configuration failed"
+ emake || die "Make failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Installation failed"
+ dodoc AUTHORS NEWS README
+}
diff --git a/x11-libs/e_dbus/files/e_dbus-0.5.0.050-e_notify_send-Makefile.patch b/x11-libs/e_dbus/files/e_dbus-0.5.0.050-e_notify_send-Makefile.patch
new file mode 100644
index 0000000..2c17fdf
--- /dev/null
+++ b/x11-libs/e_dbus/files/e_dbus-0.5.0.050-e_notify_send-Makefile.patch
@@ -0,0 +1,12 @@
+Add missing reference to libedbus to make e-notify-send compile.
+
+--- src/bin/Makefile.am 2008-08-17 09:42:43.000000000 +0200
++++ src/bin/Makefile.am.new 2008-10-25 21:43:55.000000000 +0200
+@@ -90,6 +90,6 @@
+ notify-send.c
+
+ e_notify_send_CPPFLAGS = $(EDBUS_CPPFLAGS)
+-e_notify_send_LDADD = $(top_builddir)/src/lib/notification/libenotify.la $(LIBS)
++e_notify_send_LDADD = $(top_builddir)/src/lib/dbus/libedbus.la $(top_builddir)/src/lib/notification/libenotify.la $(LIBS)
+ e_notify_send_DEPENDENCIES = $(top_builddir)/src/lib/notification/libenotify.la
+ endif
diff --git a/x11-libs/ecore/Manifest b/x11-libs/ecore/Manifest
index ecdcd19..ec7dde2 100644
--- a/x11-libs/ecore/Manifest
+++ b/x11-libs/ecore/Manifest
@@ -1,2 +1,4 @@
DIST ecore-0.9.9.050.tar.bz2 10412842 RMD160 f6e25f96fad4e6ab81c119162384ba6780d83c4a SHA1 8d63e2e7c8eed83e3cee1360ef3e4520003d21dd SHA256 66380d748e4fc8d9763a1cadc5438ba95febbf3dc98105828b9795f3db687095
-EBUILD ecore-0.9.9.050.ebuild 2405 RMD160 cb4234d056ea6cd31f8c8e1b714ca08defde1a7e SHA1 8887413268987f800af7b8a0175e2bbad107c1b8 SHA256 1e8eaf8351dde4f9e9359c979c6e71eb5033bebad9b4d6431b104ccb5bf6131b
+EBUILD ecore-0.9.9.050.ebuild 2400 RMD160 c4c922e8360e32802a4634f757ce03f057850f98 SHA1 5087613b11584ca1ac1264f3b8611acf5a18706c SHA256 b6757bb0d6f68b723a524fd8627e7555f1c88ee657a23f1a8a9dfdddd35ea93d
+EBUILD ecore-20081212.ebuild 2593 RMD160 887879fa21533d0e22d1bc07e24aa276901b135a SHA1 1474379ffce5c9742b8ffe5f8352b82a73c12f0d SHA256 32a555f3f1c30846645906002223ad5109124a4fac5a156618c1864e56b836d9
+EBUILD ecore-20090108.ebuild 2593 RMD160 128b0d04e04010fd64d1c18f60c5feebe3834ece SHA1 0e0439ca31d305871ccc84b1d8afba0d53b74fa2 SHA256 7363192dd3e1f037bf44d18bac9eedd238d74ec4e7a5e85272d4d3bd1c59f6c9
diff --git a/x11-libs/ecore/ecore-0.9.9.050.ebuild b/x11-libs/ecore/ecore-0.9.9.050.ebuild
index 88116dc..bd02841 100644
--- a/x11-libs/ecore/ecore-0.9.9.050.ebuild
+++ b/x11-libs/ecore/ecore-0.9.9.050.ebuild
@@ -2,6 +2,8 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: $
+inherit toolchain-funcs autotools
+
DESCRIPTION="The Enlightenment ecore library."
HOMEPAGE="http://enlightenment.org"
SRC_URI="http://download.enlightenment.org/snapshots/2008-09-25/${P}.tar.bz2"
@@ -11,7 +13,8 @@ SLOT="0"
KEYWORDS="~arm ~x86 ~amd64"
IUSE="ssl curl X xcb opengl directfb fbcon sdl"
-RDEPEND="ssl? ( dev-libs/openssl )
+RDEPEND=">=x11-libs/evas-0.9.9
+ ssl? ( dev-libs/openssl )
curl? ( net-misc/curl )
X? ( x11-libs/libXrender )
xcb? ( x11-libs/libxcb )
@@ -24,37 +27,44 @@ DEPEND="${RDEPEND}
x11-proto/xproto )"
src_compile() {
- local myconf
-
- # See the complete list at the end of this file
- myconf="$(use_enable ssl openssl) \
- $(use_enable curl) \
- --enable-ecore-job \
- --enable-ecore-con \
- --enable-ecore-ipc \
- --enable-ecore-config \
- --enable-ecore-txt \
- --enable-ecore-evas \
- $(use_enable X simple-x11) \
- $(use_enable xcb ecore-x-xcb) \
- $(use_enable X ecore-x) \
- $(use_enable opengl ecore-evas-gl) \
- $(use_enable X evas-xrender) \
- $(use_enable X ecore-evas-x11-16) \
- $(use_enable directfb ecore-directfb) \
- $(use_enable directfb ecore-evas-dfb) \
- $(use_enable fbcon ecore-fb) \
- $(use_enable fbcon ecore-evas-fb) \
- $(use_enable sdl ecore-sdl) \
- $(use_enable sdl ecore-evas-sdl) \
- --enable-ecore-evas-buffer \
- --enable-ecore-file \
- --enable-inotify \
- --disable-poll \
- --enable-ecore-desktop"
-
- econf ${myconf} || die "Configuration failed"
- emake || die "Make failed"
+ local myconf
+
+ # See the complete list at the end of this file
+ myconf="$(use_enable ssl openssl) \
+ $(use_enable curl) \
+ --enable-ecore-job \
+ --enable-ecore-con \
+ --enable-ecore-ipc \
+ --enable-ecore-config \
+ --enable-ecore-txt \
+ --enable-ecore-evas \
+ $(use_enable X simple-x11) \
+ $(use_enable xcb ecore-x-xcb) \
+ $(use_enable X ecore-x) \
+ $(use_enable opengl ecore-evas-gl) \
+ $(use_enable X evas-xrender) \
+ $(use_enable X ecore-evas-x11-16) \
+ $(use_enable directfb ecore-directfb) \
+ $(use_enable directfb ecore-evas-dfb) \
+ $(use_enable fbcon ecore-fb) \
+ $(use_enable fbcon ecore-evas-fb) \
+ $(use_enable sdl ecore-sdl) \
+ $(use_enable sdl ecore-evas-sdl) \
+ --enable-ecore-evas-buffer \
+ --enable-ecore-file \
+ --enable-inotify \
+ --disable-poll \
+ --enable-ecore-desktop"
+
+
+ if tc-is-cross-compiler; then
+ sed -i -e 's%SDL_CFLAGS=`$SDL_CONFIG --cflags`%SDL_CFLAGS=`$SDL_CONFIG --prefix='${SYSROOT}' --cflags`%' configure.in
+ fi
+
+ eautoreconf || die "Autoreconf failed"
+
+ econf ${myconf} || die "Configuration failed"
+ emake || die "Make failed"
}
src_install() {
diff --git a/x11-libs/ecore/ecore-20081212.ebuild b/x11-libs/ecore/ecore-20081212.ebuild
new file mode 100644
index 0000000..7ee5544
--- /dev/null
+++ b/x11-libs/ecore/ecore-20081212.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+DESCRIPTION="The Enlightenment ecore library."
+HOMEPAGE="http://enlightenment.org"
+ESVN_REPO_URI="http://svn.enlightenment.org/svn/e/trunk/${PN}"
+ESVN_REVISION="r38119"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~arm ~x86 ~amd64"
+IUSE="ssl curl X xcb opengl directfb fbcon sdl"
+
+inherit toolchain-funcs autotools subversion
+
+RDEPEND=">=x11-libs/evas-0.9.9
+ ssl? ( dev-libs/openssl )
+ curl? ( net-misc/curl )
+ X? ( x11-libs/libXrender
+ x11-libs/libXtst )
+ xcb? ( x11-libs/libxcb )
+ opengl? ( virtual/opengl )
+ directfb? ( dev-libs/DirectFB )
+ sdl? ( media-libs/libsdl )"
+
+DEPEND="X? ( x11-proto/xextproto
+ x11-proto/xproto )"
+
+src_unpack() {
+ subversion_src_unpack
+
+ cd "${S}"
+
+ # Point to the sysroot SDL includes/libs on cross-compilation
+ if tc-is-cross-compiler; then
+ sed -i -e 's%SDL_CFLAGS=`$SDL_CONFIG --cflags`%SDL_CFLAGS=`$SDL_CONFIG --prefix='${SYSROOT}'/usr --cflags`%' configure.ac
+ fi
+
+ touch README
+ touch ABOUT-NLS
+
+ eautoreconf || die "Autoreconf failed"
+}
+
+src_compile() {
+ local myconf
+
+ # See the complete list at the end of this file
+ myconf="$(use_enable ssl openssl) \
+ $(use_enable curl) \
+ --enable-ecore-job \
+ --enable-ecore-con \
+ --enable-ecore-ipc \
+ --enable-ecore-config \
+ --enable-ecore-txt \
+ --enable-ecore-evas \
+ $(use_enable X simple-x11) \
+ $(use_enable xcb ecore-x-xcb) \
+ $(use_enable X ecore-x) \
+ $(use_enable opengl ecore-evas-gl) \
+ $(use_enable X evas-xrender) \
+ $(use_enable X ecore-evas-x11-16) \
+ $(use_enable directfb ecore-directfb) \
+ $(use_enable directfb ecore-evas-dfb) \
+ $(use_enable fbcon ecore-fb) \
+ $(use_enable fbcon ecore-evas-fb) \
+ $(use_enable sdl ecore-sdl) \
+ $(use_enable sdl ecore-evas-sdl) \
+ --enable-ecore-evas-buffer \
+ --enable-ecore-file \
+ --enable-inotify \
+ --disable-poll"
+
+ # We don't need the desktop part, it doesn't build and isn't used anymore!
+ myconf="${myconf} --disable-ecore-desktop"
+
+ econf ${myconf} || die "Configuration failed"
+ emake || die "Make failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Installation failed"
+ dodoc AUTHORS NEWS README
+}
diff --git a/x11-libs/ecore/ecore-20090108.ebuild b/x11-libs/ecore/ecore-20090108.ebuild
new file mode 100644
index 0000000..a2b2397
--- /dev/null
+++ b/x11-libs/ecore/ecore-20090108.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+DESCRIPTION="The Enlightenment ecore library."
+HOMEPAGE="http://enlightenment.org"
+ESVN_REPO_URI="http://svn.enlightenment.org/svn/e/trunk/${PN}"
+ESVN_REVISION="r38500"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~arm ~x86 ~amd64"
+IUSE="ssl curl X xcb opengl directfb fbcon sdl"
+
+inherit toolchain-funcs autotools subversion
+
+RDEPEND=">=x11-libs/evas-0.9.9
+ ssl? ( dev-libs/openssl )
+ curl? ( net-misc/curl )
+ X? ( x11-libs/libXrender
+ x11-libs/libXtst )
+ xcb? ( x11-libs/libxcb )
+ opengl? ( virtual/opengl )
+ directfb? ( dev-libs/DirectFB )
+ sdl? ( media-libs/libsdl )"
+
+DEPEND="X? ( x11-proto/xextproto
+ x11-proto/xproto )"
+
+src_unpack() {
+ subversion_src_unpack
+
+ cd "${S}"
+
+ # Point to the sysroot SDL includes/libs on cross-compilation
+ if tc-is-cross-compiler; then
+ sed -i -e 's%SDL_CFLAGS=`$SDL_CONFIG --cflags`%SDL_CFLAGS=`$SDL_CONFIG --prefix='${SYSROOT}'/usr --cflags`%' configure.ac
+ fi
+
+ touch README
+ touch ABOUT-NLS
+
+ eautoreconf || die "Autoreconf failed"
+}
+
+src_compile() {
+ local myconf
+
+ # See the complete list at the end of this file
+ myconf="$(use_enable ssl openssl) \
+ $(use_enable curl) \
+ --enable-ecore-job \
+ --enable-ecore-con \
+ --enable-ecore-ipc \
+ --enable-ecore-config \
+ --enable-ecore-txt \
+ --enable-ecore-evas \
+ $(use_enable X simple-x11) \
+ $(use_enable xcb ecore-x-xcb) \
+ $(use_enable X ecore-x) \
+ $(use_enable opengl ecore-evas-gl) \
+ $(use_enable X evas-xrender) \
+ $(use_enable X ecore-evas-x11-16) \
+ $(use_enable directfb ecore-directfb) \
+ $(use_enable directfb ecore-evas-dfb) \
+ $(use_enable fbcon ecore-fb) \
+ $(use_enable fbcon ecore-evas-fb) \
+ $(use_enable sdl ecore-sdl) \
+ $(use_enable sdl ecore-evas-sdl) \
+ --enable-ecore-evas-buffer \
+ --enable-ecore-file \
+ --enable-inotify \
+ --disable-poll"
+
+ # We don't need the desktop part, it doesn't build and isn't used anymore!
+ myconf="${myconf} --disable-ecore-desktop"
+
+ econf ${myconf} || die "Configuration failed"
+ emake || die "Make failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Installation failed"
+ dodoc AUTHORS NEWS README
+}
diff --git a/x11-libs/evas/Manifest b/x11-libs/evas/Manifest
index e8160ab..a229dbc 100644
--- a/x11-libs/evas/Manifest
+++ b/x11-libs/evas/Manifest
@@ -1,2 +1,4 @@
DIST evas-0.9.9.050.tar.bz2 12291950 RMD160 d358956e690c439b5d1bcdf5a05aae87a7ebfd98 SHA1 13cc5791023038b1ab12955fa52f1c93bf218859 SHA256 8c238493ec1649d100c624345aa16db055c7bc7c651a5bdf8efaa37de7e512d2
EBUILD evas-0.9.9.050.ebuild 3958 RMD160 af36154dc23cc84f329561f820dcbc2f7a29d63c SHA1 90a05bfca64d7bb6e93e186deed9c33707479601 SHA256 211f73c9621cc0239303ee8254987c855929f4330166ae8679bacbbea560f6da
+EBUILD evas-20081212.ebuild 4104 RMD160 5f8a93abe2abc070f83b749bbf55767438b99419 SHA1 1c7e244aa73e3be6b6233fb28fad5e233d376e34 SHA256 457fdce531465cb96aa45471da4094b20e91aadd22720f98370cfae83cd5e0ab
+EBUILD evas-20090108.ebuild 4104 RMD160 f3e7d13398c131d9b93170a5e92ffb2d93212731 SHA1 22cc6f7a5b67c049b721e4008f974fbeee4b6a9d SHA256 09eed609ef2914757a2f929520e3a11c939811f148cbdf0ec847a0c0396d6b6b
diff --git a/x11-libs/evas/evas-20081212.ebuild b/x11-libs/evas/evas-20081212.ebuild
new file mode 100644
index 0000000..f6c32da
--- /dev/null
+++ b/x11-libs/evas/evas-20081212.ebuild
@@ -0,0 +1,117 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+DESCRIPTION="The Enlightenment evas library."
+HOMEPAGE="http://enlightenment.org"
+ESVN_REPO_URI="http://svn.enlightenment.org/svn/e/trunk/${PN}"
+ESVN_REVISION="r38120"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~arm ~x86 ~amd64"
+IUSE="X xcb sdl fbcon opengl directfb threads mmx sse altivec cairo fontconfig
+ gif png jpeg eet edb tiff xpm svg"
+
+inherit autotools subversion
+
+RDEPEND="fontconfig? ( media-libs/fontconfig )
+ X? ( x11-libs/libXrender )
+ sdl? ( media-libs/libsdl )
+ opengl? ( virtual/opengl )
+ gif? ( media-libs/giflib )
+ png? ( media-libs/libpng )
+ jpeg? ( media-libs/jpeg )
+ eet? ( dev-libs/eet )
+ edb? ( dev-db/edb )
+ tiff? ( media-libs/tiff )
+ xpm? ( x11-libs/libXpm )
+ svg? ( gnome-base/librsvg )
+ cairo? ( x11-libs/cairo
+ x11-libs/libsvg-cairo )
+ directfb? ( dev-libs/DirectFB )"
+
+DEPEND=">=dev-util/pkgconfig-0.9.0
+ X? ( x11-proto/xextproto
+ x11-proto/xproto )"
+
+S="${WORKDIR}/${PN}"
+
+src_unpack() {
+ subversion_src_unpack
+
+ cd "${S}"
+
+ touch README
+ touch ABOUT-NLS
+
+ eautoreconf || die "eautoreconf failed"
+}
+
+src_compile() {
+ local myconf
+
+ myconf="${myconf}
+ $(use_enable fontconfig) \
+ $(use_enable X software-x11) \
+ $(use_enable X software-16-x11) \
+ $(use_enable xcb software-xcb) \
+ $(use_enable sdl software-sdl) \
+ $(use_enable sdl sdl-primitive) \
+ $(use_enable fbcon fb) \
+ $(use_enable opengl gl-x11) \
+ $(use_enable X xrender-x11) \
+ $(use_enable xcb xrender-xcb) \
+ $(use_enable gif image-loader-gif) \
+ $(use_enable png image-loader-png) \
+ $(use_enable jpeg image-loader-jpeg) \
+ $(use_enable eet image-loader-eet) \
+ $(use_enable eet font-loader-eet) \
+ $(use_enable edb image-loader-edb) \
+ $(use_enable tiff image-loader-tiff) \
+ $(use_enable xpm image-loader-xpm) \
+ $(use_enable svg image-loader-svg) \
+ $(use_enable threads pthreads) \
+ $(use_enable mmx cpu-mmx) \
+ $(use_enable sse cpu-sse) \
+ $(use_enable altivec cpu-altivec) \
+ $(use_enable cairo cairo-x11) \
+ $(use_enable directfb) \
+ --enable-buffer \
+ --disable-image-loader-pmaps \
+ --enable-cpu-c \
+ --enable-scale-sample \
+ --enable-scale-smooth \
+ --enable-convert-8-rgb-332 \
+ --enable-convert-8-rgb-666 \
+ --enable-convert-8-rgb-232 \
+ --enable-convert-8-rgb-222 \
+ --enable-convert-8-rgb-221 \
+ --enable-convert-8-rgb-121 \
+ --enable-convert-8-rgb-111 \
+ --enable-convert-16-rgb-565 \
+ --enable-convert-16-rgb-555 \
+ --enable-convert-16-rgb-444 \
+ --enable-convert-16-rgb-rot-0 \
+ --enable-convert-16-rgb-rot-270 \
+ --enable-convert-16-rgb-rot-90 \
+ --enable-convert-24-rgb-888 \
+ --enable-convert-24-bgr-888 \
+ --enable-convert-32-rgb-8888 \
+ --enable-convert-32-rgbx-8888 \
+ --enable-convert-32-bgr-8888 \
+ --enable-convert-32-bgrx-8888 \
+ --enable-convert-32-rgb-rot-0 \
+ --enable-convert-32-rgb-rot-270 \
+ --enable-convert-32-rgb-rot-90 \
+ --x-includes=${SYSROOT}/usr/X11R6/include \
+ --x-libraries=${SYSROOT}/usr/X11R6/lib"
+
+ econf ${myconf} || die "Configuration failed"
+ emake || die "Make failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Installation failed"
+ dodoc AUTHORS NEWS README
+}
diff --git a/x11-libs/evas/evas-20090108.ebuild b/x11-libs/evas/evas-20090108.ebuild
new file mode 100644
index 0000000..e58d794
--- /dev/null
+++ b/x11-libs/evas/evas-20090108.ebuild
@@ -0,0 +1,117 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+DESCRIPTION="The Enlightenment evas library."
+HOMEPAGE="http://enlightenment.org"
+ESVN_REPO_URI="http://svn.enlightenment.org/svn/e/trunk/${PN}"
+ESVN_REVISION="r38500"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~arm ~x86 ~amd64"
+IUSE="X xcb sdl fbcon opengl directfb threads mmx sse altivec cairo fontconfig
+ gif png jpeg eet edb tiff xpm svg"
+
+inherit autotools subversion
+
+RDEPEND="fontconfig? ( media-libs/fontconfig )
+ X? ( x11-libs/libXrender )
+ sdl? ( media-libs/libsdl )
+ opengl? ( virtual/opengl )
+ gif? ( media-libs/giflib )
+ png? ( media-libs/libpng )
+ jpeg? ( media-libs/jpeg )
+ eet? ( dev-libs/eet )
+ edb? ( dev-db/edb )
+ tiff? ( media-libs/tiff )
+ xpm? ( x11-libs/libXpm )
+ svg? ( gnome-base/librsvg )
+ cairo? ( x11-libs/cairo
+ x11-libs/libsvg-cairo )
+ directfb? ( dev-libs/DirectFB )"
+
+DEPEND=">=dev-util/pkgconfig-0.9.0
+ X? ( x11-proto/xextproto
+ x11-proto/xproto )"
+
+S="${WORKDIR}/${PN}"
+
+src_unpack() {
+ subversion_src_unpack
+
+ cd "${S}"
+
+ touch README
+ touch ABOUT-NLS
+
+ eautoreconf || die "eautoreconf failed"
+}
+
+src_compile() {
+ local myconf
+
+ myconf="${myconf}
+ $(use_enable fontconfig) \
+ $(use_enable X software-x11) \
+ $(use_enable X software-16-x11) \
+ $(use_enable xcb software-xcb) \
+ $(use_enable sdl software-sdl) \
+ $(use_enable sdl sdl-primitive) \
+ $(use_enable fbcon fb) \
+ $(use_enable opengl gl-x11) \
+ $(use_enable X xrender-x11) \
+ $(use_enable xcb xrender-xcb) \
+ $(use_enable gif image-loader-gif) \
+ $(use_enable png image-loader-png) \
+ $(use_enable jpeg image-loader-jpeg) \
+ $(use_enable eet image-loader-eet) \
+ $(use_enable eet font-loader-eet) \
+ $(use_enable edb image-loader-edb) \
+ $(use_enable tiff image-loader-tiff) \
+ $(use_enable xpm image-loader-xpm) \
+ $(use_enable svg image-loader-svg) \
+ $(use_enable threads pthreads) \
+ $(use_enable mmx cpu-mmx) \
+ $(use_enable sse cpu-sse) \
+ $(use_enable altivec cpu-altivec) \
+ $(use_enable cairo cairo-x11) \
+ $(use_enable directfb) \
+ --enable-buffer \
+ --disable-image-loader-pmaps \
+ --enable-cpu-c \
+ --enable-scale-sample \
+ --enable-scale-smooth \
+ --enable-convert-8-rgb-332 \
+ --enable-convert-8-rgb-666 \
+ --enable-convert-8-rgb-232 \
+ --enable-convert-8-rgb-222 \
+ --enable-convert-8-rgb-221 \
+ --enable-convert-8-rgb-121 \
+ --enable-convert-8-rgb-111 \
+ --enable-convert-16-rgb-565 \
+ --enable-convert-16-rgb-555 \
+ --enable-convert-16-rgb-444 \
+ --enable-convert-16-rgb-rot-0 \
+ --enable-convert-16-rgb-rot-270 \
+ --enable-convert-16-rgb-rot-90 \
+ --enable-convert-24-rgb-888 \
+ --enable-convert-24-bgr-888 \
+ --enable-convert-32-rgb-8888 \
+ --enable-convert-32-rgbx-8888 \
+ --enable-convert-32-bgr-8888 \
+ --enable-convert-32-bgrx-8888 \
+ --enable-convert-32-rgb-rot-0 \
+ --enable-convert-32-rgb-rot-270 \
+ --enable-convert-32-rgb-rot-90 \
+ --x-includes=${SYSROOT}/usr/X11R6/include \
+ --x-libraries=${SYSROOT}/usr/X11R6/lib"
+
+ econf ${myconf} || die "Configuration failed"
+ emake || die "Make failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Installation failed"
+ dodoc AUTHORS NEWS README
+}
diff --git a/x11-libs/gtk+/Manifest b/x11-libs/gtk+/Manifest
new file mode 100644
index 0000000..57822ba
--- /dev/null
+++ b/x11-libs/gtk+/Manifest
@@ -0,0 +1,11 @@
+AUX gtk+-2.12.0-flash-workaround.patch 532 RMD160 24d6d96f11c1fd8c8d6fe3702de2dc4d824d7ee5 SHA1 7db980e782a5b04d27bffb55e3dc0190ad22e118 SHA256 da2ce04a400e45cc5e5cf78547699006e70e91e6620b4232a8fd7eea4de90007
+AUX gtk+-2.14.3-limit-gtksignal-includes.patch 513 RMD160 ad967a5fb6b9fe2d96119d478429f10032bad8a5 SHA1 5c0df3e543303dfe456479359fea2cbd0d4b723e SHA256 20e7536c29e2675d18fd3aff933621a4fcab9b5615ff96593e9f36ab4febb734
+AUX gtk+-2.8.0-multilib.patch 2456 RMD160 ba94fb0b16f9002dec8e92700ff3f7931f600548 SHA1 e65e843c6f1beecee7a0e1f7ec3292596c2a65a4 SHA256 595bddaa3e50a54f47dbcf30381e11bce0baa1ccd683ac1ba30ca0221b78a4fd
+AUX hardcoded_libtool.patch 1714 RMD160 1625923c6fa97a55da3089a9fe69bbb1713b03cf SHA1 0decdb339992810deb96cae4afc9a1ccc279ab61 SHA256 295bca499ef1a15938175e0136695bce0aaeea839165c926bf6cf82f58c3299c
+AUX no-demos.patch 789 RMD160 37829926bf2c146227b93dfce9ebbb2006bdf5b5 SHA1 8dd03430ea805e9c41f5a659b40a763a1e02d15d SHA256 8e78431862a4a2ddcae81c17e290f04749c27a18267b15a328422a476f604171
+AUX no-freeze.patch 1209 RMD160 6d2cdf1f7b04624985df66ea13696c4532159b45 SHA1 7219663128ac0a08474838caf2e848dceac5d1d0 SHA256 1bb898be00fed1c41f7f4f133af5576d5f5f7f8764ce8f96eb74644123ca7f00
+AUX run-iconcache.patch 1699 RMD160 020c8fb5fe2aef6d4b59a5e6b5c046b5a4558778 SHA1 270601b77ea15cd5a1849afd1c2dab31342561c3 SHA256 9dc9d0beb1335fd467b9f6ccef037560eee6cb984036e062f69b995cef26aca5
+AUX smallscreen_filechooser.patch 8289 RMD160 5dbb285695577219f75345e59564a98b2aa9cdd6 SHA1 fe7b7c37f8c6239ef398462d0fa55df875835f9c SHA256 a36b1d3d2aa2c9db41918f8f514949611c194ed4f0ae6924af651473c1d3917c
+AUX toggle-font.diff 3275 RMD160 4d21cd5e4531927c8c5d7f6dfb1d86b66e757724 SHA1 892becbc52bd83e40c849d6d81f6f25f5d1d36ed SHA256 ef94de06ca252542e1f90c2f80b3c8394413895df2a939388d2428566b62e85a
+DIST gtk+-2.14.5.tar.bz2 17426317 RMD160 08a6ad8a609a6214f9a1c3c52c26eabf97e320ec SHA1 6b7a988807627d5f4e70a2fc5b56c7832fe3e1b4 SHA256 05d01dfce51cd96cd7ce44c3a77c200a70f27551915d372cfc2de32ca9550c51
+EBUILD gtk+-2.14.5.ebuild 4848 RMD160 8c73c8a924c32bb705839d7f6102844c2ab153d1 SHA1 32b2271c6637e0c624482674950792eb64a03165 SHA256 3bf0f222f04ef118153bad5d82eb3f4734d710030c99d4b428291c140b12a893
diff --git a/x11-libs/gtk+/files/gtk+-2.12.0-flash-workaround.patch b/x11-libs/gtk+/files/gtk+-2.12.0-flash-workaround.patch
new file mode 100644
index 0000000..7beccc3
--- /dev/null
+++ b/x11-libs/gtk+/files/gtk+-2.12.0-flash-workaround.patch
@@ -0,0 +1,12 @@
+Index: gtk+2.0-2.11.6/gtk/gtkclipboard.c
+===================================================================
+--- gtk+2.0-2.11.6.orig/gtk/gtkclipboard.c 2007-08-31 16:52:48.000000000 +0200
++++ gtk+2.0-2.11.6/gtk/gtkclipboard.c 2007-08-31 16:53:16.000000000 +0200
+@@ -287,6 +287,7 @@
+ gtk_clipboard_get_for_display (GdkDisplay *display,
+ GdkAtom selection)
+ {
++ g_return_val_if_fail (display != NULL, NULL);
+ g_return_val_if_fail (GDK_IS_DISPLAY (display), NULL);
+ g_return_val_if_fail (!display->closed, NULL);
+
diff --git a/x11-libs/gtk+/files/gtk+-2.14.3-limit-gtksignal-includes.patch b/x11-libs/gtk+/files/gtk+-2.14.3-limit-gtksignal-includes.patch
new file mode 100644
index 0000000..3fe8cff
--- /dev/null
+++ b/x11-libs/gtk+/files/gtk+-2.14.3-limit-gtksignal-includes.patch
@@ -0,0 +1,17 @@
+http://bugzilla.gnome.org/show_bug.cgi?id=536767
+
+Makes inkscape and claws-mail buildable again. Basically all packages still using
+GtkCList and single included headers.
+--- gtk/gtksignal.h.orig 2008-06-12 01:40:59.000000000 -0400
++++ gtk/gtksignal.h 2008-06-11 18:21:47.000000000 -0400
+@@ -29,7 +29,9 @@
+ #ifndef __GTK_SIGNAL_H__
+ #define __GTK_SIGNAL_H__
+
+-#include <gtk/gtk.h>
++#include <gtk/gtkenums.h>
++#include <gtk/gtktypeutils.h>
++#include <gtk/gtkobject.h>
+ #include <gtk/gtkmarshal.h>
+
+ G_BEGIN_DECLS
diff --git a/x11-libs/gtk+/files/gtk+-2.8.0-multilib.patch b/x11-libs/gtk+/files/gtk+-2.8.0-multilib.patch
new file mode 100644
index 0000000..4a1b73d
--- /dev/null
+++ b/x11-libs/gtk+/files/gtk+-2.8.0-multilib.patch
@@ -0,0 +1,63 @@
+diff -urN gtk+-2.8.0.orig/gdk-pixbuf/Makefile.am gtk+-2.8.0/gdk-pixbuf/Makefile.am
+--- gtk+-2.8.0.orig/gdk-pixbuf/Makefile.am 2005-07-09 01:10:11.000000000 +0100
++++ gtk+-2.8.0/gdk-pixbuf/Makefile.am 2005-08-17 17:59:20.000000000 +0100
+@@ -271,6 +271,7 @@
+ -I$(top_srcdir)/gdk-pixbuf \
+ -I$(top_builddir)/gdk-pixbuf \
+ -DGTK_SYSCONFDIR=\"$(sysconfdir)\" \
++ -DHOST=\"$(host_triplet)\" \
+ -DGTK_VERSION=\"$(GTK_VERSION)\" \
+ -DGTK_BINARY_VERSION=\"$(GTK_BINARY_VERSION)\" \
+ -DG_DISABLE_DEPRECATED \
+diff -urN gtk+-2.8.0.orig/gdk-pixbuf/Makefile.in gtk+-2.8.0/gdk-pixbuf/Makefile.in
+--- gtk+-2.8.0.orig/gdk-pixbuf/Makefile.in 2005-08-17 17:38:06.000000000 +0100
++++ gtk+-2.8.0/gdk-pixbuf/Makefile.in 2005-08-17 17:59:35.000000000 +0100
+@@ -504,6 +504,7 @@
+ -I$(top_srcdir)/gdk-pixbuf \
+ -I$(top_builddir)/gdk-pixbuf \
+ -DGTK_SYSCONFDIR=\"$(sysconfdir)\" \
++ -DHOST=\"$(host_triplet)\" \
+ -DGTK_VERSION=\"$(GTK_VERSION)\" \
+ -DGTK_BINARY_VERSION=\"$(GTK_BINARY_VERSION)\" \
+ -DG_DISABLE_DEPRECATED \
+diff -urN gtk+-2.8.0.orig/gdk-pixbuf/gdk-pixbuf-io.c gtk+-2.8.0/gdk-pixbuf/gdk-pixbuf-io.c
+--- gtk+-2.8.0.orig/gdk-pixbuf/gdk-pixbuf-io.c 2005-07-22 16:34:32.000000000 +0100
++++ gtk+-2.8.0/gdk-pixbuf/gdk-pixbuf-io.c 2005-08-17 17:44:48.000000000 +0100
+@@ -276,8 +276,15 @@
+ gchar *result = g_strdup (g_getenv ("GDK_PIXBUF_MODULE_FILE"));
+
+ if (!result)
+- result = g_build_filename (GTK_SYSCONFDIR, "gtk-2.0", "gdk-pixbuf.loaders", NULL);
+-
++ {
++ result = g_build_filename (GTK_SYSCONFDIR, "gtk-2.0", HOST, "gdk-pixbuf.loaders", NULL);
++ if (!g_file_test (result, G_FILE_TEST_EXISTS))
++ {
++ g_free (result);
++
++ result = g_build_filename (GTK_SYSCONFDIR, "gtk-2.0", "gdk-pixbuf.loaders", NULL);
++ }
++ }
+ return result;
+ }
+
+diff -urN gtk+-2.8.0.orig/gtk/gtkrc.c gtk+-2.8.0/gtk/gtkrc.c
+--- gtk+-2.8.0.orig/gtk/gtkrc.c 2005-04-06 14:49:28.000000000 +0100
++++ gtk+-2.8.0/gtk/gtkrc.c 2005-08-17 17:54:36.000000000 +0100
+@@ -364,7 +364,15 @@
+ if (im_module_file)
+ result = g_strdup (im_module_file);
+ else
+- result = g_build_filename (GTK_SYSCONFDIR, "gtk-2.0", "gtk.immodules", NULL);
++ {
++ result = g_build_filename (GTK_SYSCONFDIR, "gtk-2.0", GTK_HOST, "gtk.immodules", NULL);
++ if (!g_file_test (result, G_FILE_TEST_EXISTS))
++ {
++ g_free (result);
++
++ result = g_build_filename (GTK_SYSCONFDIR, "gtk-2.0", "gtk.immodules", NULL);
++ }
++ }
+ }
+
+ return result;
diff --git a/x11-libs/gtk+/files/hardcoded_libtool.patch b/x11-libs/gtk+/files/hardcoded_libtool.patch
new file mode 100644
index 0000000..82fbbac
--- /dev/null
+++ b/x11-libs/gtk+/files/hardcoded_libtool.patch
@@ -0,0 +1,31 @@
+Index: gtk+-2.14.2/configure.in
+===================================================================
+--- gtk+-2.14.2.orig/configure.in 2008-09-23 15:52:44.000000000 +0100
++++ gtk+-2.14.2/configure.in 2008-09-23 15:53:51.000000000 +0100
+@@ -401,7 +401,7 @@
+ case $enable_explicit_deps in
+ auto)
+ export SED
+- deplibs_check_method=`(./libtool --config; echo 'eval echo \"$deplibs_check_method\"') | sh`
++ deplibs_check_method=`(./$host_alias-libtool --config; echo 'eval echo \"$deplibs_check_method\"') | sh`
+ if test "x$deplibs_check_method" '!=' xpass_all || test "x$enable_static" = xyes ; then
+ enable_explicit_deps=yes
+ else
+@@ -759,7 +759,7 @@
+ dnl Now we check to see if our libtool supports shared lib deps
+ dnl (in a rather ugly way even)
+ if $dynworks; then
+- pixbuf_libtool_config="${CONFIG_SHELL-/bin/sh} ./libtool --config"
++ pixbuf_libtool_config="${CONFIG_SHELL-/bin/sh} $host_alias-libtool --config"
+ pixbuf_deplibs_check=`$pixbuf_libtool_config | \
+ grep '^[[a-z_]]*check[[a-z_]]*_method=[['\''"]]' | \
+ sed 's/.*[['\''"]]\(.*\)[['\''"]]$/\1/'`
+@@ -1893,7 +1893,7 @@
+ # We are using gmodule-no-export now, but I'm leaving the stripping
+ # code in place for now, since pango and atk still require gmodule.
+ export SED
+-export_dynamic=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
++export_dynamic=`($host_alias-libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
+ if test -n "$export_dynamic"; then
+ GDK_PIXBUF_DEP_LIBS=`echo $GDK_PIXBUF_DEP_LIBS | sed -e "s/$export_dynamic//"`
+ GDK_PIXBUF_XLIB_DEP_LIBS=`echo $GDK_PIXBUF_XLIB_DEP_LIBS | sed -e "s/$export_dynamic//"`
diff --git a/x11-libs/gtk+/files/no-demos.patch b/x11-libs/gtk+/files/no-demos.patch
new file mode 100644
index 0000000..4ca66ca
--- /dev/null
+++ b/x11-libs/gtk+/files/no-demos.patch
@@ -0,0 +1,21 @@
+--- gtk+-2.10.1/Makefile.am.orig 2006-08-08 12:37:30.000000000 +0100
++++ gtk+-2.10.1/Makefile.am 2006-08-08 12:37:48.000000000 +0100
+@@ -1,6 +1,6 @@
+ ## Makefile.am for GTK+
+
+-SRC_SUBDIRS = gdk-pixbuf gdk gtk modules demos tests perf contrib
++SRC_SUBDIRS = gdk-pixbuf gdk gtk modules tests perf contrib
+ SUBDIRS = po po-properties $(SRC_SUBDIRS) docs m4macros
+
+ # require automake 1.4
+--- gtk+-2.14.5/Makefile.in~ 2008-12-28 18:14:40.054996133 +0000
++++ gtk+-2.14.5/Makefile.in 2008-12-28 18:14:40.055974819 +0000
+@@ -520,7 +520,7 @@
+ && DISPLAY=:$$XID && export DISPLAY
+
+
+-SRC_SUBDIRS = gdk-pixbuf gdk gtk modules demos tests perf contrib
++SRC_SUBDIRS = gdk-pixbuf gdk gtk modules tests perf contrib
+ SUBDIRS = po po-properties $(SRC_SUBDIRS) docs m4macros
+
+ # require automake 1.4
diff --git a/x11-libs/gtk+/files/no-freeze.patch b/x11-libs/gtk+/files/no-freeze.patch
new file mode 100644
index 0000000..267b38c
--- /dev/null
+++ b/x11-libs/gtk+/files/no-freeze.patch
@@ -0,0 +1,34 @@
+# Patch taken from gnome bugzilla http://bugzilla.gnome.org/show_bug.cgi?id=561591
+--- gtk-2.12.11-clean/gdk/gdkwindow.c 2008-11-17 20:18:12.000000000 +0000
++++ gtk-2.12.11-unfrozen/gdk/gdkwindow.c 2008-11-17
+20:23:59.000000000 +0000
+@@ -2304,8 +2304,7 @@
+ gdk_window_schedule_update (GdkWindow *window)
+ {
+ if (window &&
+- (GDK_WINDOW_OBJECT (window)->update_freeze_count ||
+- gdk_window_is_toplevel_frozen (window)))
++ (GDK_WINDOW_OBJECT (window)->update_freeze_count ))
+ return;
+
+ if (!update_idle)
+@@ -2437,8 +2436,7 @@
+
+ if (!GDK_WINDOW_DESTROYED (tmp_list->data))
+ {
+- if (private->update_freeze_count ||
+- gdk_window_is_toplevel_frozen (tmp_list->data))
++ if (private->update_freeze_count)
+ update_windows = g_slist_prepend (update_windows, private);
+ else
+ gdk_window_process_updates_internal (tmp_list->data);
+@@ -2488,8 +2486,7 @@
+ }
+
+ if (private->update_area &&
+- !private->update_freeze_count &&
+- !gdk_window_is_toplevel_frozen (window))
++ !private->update_freeze_count)
+ {
+ gdk_window_process_updates_internal (window);
+ update_windows = g_slist_remove (update_windows, window);
diff --git a/x11-libs/gtk+/files/run-iconcache.patch b/x11-libs/gtk+/files/run-iconcache.patch
new file mode 100644
index 0000000..a497cf8
--- /dev/null
+++ b/x11-libs/gtk+/files/run-iconcache.patch
@@ -0,0 +1,38 @@
+--- /tmp/Makefile.am 2007-01-08 17:44:47.000000000 +0100
++++ gtk+-2.10.7/gtk/Makefile.am 2007-01-08 17:45:17.025251000 +0100
+@@ -1128,11 +1128,11 @@
+ ./gtk-update-icon-cache
+ endif
+
+-gtkbuiltincache.h: @REBUILD@ stamp-icons
+- $(MAKE) $(AM_MAKEFLAGS) gtk-update-icon-cache$(EXEEXT)
+- $(gtk_update_icon_cache_program) --force --ignore-theme-index \
+- --source builtin_icons stock-icons > gtkbuiltincache.h.tmp && \
+- mv gtkbuiltincache.h.tmp gtkbuiltincache.h
++#gtkbuiltincache.h: @REBUILD@ stamp-icons
++# $(MAKE) $(AM_MAKEFLAGS) gtk-update-icon-cache$(EXEEXT)
++# $(gtk_update_icon_cache_program) --force --ignore-theme-index \
++# --source builtin_icons stock-icons > gtkbuiltincache.h.tmp && \
++# mv gtkbuiltincache.h.tmp gtkbuiltincache.h
+
+ EXTRA_DIST += \
+ $(STOCK_ICONS) \
+--- gtk+-2.14.5/gtk/Makefile.in~ 2008-12-28 18:16:05.801973512 +0000
++++ gtk+-2.14.5/gtk/Makefile.in 2008-12-28 18:16:05.802973848 +0000
+@@ -3230,11 +3230,11 @@
+ ) done \
+ && touch stamp-icons
+
+-gtkbuiltincache.h: @REBUILD@ stamp-icons
+- $(MAKE) $(AM_MAKEFLAGS) gtk-update-icon-cache$(EXEEXT)
+- $(gtk_update_icon_cache_program) --force --ignore-theme-index \
+- --source builtin_icons stock-icons > gtkbuiltincache.h.tmp && \
+- mv gtkbuiltincache.h.tmp gtkbuiltincache.h
++#gtkbuiltincache.h: @REBUILD@ stamp-icons
++# $(MAKE) $(AM_MAKEFLAGS) gtk-update-icon-cache$(EXEEXT)
++# $(gtk_update_icon_cache_program) --force --ignore-theme-index \
++# --source builtin_icons stock-icons > gtkbuiltincache.h.tmp && \
++# mv gtkbuiltincache.h.tmp gtkbuiltincache.h
+
+ install-data-local:
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
diff --git a/x11-libs/gtk+/files/smallscreen_filechooser.patch b/x11-libs/gtk+/files/smallscreen_filechooser.patch
new file mode 100644
index 0000000..2d3b2aa
--- /dev/null
+++ b/x11-libs/gtk+/files/smallscreen_filechooser.patch
@@ -0,0 +1,235 @@
+diff -Naur gtk+-2.14.3.orig/gtk/gtkfilechooserdefault.c gtk+-2.14.3/gtk/gtkfilechooserdefault.c
+--- gtk+-2.14.3.orig/gtk/gtkfilechooserdefault.c 2008-09-22 22:33:15.000000000 +0400
++++ gtk+-2.14.3/gtk/gtkfilechooserdefault.c 2008-10-06 00:42:01.000000000 +0400
+@@ -252,7 +252,9 @@
+ /* Icon size for if we can't get it from the theme */
+ #define FALLBACK_ICON_SIZE 16
+
+-#define PREVIEW_HBOX_SPACING 12
++#define PREVIEW_HBOX_SPACING 2
++#define NORMAL_SPACING 2
++#define DOUBLE_SPACING 2
+ #define NUM_LINES 45
+ #define NUM_CHARS 60
+
+@@ -460,6 +462,17 @@
+
+
+
++int
++_gtk_is_pda_mode()
++{
++ /* PDA mode is when we have small screen width, plus small overall screen area
++ too. What we want to do when it is active is to prefer vertical packing over
++ horizontal (so we can show user filenames of as long length as possible), yet
++ still layout vertical space in such way so user can be able to see as many
++ files as possible. And of course, we save space overall - no big spacings and
++ borders. */
++ return gdk_screen_width() < 490;
++}
+
+
+ /* Drag and drop interface declarations */
+@@ -803,7 +816,7 @@
+ impl->operation_mode = OPERATION_MODE_BROWSE;
+ impl->recent_manager = gtk_recent_manager_get_default ();
+
+- gtk_box_set_spacing (GTK_BOX (impl), 12);
++ gtk_box_set_spacing (GTK_BOX (impl), DOUBLE_SPACING);
+
+ set_file_system_backend (impl);
+
+@@ -3969,8 +3982,9 @@
+ GtkWidget *vbox;
+ GtkWidget *hbox;
+ GtkWidget *widget;
++ gboolean is_pda = _gtk_is_pda_mode();
+
+- vbox = gtk_vbox_new (FALSE, 6);
++ vbox = (is_pda?gtk_hbox_new:gtk_vbox_new) (FALSE, NORMAL_SPACING);
+ gtk_widget_show (vbox);
+
+ /* Shortcuts tree */
+@@ -3980,7 +3994,7 @@
+
+ /* Box for buttons */
+
+- hbox = gtk_hbox_new (TRUE, 6);
++ hbox = (is_pda?gtk_vbox_new:gtk_hbox_new) (TRUE, NORMAL_SPACING);
+ gtk_size_group_add_widget (size_group, hbox);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
+ gtk_widget_show (hbox);
+@@ -3988,7 +4002,7 @@
+ /* Add bookmark button */
+
+ impl->browse_shortcuts_add_button = button_new (impl,
+- _("_Add"),
++ "",
+ GTK_STOCK_ADD,
+ FALSE,
+ TRUE,
+@@ -4000,15 +4014,25 @@
+ /* Remove bookmark button */
+
+ impl->browse_shortcuts_remove_button = button_new (impl,
+- _("_Remove"),
++ "",
+ GTK_STOCK_REMOVE,
+ FALSE,
+ TRUE,
+ G_CALLBACK (remove_bookmark_button_clicked_cb));
++ if (!is_pda) {
++/* Remove button is pretty reduntant, as that choice is available from popup
++ * menu (and would be intuitively expected to be there; compare that with
++ * the "Add to shortucts" in popup in files pane - most users would never
++ * try that and never new what shortcuts are).
++ * If we suspect we can be short of screen space (PDA device is what often
++ * has portrait layout), don't pack it, to allow more visually pleasing
++ * layout when minimizing location pane. Note that we still instantiate it,
++ * as it is referenced thruout the code. */
++
+ gtk_box_pack_start (GTK_BOX (hbox), impl->browse_shortcuts_remove_button, TRUE, TRUE, 0);
+ gtk_widget_set_tooltip_text (impl->browse_shortcuts_remove_button,
+ _("Remove the selected bookmark"));
+-
++ }
+ return vbox;
+ }
+
+@@ -4661,7 +4685,7 @@
+ GtkWidget *hbox;
+ GtkWidget *widget;
+
+- vbox = gtk_vbox_new (FALSE, 6);
++ vbox = gtk_vbox_new (FALSE, NORMAL_SPACING);
+ gtk_widget_show (vbox);
+
+ /* Box for lists and preview */
+@@ -4677,13 +4701,13 @@
+
+ /* Preview */
+
+- impl->preview_box = gtk_vbox_new (FALSE, 12);
++ impl->preview_box = gtk_vbox_new (FALSE, DOUBLE_SPACING);
+ gtk_box_pack_start (GTK_BOX (hbox), impl->preview_box, FALSE, FALSE, 0);
+ /* Don't show preview box initially */
+
+ /* Filter combo */
+
+- impl->filter_combo_hbox = gtk_hbox_new (FALSE, 12);
++ impl->filter_combo_hbox = gtk_hbox_new (FALSE, DOUBLE_SPACING);
+
+ widget = filter_create (impl);
+
+@@ -4835,13 +4859,13 @@
+
+ location_switch_to_path_bar (impl);
+
+- vbox = gtk_vbox_new (FALSE, 12);
++ vbox = gtk_vbox_new (FALSE, DOUBLE_SPACING);
+
+ table = gtk_table_new (2, 2, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0);
+ gtk_widget_show (table);
+- gtk_table_set_row_spacings (GTK_TABLE (table), 12);
+- gtk_table_set_col_spacings (GTK_TABLE (table), 12);
++ gtk_table_set_row_spacings (GTK_TABLE (table), DOUBLE_SPACING);
++ gtk_table_set_col_spacings (GTK_TABLE (table), DOUBLE_SPACING);
+
+ /* Label */
+
+@@ -5175,10 +5199,10 @@
+
+ /* size group is used by the [+][-] buttons and the filter combo */
+ size_group = gtk_size_group_new (GTK_SIZE_GROUP_VERTICAL);
+- vbox = gtk_vbox_new (FALSE, 12);
++ vbox = gtk_vbox_new (FALSE, DOUBLE_SPACING);
+
+ /* Location widgets */
+- hbox = gtk_hbox_new (FALSE, 12);
++ hbox = gtk_hbox_new (FALSE, DOUBLE_SPACING);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
+ gtk_widget_show (hbox);
+ impl->browse_path_bar_hbox = hbox;
+@@ -5201,7 +5225,7 @@
+
+ /* Box for the location label and entry */
+
+- impl->location_entry_box = gtk_hbox_new (FALSE, 12);
++ impl->location_entry_box = gtk_hbox_new (FALSE, DOUBLE_SPACING);
+ gtk_box_pack_start (GTK_BOX (vbox), impl->location_entry_box, FALSE, FALSE, 0);
+
+ impl->location_label = gtk_label_new_with_mnemonic (_("_Location:"));
+@@ -5209,12 +5233,16 @@
+ gtk_box_pack_start (GTK_BOX (impl->location_entry_box), impl->location_label, FALSE, FALSE, 0);
+
+ /* Paned widget */
+- hpaned = gtk_hpaned_new ();
++ if (_gtk_is_pda_mode())
++ hpaned = gtk_vpaned_new ();
++ else
++ hpaned = gtk_hpaned_new ();
++
+ gtk_widget_show (hpaned);
+ gtk_box_pack_start (GTK_BOX (vbox), hpaned, TRUE, TRUE, 0);
+
+ widget = shortcuts_pane_create (impl, size_group);
+- gtk_paned_pack1 (GTK_PANED (hpaned), widget, FALSE, FALSE);
++ gtk_paned_pack1 (GTK_PANED (hpaned), widget, FALSE, TRUE); /* Shortcuts can shrink beyond requested size */
+ widget = file_pane_create (impl, size_group);
+ gtk_paned_pack2 (GTK_PANED (hpaned), widget, TRUE, FALSE);
+
+diff -Naur gtk+-2.14.3.orig/gtk/gtkfilechooserdialog.c gtk+-2.14.3/gtk/gtkfilechooserdialog.c
+--- gtk+-2.14.3.orig/gtk/gtkfilechooserdialog.c 2008-09-19 08:44:03.000000000 +0400
++++ gtk+-2.14.3/gtk/gtkfilechooserdialog.c 2008-10-10 12:37:38.000000000 +0400
+@@ -32,8 +32,12 @@
+
+ #include <stdarg.h>
+
++#define NORMAL_SPACING 1
++#define DOUBLE_SPACING 2
++
+ #define GTK_FILE_CHOOSER_DIALOG_GET_PRIVATE(o) (GTK_FILE_CHOOSER_DIALOG (o)->priv)
+
++extern int _gtk_is_pda_mode(void);
+ static void gtk_file_chooser_dialog_finalize (GObject *object);
+
+ static GObject* gtk_file_chooser_dialog_constructor (GType type,
+@@ -89,9 +93,9 @@
+ dialog->priv->response_requested = FALSE;
+
+ gtk_dialog_set_has_separator (fc_dialog, FALSE);
+- gtk_container_set_border_width (GTK_CONTAINER (fc_dialog), 5);
+- gtk_box_set_spacing (GTK_BOX (fc_dialog->vbox), 2); /* 2 * 5 + 2 = 12 */
+- gtk_container_set_border_width (GTK_CONTAINER (fc_dialog->action_area), 5);
++ gtk_container_set_border_width (GTK_CONTAINER (fc_dialog), NORMAL_SPACING);
++ gtk_box_set_spacing (GTK_BOX (fc_dialog->vbox), NORMAL_SPACING);
++ gtk_container_set_border_width (GTK_CONTAINER (fc_dialog->action_area), NORMAL_SPACING);
+
+ /* We do a signal connection here rather than overriding the method in
+ * class_init because GtkDialog::response is a RUN_LAST signal. We want *our*
+@@ -170,8 +174,13 @@
+
+ gdk_screen_get_monitor_geometry (screen, monitor_num, &monitor);
+
+- if (width)
+- *width = MIN (*width, (monitor.width * 3) / 4);
++ if (width) {
++ if (_gtk_is_pda_mode())
++ /* If width is physically small, use it all */
++ *width = monitor.width;
++ else
++ *width = MIN (*width, (monitor.width * 3) / 4);
++ }
+
+ if (height)
+ *height = MIN (*height, (monitor.height * 3) / 4);
+@@ -279,7 +288,7 @@
+ g_signal_connect (priv->widget, "response-requested",
+ G_CALLBACK (file_chooser_widget_response_requested), object);
+
+- gtk_container_set_border_width (GTK_CONTAINER (priv->widget), 5);
++ gtk_container_set_border_width (GTK_CONTAINER (priv->widget), NORMAL_SPACING);
+ gtk_box_pack_start (GTK_BOX (GTK_DIALOG (object)->vbox), priv->widget, TRUE, TRUE, 0);
+
+ gtk_widget_show (priv->widget);
diff --git a/x11-libs/gtk+/files/toggle-font.diff b/x11-libs/gtk+/files/toggle-font.diff
new file mode 100644
index 0000000..59ad150
--- /dev/null
+++ b/x11-libs/gtk+/files/toggle-font.diff
@@ -0,0 +1,100 @@
+Index: gtk/gtkcellrenderertoggle.c
+===================================================================
+--- gtk/gtkcellrenderertoggle.c (revision 18523)
++++ gtk/gtkcellrenderertoggle.c (working copy)
+@@ -71,6 +71,8 @@
+ PROP_INDICATOR_SIZE
+ };
+
++/* This is a hard-coded default which promptly gets overridden by a size
++ calculated from the font size. */
+ #define TOGGLE_WIDTH 13
+
+ static guint toggle_cell_signals[LAST_SIGNAL] = { 0 };
+@@ -80,8 +82,9 @@
+ typedef struct _GtkCellRendererTogglePrivate GtkCellRendererTogglePrivate;
+ struct _GtkCellRendererTogglePrivate
+ {
+- gint indicator_size;
+-
++ gint indicator_size; /* This is the real size */
++ gint override_size; /* This is the size set from the indicator-size property */
++ GtkWidget *cached_widget;
+ guint inconsistent : 1;
+ };
+
+@@ -104,6 +107,7 @@
+ GTK_CELL_RENDERER (celltoggle)->ypad = 2;
+
+ priv->indicator_size = TOGGLE_WIDTH;
++ priv->override_size = 0;
+ priv->inconsistent = FALSE;
+ }
+
+@@ -210,7 +214,7 @@
+ g_value_set_boolean (value, celltoggle->radio);
+ break;
+ case PROP_INDICATOR_SIZE:
+- g_value_set_int (value, priv->indicator_size);
++ g_value_set_int (value, priv->override_size ? priv->override_size : priv->indicator_size);
+ break;
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+@@ -245,7 +249,7 @@
+ celltoggle->radio = g_value_get_boolean (value);
+ break;
+ case PROP_INDICATOR_SIZE:
+- priv->indicator_size = g_value_get_int (value);
++ priv->override_size = g_value_get_int (value);
+ break;
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+@@ -273,6 +277,27 @@
+ }
+
+ static void
++on_widget_style_set (GtkWidget *widget, GtkStyle *previous, gpointer user_data)
++{
++ GtkCellRendererTogglePrivate *priv = user_data;
++ PangoContext *context;
++ PangoFontMetrics *metrics;
++ int height;
++
++ context = gtk_widget_get_pango_context (widget);
++ metrics = pango_context_get_metrics (context,
++ widget->style->font_desc,
++ pango_context_get_language (context));
++
++ height = pango_font_metrics_get_ascent (metrics) +
++ pango_font_metrics_get_descent (metrics);
++
++ pango_font_metrics_unref (metrics);
++
++ priv->indicator_size = PANGO_PIXELS (height * 0.85);
++}
++
++static void
+ gtk_cell_renderer_toggle_get_size (GtkCellRenderer *cell,
+ GtkWidget *widget,
+ GdkRectangle *cell_area,
+@@ -287,6 +312,20 @@
+
+ priv = GTK_CELL_RENDERER_TOGGLE_GET_PRIVATE (cell);
+
++ if (priv->override_size) {
++ priv->indicator_size = priv->override_size;
++ } else if (priv->cached_widget != widget) {
++ if (priv->cached_widget) {
++ g_object_remove_weak_pointer (widget, &priv->cached_widget);
++ g_signal_handlers_disconnect_by_func (priv->cached_widget, on_widget_style_set, priv);
++ }
++ priv->cached_widget = widget;
++ g_object_add_weak_pointer (widget, &priv->cached_widget);
++ g_signal_connect (widget, "style-set", on_widget_style_set, priv);
++
++ on_widget_style_set (widget, NULL, priv);
++ }
++
+ calc_width = (gint) cell->xpad * 2 + priv->indicator_size;
+ calc_height = (gint) cell->ypad * 2 + priv->indicator_size;
+
diff --git a/x11-libs/gtk+/gtk+-2.14.5.ebuild b/x11-libs/gtk+/gtk+-2.14.5.ebuild
new file mode 100644
index 0000000..78380d5
--- /dev/null
+++ b/x11-libs/gtk+/gtk+-2.14.5.ebuild
@@ -0,0 +1,168 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/gtk+-2.14.5.ebuild,v 1.2 2008/11/30 13:13:59 eva Exp $
+
+WANT_AUTOMAKE="1.7"
+
+inherit gnome.org flag-o-matic eutils libtool virtualx
+
+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 ~x86-fbsd"
+IUSE="cups debug doc jpeg jpeg2k tiff vim-syntax xinerama"
+
+RDEPEND="x11-libs/libXrender
+ x11-libs/libX11
+ x11-libs/libXi
+ x11-libs/libXt
+ x11-libs/libXext
+ >=x11-libs/libXrandr-1.2
+ x11-libs/libXcursor
+ x11-libs/libXfixes
+ x11-libs/libXcomposite
+ x11-libs/libXdamage
+ xinerama? ( x11-libs/libXinerama )
+ >=dev-libs/glib-2.17.6
+ >=x11-libs/pango-1.20
+ >=dev-libs/atk-1.13
+ >=x11-libs/cairo-1.6
+ media-libs/fontconfig
+ x11-misc/shared-mime-info
+ >=media-libs/libpng-1.2.1
+ cups? ( net-print/cups )
+ jpeg? ( >=media-libs/jpeg-6b-r2 )
+ jpeg2k? ( media-libs/jasper )
+ tiff? ( >=media-libs/tiff-3.5.7 )
+ !<gnome-base/gail-1000"
+DEPEND="${RDEPEND}
+ >=dev-util/pkgconfig-0.9
+ x11-proto/xextproto
+ x11-proto/xproto
+ x11-proto/inputproto
+ x11-proto/damageproto
+ xinerama? ( x11-proto/xineramaproto )
+ >=dev-util/gtk-doc-am-1.8
+ doc? (
+ >=dev-util/gtk-doc-1.8
+ ~app-text/docbook-xml-dtd-4.1.2
+ )"
+PDEPEND="vim-syntax? ( app-vim/gtk-syntax )"
+
+pkg_setup() {
+ if ! built_with_use x11-libs/cairo X; then
+ eerror "Please re-emerge x11-libs/cairo with the X USE flag set"
+ die "cairo needs the X flag set"
+ fi
+}
+
+set_gtk2_confdir() {
+ # An arch specific config directory is used on multilib systems
+ has_multilib_profile && GTK2_CONFDIR="/etc/gtk-2.0/${CHOST}"
+ GTK2_CONFDIR=${GTK2_CONFDIR:=/etc/gtk-2.0}
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # use an arch-specific config directory so that 32bit and 64bit versions
+ # dont clash on multilib systems
+ has_multilib_profile && epatch "${FILESDIR}/${PN}-2.8.0-multilib.patch"
+
+ # Workaround adobe flash infinite loop. Patch from http://bugzilla.gnome.org/show_bug.cgi?id=463773#c11
+ epatch "${FILESDIR}/${PN}-2.12.0-flash-workaround.patch"
+
+ # Don't break inclusion of gtkclist.h, upstream bug 536767
+ epatch "${FILESDIR}/${PN}-2.14.3-limit-gtksignal-includes.patch"
+
+ # Cross compilation patches from OE
+ epatch "${FILESDIR}/hardcoded_libtool.patch"
+ epatch "${FILESDIR}/no-demos.patch"
+ epatch "${FILESDIR}/run-iconcache.patch"
+ epatch "${FILESDIR}/smallscreen_filechooser.patch"
+ epatch "${FILESDIR}/toggle-font.diff"
+
+ # patch from gnome bug #561591
+ epatch "${FILESDIR}/no-freeze.patch"
+
+ # -O3 and company cause random crashes in applications. Bug #133469
+ replace-flags -O3 -O2
+ strip-flags
+
+ use ppc64 && append-flags -mminimal-toc
+
+ elibtoolize
+}
+
+src_compile() {
+ # png always on to display icons (foser)
+ local myconf="$(use_enable doc gtk-doc) \
+ $(use_with jpeg libjpeg) \
+ $(use_with jpeg2k libjasper) \
+ $(use_with tiff libtiff) \
+ $(use_enable xinerama) \
+ $(use_enable cups cups auto) \
+ --with-libpng \
+ --with-gdktarget=x11 \
+ --with-xinput"
+
+ # Passing --disable-debug is not recommended for production use
+ use debug && myconf="${myconf} --enable-debug=yes"
+
+ econf ${myconf} || die "configure failed"
+ emake || die "compile failed"
+}
+
+src_test() {
+ Xemake check || die "tests failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Installation failed"
+
+ set_gtk2_confdir
+ dodir ${GTK2_CONFDIR}
+ keepdir ${GTK2_CONFDIR}
+
+ # see bug #133241
+ echo 'gtk-fallback-icon-theme = "gnome"' > "${D}/${GTK2_CONFDIR}/gtkrc"
+
+ # Enable xft in environment as suggested by <utx@gentoo.org>
+ dodir /etc/env.d
+ echo "GDK_USE_XFT=1" > "${D}/etc/env.d/50gtk2"
+
+ dodoc AUTHORS ChangeLog* HACKING NEWS* README*
+
+ # This has to be removed, because it's multilib specific; generated in
+ # postinst
+ rm "${D}/etc/gtk-2.0/gtk.immodules"
+}
+
+pkg_postinst() {
+ set_gtk2_confdir
+
+ if [ -d "${ROOT}${GTK2_CONFDIR}" ]; then
+ gtk-query-immodules-2.0 > "${ROOT}${GTK2_CONFDIR}/gtk.immodules"
+ gdk-pixbuf-query-loaders > "${ROOT}${GTK2_CONFDIR}/gdk-pixbuf.loaders"
+ else
+ ewarn "The destination path ${ROOT}${GTK2_CONFDIR} doesn't exist;"
+ ewarn "to complete the installation of GTK+, please create the"
+ ewarn "directory and then manually run:"
+ ewarn " cd ${ROOT}${GTK2_CONFDIR}"
+ ewarn " gtk-query-immodules-2.0 > gtk.immodules"
+ ewarn " gdk-pixbuf-query-loaders > gdk-pixbuf.loaders"
+ fi
+
+ if [ -e /usr/lib/gtk-2.0/2.[^1]* ]; then
+ elog "You need to rebuild ebuilds that installed into" /usr/lib/gtk-2.0/2.[^1]*
+ elog "to do that you can use qfile from portage-utils:"
+ elog "emerge -va1 \$(qfile -qC /usr/lib/gtk-2.0/2.[^1]*)"
+ fi
+
+ 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."
+}
diff --git a/x11-libs/libX11/Manifest b/x11-libs/libX11/Manifest
new file mode 100644
index 0000000..91c80c6
--- /dev/null
+++ b/x11-libs/libX11/Manifest
@@ -0,0 +1,4 @@
+AUX libX11-1.1.3-crosscompile-makekeys.patch 1884 RMD160 73c0c5a6a48cc98f50ac6bb35c098f5594150a08 SHA1 a3b2ec48cdfb1a1c021528a41ed7e7241ad623f0 SHA256 e116bf288bf780c1d81aacb20845613c1bb5de13509e912b0b8d219acf36b737
+AUX libX11-1.1.3-xcb-locking.patch 966 RMD160 59f9bc11591454bea86e30574866d070dafcd3fb SHA1 3a0838317ba656aec70732353fccc38e26d466b6 SHA256 944357ec53cb862f7b4b7dfe16f876adfa5a1f5ad35bdd0f74d11ae7dc3ecab2
+DIST libX11-1.1.3.tar.bz2 1526958 RMD160 fcb8d5d31befa0ae227210dc7274c17b30c37fad SHA1 235f69172b262f874d2a2d7bd17e8197aea5b767 SHA256 4a2f566e2ea5dd955c875cb8fa9c18dd725324fc5cf4e23c803442e31ab8917a
+EBUILD libX11-1.1.3-r1.ebuild 1534 RMD160 7525d37a8d187ee287b6f8f711e26da5a4094656 SHA1 29a039230f61d113ddd004f80a5514fbfdb7c2fd SHA256 980975d8013f1628e16faeb62d698dfbd7d2d4f3a12ffe1282391e434b9bf4f0
diff --git a/x11-libs/libX11/files/libX11-1.1.3-crosscompile-makekeys.patch b/x11-libs/libX11/files/libX11-1.1.3-crosscompile-makekeys.patch
new file mode 100644
index 0000000..14e2054
--- /dev/null
+++ b/x11-libs/libX11/files/libX11-1.1.3-crosscompile-makekeys.patch
@@ -0,0 +1,67 @@
+For cross compilation we need to build the makekeys tool
+using the host toolchain, because we need to execute this
+tool later in the make process.
+
+--- configure.ac 2007-07-27 18:02:55.000000000 +0200
++++ configure.ac.new
+@@ -307,6 +307,17 @@ else
+ fi
+ AC_SUBST(XKBPROTO_REQUIRES)
+
++AM_CONDITIONAL(CROSS_COMPILING, [ test $cross_compiling = yes ])
++
++AC_MSG_CHECKING([for CC_FOR_BUILD])
++if test x$host != x$build ; then
++ CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
++else
++ CC_FOR_BUILD=${CC}
++fi
++AC_MSG_RESULT([$CC_FOR_BUILD])
++AC_SUBST(CC_FOR_BUILD)
++
+ AC_FUNC_MMAP()
+ composecache_default=$ac_cv_func_mmap_fixed_mapped
+ AC_CHECK_FUNC(nl_langinfo, , [composecache_default=no])
+
+
+--- src/util/Makefile.am 2007-05-16 17:34:44.000000000 +0200
++++ src/util/Makefile.am.new 2008-09-14 15:50:53.000000000 +0200
+@@ -1,11 +1,16 @@
+ # $XdotOrg: lib/X11/src/util/Makefile.am,v 1.4 2006-02-19 02:14:12 jamey Exp $
+
+-noinst_PROGRAMS=makekeys
++noinst_PROGRAMS=makekeys$(EXEEXT) $(MAKEKEYS_PROG)
+
+ makekeys_CFLAGS=$(X11_CFLAGS)
+
+-#override CC = gcc
+-LINK = $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
++if CROSS_COMPILING
++MAKEKEYS_PROG=xmakekeys$(EXEEXT)
++
++xmakekeys$(EXEEXT): makekeys.c
++ $(CC_FOR_BUILD) $(X11_CFLAGS) $(CPPFLAGS_FOR_BUILD) \
++ $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ makekeys.c
++endif
+
+ EXTRA_DIST = mkks.sh
+
+
+--- src/Makefile.am 2008-09-14 15:53:27.000000000 +0200
++++ src/Makefile.am.new 2008-09-14 15:56:19.000000000 +0200
+@@ -408,8 +408,14 @@
+
+ KEYSYMDEF=@KEYSYMDEF@
+
++if CROSS_COMPILING
++MAKEKEYS=$(top_builddir)/src/util/xmakekeys
++else
++MAKEKEYS=$(top_builddir)/src/util/makekeys
++endif
++
+ ks_tables.h: $(KEYSYMDEF) $(top_builddir)/src/util/makekeys$(EXEEXT)
+- $(top_builddir)/src/util/makekeys < $(KEYSYMDEF) > ks_tables_h
++ $(MAKEKEYS) < $(KEYSYMDEF) > ks_tables_h
+ mv ks_tables_h $@
+
+ $(top_builddir)/src/util/makekeys$(EXEEXT): force
diff --git a/x11-libs/libX11/files/libX11-1.1.3-xcb-locking.patch b/x11-libs/libX11/files/libX11-1.1.3-xcb-locking.patch
new file mode 100644
index 0000000..78845d3
--- /dev/null
+++ b/x11-libs/libX11/files/libX11-1.1.3-xcb-locking.patch
@@ -0,0 +1,28 @@
+commit e02e4ccafcaf3eb8993152dfcbfbee0240ea2db2
+Author: Adam Jackson <ajax@redhat.com>
+Date: Sun Feb 24 20:00:43 2008 -0500
+
+ Bug #14029: Don't LockDisplay() recursively.
+
+ See also Red Hat bugzilla #326461.
+
+diff --git a/src/xkb/XKBBind.c b/src/xkb/XKBBind.c
+index e190d00..4dc9265 100644
+--- a/src/xkb/XKBBind.c
++++ b/src/xkb/XKBBind.c
+@@ -368,7 +368,6 @@ XkbRefreshKeyboardMapping(register XkbMapNotifyEvent *event)
+ changes= xkbi->changes;
+ else bzero(&changes,sizeof(changes));
+ XkbNoteMapChanges(&changes,event,XKB_XLIB_MAP_MASK);
+- LockDisplay(dpy);
+ if ((rtrn=XkbGetMapChanges(dpy,xkbi->desc,&changes))!=Success) {
+ #ifdef DEBUG
+ fprintf(stderr,"Internal Error! XkbGetMapChanges failed:\n");
+@@ -379,7 +378,6 @@ XkbRefreshKeyboardMapping(register XkbMapNotifyEvent *event)
+ xkbi->flags&= ~XkbMapPending;
+ bzero(&xkbi->changes,sizeof(XkbMapChangesRec));
+ }
+- UnlockDisplay(dpy);
+ return rtrn;
+ }
+ return BadMatch; \ No newline at end of file
diff --git a/x11-libs/libX11/libX11-1.1.3-r1.ebuild b/x11-libs/libX11/libX11-1.1.3-r1.ebuild
new file mode 100644
index 0000000..3000fd8
--- /dev/null
+++ b/x11-libs/libX11/libX11-1.1.3-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/libX11/libX11-1.1.3-r1.ebuild,v 1.1 2008/02/28 19:39:20 cardoe Exp $
+
+# Must be before x-modular eclass is inherited
+#SNAPSHOT="yes"
+
+inherit x-modular
+
+DESCRIPTION="X.Org X11 library"
+
+KEYWORDS="~alpha ~amd64 arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="ipv6 xcb"
+RDEPEND=">=x11-libs/xtrans-1.0.1
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-proto/kbproto
+ >=x11-proto/xproto-7.0.6
+ xcb? ( >=x11-libs/libxcb-1.0 )"
+DEPEND="${RDEPEND}
+ x11-proto/xf86bigfontproto
+ x11-proto/bigreqsproto
+ x11-proto/inputproto
+ x11-proto/xextproto
+ x11-proto/xcmiscproto
+ >=x11-misc/util-macros-0.99.0_p20051007"
+
+CONFIGURE_OPTIONS="$(use_enable ipv6)
+ $(use_with xcb)"
+# xorg really doesn't like xlocale disabled.
+# $(use_enable nls xlocale)
+
+PATCHES="${FILESDIR}/libX11-1.1.3-xcb-locking.patch"
+
+src_unpack() {
+ x-modular_src_unpack || die 'x-modular_src_unpack failed'
+
+ # If the system is crosscompiled we need a 'host' version of makekeys.
+ # So we patch the autoconf/automake files to detect cross-compilation,
+ # find the correct compiler and build a xmakekeys, which is used later
+ # in the build process.
+ # ATTENTION: We have to do this BEFORE autoconfigure runs!
+ epatch "${FILESDIR}/libX11-1.1.3-crosscompile-makekeys.patch" || die 'epatch failed'
+
+ eautoreconf || die 'eautoreconf failed'
+}
diff --git a/x11-libs/libXt/Manifest b/x11-libs/libXt/Manifest
new file mode 100644
index 0000000..9838956
--- /dev/null
+++ b/x11-libs/libXt/Manifest
@@ -0,0 +1,4 @@
+AUX crosscompile-configure.ac.patch 658 RMD160 bb8bcde9d855fab9eb6b9d91158bb829aa36f0c0 SHA1 6728dc1a0e7ec9585cf6aac5d541aab86b8e5054 SHA256 ada6b7c4138b278bfe74f49b88c491aaa83fd02e3eb563890cf2a9915106a347
+AUX crosscompile-makestrs.patch 3948 RMD160 c9aff88b260d274ec82cc3f54f33389175c02c03 SHA1 319379b184e7f8919a2ca715828bfc6200d08593 SHA256 282dababc6b9f28a6b852c06f866839b52af03964b8ac37645f1a3ba7bd1aae6
+DIST libXt-1.0.5.tar.bz2 500502 RMD160 7e5ef9e03dc860bf5b64b85a897dd1d2ae1ed0bf SHA1 5f33921e373ce162a39eabef2ce05d946935eb5b SHA256 43c472ada59a04428a463225cd4cd42cb81bc43eb687cc1890f2f1c81a3e9cf4
+EBUILD libXt-1.0.5.ebuild 1041 RMD160 b504964e44e23838c54e6cc4fc01c43fe17998b2 SHA1 0c670983250444f3143f45b07e5869b60a1becfa SHA256 e6d7468695324636b4deac1ab0529d95129a2eedbfe6a23a31973a8e5d7ce2e8
diff --git a/x11-libs/libXt/files/crosscompile-configure.ac.patch b/x11-libs/libXt/files/crosscompile-configure.ac.patch
new file mode 100644
index 0000000..c816ea0
--- /dev/null
+++ b/x11-libs/libXt/files/crosscompile-configure.ac.patch
@@ -0,0 +1,29 @@
+--- configure.ac 2007-01-28 07:27:22.000000000 +0100
++++ configure.ac.new 2008-09-13 12:51:52.000000000 +0200
+@@ -28,6 +28,10 @@
+ dnl
+ dnl
+ AC_INIT(libXt, 1.0.5, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], libXt)
++
++AC_CANONICAL_BUILD
++AC_CANONICAL_HOST
++
+ AM_INIT_AUTOMAKE([dist-bzip2])
+ AM_MAINTAINER_MODE
+
+@@ -37,6 +41,15 @@
+ AC_PROG_CC
+ AC_PROG_LIBTOOL
+
++AC_MSG_CHECKING([for CC_FOR_BUILD])
++if test x$host != x$build ; then
++ CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
++else
++ CC_FOR_BUILD=${CC}
++fi
++AC_MSG_RESULT([$CC_FOR_BUILD])
++AC_SUBST(CC_FOR_BUILD)
++
+ PKG_CHECK_MODULES(XT, sm x11 xproto kbproto)
+
+ # Needed for including Xalloca.h
diff --git a/x11-libs/libXt/files/crosscompile-makestrs.patch b/x11-libs/libXt/files/crosscompile-makestrs.patch
new file mode 100644
index 0000000..0bc439c
--- /dev/null
+++ b/x11-libs/libXt/files/crosscompile-makestrs.patch
@@ -0,0 +1,51 @@
+--- util/Makefile.in 2008-09-13 13:51:59.000000000 +0200
++++ util/Makefile.in.new 2008-09-13 13:55:53.000000000 +0200
+@@ -52,20 +52,16 @@
+ makestrs_OBJECTS = $(am_makestrs_OBJECTS)
+ makestrs_LDADD = $(LDADD)
+ makestrs_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+- --mode=link $(CCLD) $(makestrs_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
+- $(LDFLAGS) -o $@
++ --mode=link $(CC_FOR_BUILD) $(makestrs_CFLAGS) -o $@
+ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
+ depcomp = $(SHELL) $(top_srcdir)/depcomp
+ am__depfiles_maybe = depfiles
+-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++COMPILE = $(CC_FOR_BUILD) $(DEFS)
+ LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+- --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+-CCLD = $(CC)
++ --mode=compile $(CC_FOR_BUILD) $(DEFS)
++CCLD = $(CC_FOR_BUILD)
+ LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+- --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
+- $(LDFLAGS) -o $@
++ --mode=link $(CC_FOR_BUILD) $(LDFLAGS) -o $@
+ SOURCES = $(makestrs_SOURCES)
+ DIST_SOURCES = $(makestrs_SOURCES)
+ am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+@@ -332,18 +328,18 @@
+ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
+
+ makestrs-makestrs.o: makestrs.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(makestrs_CFLAGS) $(CFLAGS) -MT makestrs-makestrs.o -MD -MP -MF $(DEPDIR)/makestrs-makestrs.Tpo -c -o makestrs-makestrs.o `test -f 'makestrs.c' || echo '$(srcdir)/'`makestrs.c
++@am__fastdepCC_TRUE@ $(CC_FOR_BUILD) $(DEFS) $(makestrs_CFLAGS) -MT makestrs-makestrs.o -MD -MP -MF $(DEPDIR)/makestrs-makestrs.Tpo -c -o makestrs-makestrs.o `test -f 'makestrs.c' || echo '$(srcdir)/'`makestrs.c
+ @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/makestrs-makestrs.Tpo $(DEPDIR)/makestrs-makestrs.Po
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='makestrs.c' object='makestrs-makestrs.o' libtool=no @AMDEPBACKSLASH@
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(makestrs_CFLAGS) $(CFLAGS) -c -o makestrs-makestrs.o `test -f 'makestrs.c' || echo '$(srcdir)/'`makestrs.c
++@am__fastdepCC_FALSE@ $(CC_FOR_BUILD) $(DEFS) $(makestrs_CFLAGS) -c -o makestrs-makestrs.o `test -f 'makestrs.c' || echo '$(srcdir)/'`makestrs.c
+
+ makestrs-makestrs.obj: makestrs.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(makestrs_CFLAGS) $(CFLAGS) -MT makestrs-makestrs.obj -MD -MP -MF $(DEPDIR)/makestrs-makestrs.Tpo -c -o makestrs-makestrs.obj `if test -f 'makestrs.c'; then $(CYGPATH_W) 'makestrs.c'; else $(CYGPATH_W) '$(srcdir)/makestrs.c'; fi`
++@am__fastdepCC_TRUE@ $(CC_FOR_BUILD) $(DEFS) $(makestrs_CFLAGS) -MT makestrs-makestrs.obj -MD -MP -MF $(DEPDIR)/makestrs-makestrs.Tpo -c -o makestrs-makestrs.obj `if test -f 'makestrs.c'; then $(CYGPATH_W) 'makestrs.c'; else $(CYGPATH_W) '$(srcdir)/makestrs.c'; fi`
+ @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/makestrs-makestrs.Tpo $(DEPDIR)/makestrs-makestrs.Po
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='makestrs.c' object='makestrs-makestrs.obj' libtool=no @AMDEPBACKSLASH@
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(makestrs_CFLAGS) $(CFLAGS) -c -o makestrs-makestrs.obj `if test -f 'makestrs.c'; then $(CYGPATH_W) 'makestrs.c'; else $(CYGPATH_W) '$(srcdir)/makestrs.c'; fi`
++@am__fastdepCC_FALSE@ $(CC_FOR_BUILD) $(DEFS) $(makestrs_CFLAGS) -c -o makestrs-makestrs.obj `if test -f 'makestrs.c'; then $(CYGPATH_W) 'makestrs.c'; else $(CYGPATH_W) '$(srcdir)/makestrs.c'; fi`
+
+ mostlyclean-libtool:
+ -rm -f *.lo
diff --git a/x11-libs/libXt/libXt-1.0.5.ebuild b/x11-libs/libXt/libXt-1.0.5.ebuild
new file mode 100644
index 0000000..e49bc7c
--- /dev/null
+++ b/x11-libs/libXt/libXt-1.0.5.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/libXt/libXt-1.0.5.ebuild,v 1.12 2007/08/07 13:15:40 gustavoz Exp $
+
+# Must be before x-modular eclass is inherited
+# SNAPSHOT="yes"
+
+inherit x-modular flag-o-matic
+
+DESCRIPTION="X.Org Xt library"
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+
+RDEPEND="x11-libs/libX11
+ x11-libs/libSM
+ x11-proto/xproto
+ x11-proto/kbproto"
+DEPEND="${RDEPEND}"
+
+CONFIGURE_OPTIONS="--disable-install-makestrs"
+PATCHES="${FILESDIR}/crosscompile-configure.ac.patch"
+
+pkg_setup() {
+ # No such function yet
+ # x-modular_pkg_setup
+
+ # (#125465) Broken with Bdirect support
+ filter-flags -Wl,-Bdirect
+ filter-ldflags -Bdirect
+ filter-ldflags -Wl,-Bdirect
+}
+
+src_unpack() {
+ x-modular_src_unpack || die 'x-modular_src_unpack failed'
+ eautoreconf || die 'eautoreconf failed'
+ epatch "${FILESDIR}/crosscompile-makestrs.patch" || die 'epatch failed'
+}
diff --git a/x11-libs/tslib/Manifest b/x11-libs/tslib/Manifest
new file mode 100644
index 0000000..af2ca0e
--- /dev/null
+++ b/x11-libs/tslib/Manifest
@@ -0,0 +1,6 @@
+AUX tslib-1.0-UnknownEventType0.patch 272 RMD160 343925cc4c17a3660fc5b50735ddb58c83be451f SHA1 be1bf068009e08171f28b519a7e38800a4d912ba SHA256 d3102fcc61425c3845cbc5698a6e78967d2824a28781b22c24e91ddbc8d602b4
+AUX tslib-1.0-correct-libversion.patch 679 RMD160 9c0beb6189b99800d2374cd2ce0439041b28781a SHA1 2b03669009b4d01b61156f538b102dae08afc2d3 SHA256 605407dbfb3b8ef42e85319554286b0c2ea6d519dddc9140ef6f15fab71cd314
+DIST tslib-1.0-patches-1.tar.bz2 7541 RMD160 64f655a04a350cf78a504412e582574d6dacc7a6 SHA1 0b62c07291f9ef8795c703b14664e9f633f9ef44 SHA256 bd2198e1c3b20e0f7fa5a11e42177cb6b0dd7793045ab6994212ae1b0635093e
+DIST tslib-1.0.tar.bz2 47522 RMD160 3c32f6696af70fc099ad25c95d6157763d2b7412 SHA1 2008fcb9cca6a59fa268235cd335f5f6cbcda83d SHA256 9c40d914e4f6fe00bdd77137d671c7ce4f211686228f2eb8b2d3c2360bc249c8
+EBUILD tslib-1.0.ebuild 1574 RMD160 59729a5f83b5a7c9d46fcd447c2dc3dbde474279 SHA1 aa3268c401a2334137c5312903349c0db31b0fa0 SHA256 e8534534c052e6c2aa65d986675b9a7ca08468570aedfbe448adb1c21a770c00
+EBUILD tslib-9999.ebuild 890 RMD160 52ccb8967102d72d70b240a89b8bcb047243690d SHA1 b226e03cbf4ed15bf5a567623d4e020f61479050 SHA256 3d49d3176a44b376952566f52a8c2afff3b7ddcfe5a61ae8e79f498bb9914a8e
diff --git a/x11-libs/tslib/files/tslib-1.0-UnknownEventType0.patch b/x11-libs/tslib/files/tslib-1.0-UnknownEventType0.patch
new file mode 100644
index 0000000..f2b4db1
--- /dev/null
+++ b/x11-libs/tslib/files/tslib-1.0-UnknownEventType0.patch
@@ -0,0 +1,13 @@
+# Patch taken from Tuxxx
+--- plugins/input-raw.c 2006-08-24 23:02:54.000000000 +0200
++++ plugins/input-raw.c.new 2008-09-12 18:43:07.000000000 +0200
+@@ -62,8 +62,7 @@
+ return -1;
+ }
+
+- if (bit & (1 << EV_SYN))
+- i->using_syn = 1;
++ i->using_syn = 1;
+
+ return 0;
+ }
diff --git a/x11-libs/tslib/files/tslib-1.0-correct-libversion.patch b/x11-libs/tslib/files/tslib-1.0-correct-libversion.patch
new file mode 100644
index 0000000..09adb28
--- /dev/null
+++ b/x11-libs/tslib/files/tslib-1.0-correct-libversion.patch
@@ -0,0 +1,28 @@
+--- configure.ac 2008-11-09 21:10:40.000000000 +0100
++++ configure.ac.new 2008-11-09 21:12:18.000000000 +0100
+@@ -2,7 +2,7 @@
+ # Process this file with autoconf to produce a configure script.
+
+ AC_PREREQ(2.57)
+-AC_INIT(tslib, 0.0.2, kergoth@handhelds.org)
++AC_INIT(tslib, 1.0, kergoth@handhelds.org)
+ # AC_CONFIG_AUX_DIR(config)
+ AM_INIT_AUTOMAKE(dist-bzip2)
+ AC_CONFIG_SRCDIR([src/ts_close.c])
+@@ -43,7 +43,6 @@
+
+ # Checks for library functions.
+ AC_PROG_GCC_TRADITIONAL
+-AC_FUNC_MALLOC
+ AC_FUNC_MMAP
+ AC_FUNC_SELECT_ARGTYPES
+ AC_TYPE_SIGNAL
+@@ -193,7 +192,7 @@
+ AC_SUBST(TS_CONF)
+
+ # Library versioning
+-LT_RELEASE=0.0
++LT_RELEASE=1.0
+ LT_CURRENT=1
+ LT_REVISION=1
+ LT_AGE=1
diff --git a/x11-libs/tslib/tslib-1.0.ebuild b/x11-libs/tslib/tslib-1.0.ebuild
new file mode 100644
index 0000000..63134f2
--- /dev/null
+++ b/x11-libs/tslib/tslib-1.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 2008-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/tslib/tslib-1.0.ebuild,v 1.3 2008/10/26 17:31:57 solar Exp $
+
+inherit eutils toolchain-funcs autotools
+
+DESCRIPTION="Touchscreen Access Library"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE=""
+#extras arctic2 collie corgi h3600 linear-h2200 mk712 ucb1x00"
+DEPEND=""
+RDEPEND=""
+HOMEPAGE="http://tslib.berlios.de/"
+SRC_URI="mirror://gentoo/${PN}-${PV}-patches-1.tar.bz2 mirror://berlios/${PN}/${PN}-${PV}.tar.bz2"
+SLOT="0"
+LICENSE="LGPL-2"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # patches come from buildroot + openembedded + suse
+ epatch "${WORKDIR}"/patches/*.patch
+
+ # correct the version for tslib and disable the check for
+ # the malloc function to compile for Openmoko Freerunner
+ epatch "${FILESDIR}"/tslib-1.0-correct-libversion.patch
+
+ # get rid of the nasty 'Unknown event type 0' message
+ epatch "${FILESDIR}"/tslib-1.0-UnknownEventType0.patch
+
+ eautoreconf
+}
+
+src_compile() {
+ # compile everything. INSTALL_MASK= what you don't want.
+ econf --enable-linear --enable-dejitter \
+ --enable-variance --enable-pthres \
+ --enable-input --enable-shared \
+ --enable-arctic2 --enable-collie \
+ --enable-corgi --enable-h3600 \
+ --enable-linear-h2200 --enable-mk712 \
+ --enable-ucb1x00 --disable-debug || die "Configure failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS NEWS README
+}
diff --git a/x11-libs/tslib/tslib-9999.ebuild b/x11-libs/tslib/tslib-9999.ebuild
new file mode 100644
index 0000000..41ae299
--- /dev/null
+++ b/x11-libs/tslib/tslib-9999.ebuild
@@ -0,0 +1,35 @@
+# Copyright 2008-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/tslib/tslib-1.0.ebuild,v 1.3 2008/10/26 17:31:57 solar Exp $
+
+inherit eutils toolchain-funcs autotools subversion
+
+DESCRIPTION="Touchscreen Access Library"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE=""
+#extras arctic2 collie corgi h3600 linear-h2200 mk712 ucb1x00"
+DEPEND=""
+RDEPEND=""
+HOMEPAGE="http://tslib.berlios.de/"
+ESVN_REPO_URI="http://svn.berlios.de/svnroot/repos/tslib/trunk/${PN}"
+SLOT="0"
+LICENSE="LGPL-2"
+
+src_unpack() {
+ subversion_src_unpack
+
+ cd "${S}"
+
+ eautoreconf
+}
+
+src_compile() {
+ econf --disable-debug || die "Configure failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS NEWS README
+}