diff options
author | Marc-Antoine Perennou <Marc-Antoine@Perennou.com> | 2011-02-01 22:08:46 +0100 |
---|---|---|
committer | Marc-Antoine Perennou <Marc-Antoine@Perennou.com> | 2011-02-01 22:21:04 +0100 |
commit | 1423a0ff7a732a1582b0956cb75519b3bce48994 (patch) | |
tree | f8b8ea9b22195bc9c6b134df38517dbe35224321 /x11-libs | |
parent | update gnome-shell (diff) | |
download | keruspe-1423a0ff7a732a1582b0956cb75519b3bce48994.tar.gz keruspe-1423a0ff7a732a1582b0956cb75519b3bce48994.tar.bz2 keruspe-1423a0ff7a732a1582b0956cb75519b3bce48994.zip |
bump gtk+
Diffstat (limited to 'x11-libs')
-rw-r--r-- | x11-libs/gtk+/Manifest | 2 | ||||
-rw-r--r-- | x11-libs/gtk+/gtk+-2.99.3.ebuild | 158 |
2 files changed, 160 insertions, 0 deletions
diff --git a/x11-libs/gtk+/Manifest b/x11-libs/gtk+/Manifest new file mode 100644 index 00000000..2ef6a83d --- /dev/null +++ b/x11-libs/gtk+/Manifest @@ -0,0 +1,2 @@ +EBUILD gtk+-2.99.3.ebuild 4183 RMD160 f034923e7706ae85b0e240d36002ec59391a5e77 SHA1 9b0cc8053cc24d9f919e8d407e192750056183bc SHA256 834eaa994421da504df915bfca23f3988abd3f21cab74cf8f2554f404db3ec9c +DIST gtk+-2.99.3.tar.bz2 17179791 RMD160 9da7054bcf0dd554e79a918655fbe8b6091a9d63 SHA1 a8501bf81edb9f403847400860764bf2be0587bc SHA256 03dd37fd89fe0f0cea688cb077192b5ff95325b66d53d724c7511d36b6e90496 diff --git a/x11-libs/gtk+/gtk+-2.99.3.ebuild b/x11-libs/gtk+/gtk+-2.99.3.ebuild new file mode 100644 index 00000000..24878c7a --- /dev/null +++ b/x11-libs/gtk+/gtk+-2.99.3.ebuild @@ -0,0 +1,158 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="3" +PYTHON_DEPEND="2:2.4" +inherit eutils flag-o-matic gnome.org gnome2-utils libtool virtualx + +DESCRIPTION="Gimp ToolKit +" +HOMEPAGE="http://www.gtk.org/" + +LICENSE="LGPL-2" +SLOT="3" +IUSE="aqua cups debug doc examples +introspection jpeg jpeg2k tiff test vim-syntax xinerama" +KEYWORDS="~amd64 ~x86" + +RDEPEND="!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.10.0[X,svg] + >=x11-libs/gdk-pixbuf-2.21:2[X,introspection?,jpeg?,jpeg2k?,tiff?] + ) + aqua? ( + >=x11-libs/cairo-1.10.0[aqua,svg] + >=x11-libs/gdk-pixbuf-2.21:2[introspection?,jpeg?,jpeg2k?,tiff?] + ) + xinerama? ( x11-libs/libXinerama ) + >=dev-libs/glib-2.27.5 + >=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.10.0 ) + x11-libs/gtk+:2 + !<gnome-base/gail-1000" +DEPEND="${RDEPEND} + >=dev-util/pkgconfig-0.9 + !aqua? ( + x11-proto/xextproto + x11-proto/xproto + x11-proto/inputproto + x11-proto/damageproto + ) + x86-interix? ( + sys-libs/itx-bind + ) + xinerama? ( x11-proto/xineramaproto ) + >=dev-util/gtk-doc-am-1.11 + doc? ( + >=dev-util/gtk-doc-1.11 + ~app-text/docbook-xml-dtd-4.1.2 ) + test? ( + media-fonts/font-misc-misc + media-fonts/font-cursor-misc )" +PDEPEND="vim-syntax? ( app-vim/gtk-syntax )" + +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." +} + +src_prepare() { + replace-flags -O3 -O2 + strip-flags + + sed 's:\(g_test_add_func ("/ui-tests/keys-events.*\):/*\1*/:g' \ + -i gtk/tests/testing.c || die "sed 1 failed" + sed '\%/recent-manager/add%,/recent_manager_purge/ d' \ + -i gtk/tests/recentmanager.c || die "sed 2 failed" + + if use x86-interix; then + append-flags "-I${EPREFIX}/usr/include/bind" + append-ldflags "-L${EPREFIX}/usr/lib/bind" + fi + + if ! use test; then + strip_builddir SRC_SUBDIRS tests Makefile.am Makefile.in + fi + + if ! use examples; then + strip_builddir SRC_SUBDIRS demos Makefile.am Makefile.in + fi + + gnome2_src_prepare +} + +src_configure() { + local myconf="$(use_enable doc gtk-doc) + $(use_enable xinerama) + $(use_enable cups cups auto) + $(use_enable introspection) + --disable-packagekit + --disable-papi" + + if use aqua; then + myconf="${myconf} --enable-quartz-backend --disable-xinput" + else + myconf="${myconf} --enable-x11-backend --enable-xinput" + fi + + use debug && myconf="${myconf} --enable-debug=yes" + econf --libdir="${EPREFIX}/usr/$(get_libdir)" ${myconf} +} + +src_test() { + unset DBUS_SESSION_BUS_ADDRESS + XDG_DATA_HOME="${T}" HOME="${T}" Xemake check || die "tests failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "Installation failed" + echo 'gtk-fallback-icon-theme = "gnome"' > "${T}/gtkrc" + insinto /etc/gtk-3.0 + doins "${T}"/gtkrc || die "doins gtkrc failed" + echo "GDK_USE_XFT=1" > "${T}"/50gtk3 + doenvd "${T}"/50gtk3 || die "doenvd failed" + dodoc AUTHORS ChangeLog* HACKING NEWS* README* || die "dodoc failed" + find "${ED}" -name "*.la" -delete + use aqua && for i in gtk+-3.0.pc gtk+-quartz-3.0.pc gtk+-unix-print-3.0.pc; do + sed -i -e "s:Libs\: :Libs\: -framework Carbon :" "${ED}"usr/$(get_libdir)/pkgconfig/$i || die "sed failed" + done + rm -fv "${ED}"/usr/bin/gtk-{builder-convert,update-icon-cache} +} + +pkg_preinst() { + gnome2_schemas_savelist +} + +pkg_postinst() { + gnome2_schemas_update + + local GTK3_MODDIR="${EROOT}usr/$(get_libdir)/gtk-3.0/3.0.0" + gtk-query-immodules-3.0 > "${GTK3_MODDIR}/immodules.cache" \ + || ewarn "Failed to run gtk-query-immodules-3.0" + + 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 +} + +pkg_postrm() { + gnome2_schemas_update --uninstall +} |