diff options
Diffstat (limited to 'x11-libs/gtk+/gtk+-3.8.7-r1.ebuild')
-rw-r--r-- | x11-libs/gtk+/gtk+-3.8.7-r1.ebuild | 90 |
1 files changed, 51 insertions, 39 deletions
diff --git a/x11-libs/gtk+/gtk+-3.8.7-r1.ebuild b/x11-libs/gtk+/gtk+-3.8.7-r1.ebuild index 261b374..9dadc57 100644 --- a/x11-libs/gtk+/gtk+-3.8.7-r1.ebuild +++ b/x11-libs/gtk+/gtk+-3.8.7-r1.ebuild @@ -3,7 +3,7 @@ # $Header: $ EAPI="5" -inherit eutils flag-o-matic gnome.org gnome2-utils multilib virtualx +inherit eutils flag-o-matic gnome.org gnome2-multilib virtualx DESCRIPTION="Gimp ToolKit +" HOMEPAGE="http://www.gtk.org/" @@ -20,7 +20,7 @@ REQUIRED_USE=" || ( aqua wayland X ) xinerama? ( X )" -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 ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +KEYWORDS="~amd64" # FIXME: introspection data is built against system installation of gtk+:3 # NOTE: cairo[svg] dep is due to bug 291283 (not patched to avoid eautoreconf) @@ -28,47 +28,47 @@ KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc x86 ~amd64-f # at-spi2-atk dependency needed due https://mail.gnome.org/archives/desktop-devel-list/2012-June/msg00035.html COMMON_DEPEND=" X? ( - >=app-accessibility/at-spi2-atk-2.5.3 - x11-libs/libXrender - x11-libs/libX11 - >=x11-libs/libXi-1.3 - x11-libs/libXext - >=x11-libs/libXrandr-1.3 - x11-libs/libXcursor - x11-libs/libXfixes - x11-libs/libXcomposite - x11-libs/libXdamage - xinerama? ( x11-libs/libXinerama ) + >=app-accessibility/at-spi2-atk-2.5.3[${MULTILIB_USEDEP}] + x11-libs/libXrender[${MULTILIB_USEDEP}] + x11-libs/libX11[${MULTILIB_USEDEP}] + >=x11-libs/libXi-1.3[${MULTILIB_USEDEP}] + x11-libs/libXext[${MULTILIB_USEDEP}] + >=x11-libs/libXrandr-1.3[${MULTILIB_USEDEP}] + x11-libs/libXcursor[${MULTILIB_USEDEP}] + x11-libs/libXfixes[${MULTILIB_USEDEP}] + x11-libs/libXcomposite[${MULTILIB_USEDEP}] + x11-libs/libXdamage[${MULTILIB_USEDEP}] + xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] ) ) wayland? ( - >=dev-libs/wayland-1.0 - media-libs/mesa[wayland] - >=x11-libs/libxkbcommon-0.2 + >=dev-libs/wayland-1.0[${MULTILIB_USEDEP}] + media-libs/mesa[wayland,${MULTILIB_USEDEP}] + >=x11-libs/libxkbcommon-0.2[${MULTILIB_USEDEP}] ) - >=dev-libs/glib-2.35.3:2 - >=x11-libs/pango-1.32.4[introspection?] - >=dev-libs/atk-2.7.5[introspection?] - >=x11-libs/cairo-1.10.0[aqua?,glib,svg,X?] - >=x11-libs/gdk-pixbuf-2.27.1:2[introspection?,X?] - >=x11-libs/gtk+-2.24:2 - media-libs/fontconfig + >=dev-libs/glib-2.35.3:2[${MULTILIB_USEDEP}] + >=x11-libs/pango-1.32.4[introspection?,${MULTILIB_USEDEP}] + >=dev-libs/atk-2.7.5[introspection?,${MULTILIB_USEDEP}] + >=x11-libs/cairo-1.10.0[aqua?,glib,svg,X?,${MULTILIB_USEDEP}] + >=x11-libs/gdk-pixbuf-2.27.1:2[introspection?,X?,${MULTILIB_USEDEP}] + >=x11-libs/gtk+-2.24:2[${MULTILIB_USEDEP}] + media-libs/fontconfig[${MULTILIB_USEDEP}] x11-misc/shared-mime-info - colord? ( >=x11-misc/colord-0.1.9 ) - cups? ( >=net-print/cups-1.2 ) - introspection? ( >=dev-libs/gobject-introspection-1.32 ) + colord? ( >=x11-misc/colord-0.1.9[${MULTILIB_USEDEP}] ) + cups? ( >=net-print/cups-1.2[${MULTILIB_USEDEP}] ) + introspection? ( >=dev-libs/gobject-introspection-1.32[${MULTILIB_USEDEP}] ) " DEPEND="${COMMON_DEPEND} app-text/docbook-xsl-stylesheets app-text/docbook-xml-dtd:4.1.2 - dev-libs/libxslt + dev-libs/libxslt[${MULTILIB_USEDEP}] dev-util/gdbus-codegen virtual/pkgconfig X? ( - x11-proto/xextproto - x11-proto/xproto - x11-proto/inputproto - x11-proto/damageproto - xinerama? ( x11-proto/xineramaproto ) + x11-proto/xextproto[${MULTILIB_USEDEP}] + x11-proto/xproto[${MULTILIB_USEDEP}] + x11-proto/inputproto[${MULTILIB_USEDEP}] + x11-proto/damageproto[${MULTILIB_USEDEP}] + xinerama? ( x11-proto/xineramaproto[${MULTILIB_USEDEP}] ) ) >=dev-util/gtk-doc-am-1.11 test? ( @@ -87,6 +87,10 @@ RDEPEND="${COMMON_DEPEND} " PDEPEND="vim-syntax? ( app-vim/gtk-syntax )" +MULTILIB_WRAPPED_EXECUTABLES=( + /usr/bin/gtk-query-immodules-3.0 +) + strip_builddir() { local rule=$1 shift @@ -149,7 +153,7 @@ src_configure() { # Passing --disable-debug is not recommended for production use # need libdir here to avoid a double slash in a path that libtool doesn't # grok so well during install (// between $EPREFIX and usr ...) - econf \ + gnome2-multilib_src_configure \ $(use_enable aqua quartz-backend) \ $(use_enable colord) \ $(use_enable cups cups auto) \ @@ -169,10 +173,11 @@ src_configure() { --enable-man \ --enable-gtk2-dependency \ --with-xml-catalog="${EPREFIX}"/etc/xml/catalog \ - --libdir="${EPREFIX}/usr/$(get_libdir)" + --libdir="${EPREFIX}"/usr/@GET_LIBDIR@ } -src_test() { +ehook gnome2-multilib-per-abi-pre_src_test my_abi_pre_test +my_abi_pre_test() { # Tests require a new gnome-themes-standard, but adding it to DEPEND # would result in circular dependencies. # https://bugzilla.gnome.org/show_bug.cgi?id=669562 @@ -180,23 +185,26 @@ src_test() { ewarn "Tests will be skipped because >=gnome-themes-standard-3.6[gtk]" ewarn "is not installed. Please re-run tests after installing the" ewarn "required version of gnome-themes-standard." - return 0 + return 1 fi unset DBUS_SESSION_BUS_ADDRESS Xemake check + return 1 } -src_install() { - emake DESTDIR="${D}" install - +ehook gnome2-multilib-global-post_src_install my_global_post_install +my_global_post_install() { insinto /etc/gtk-3.0 doins "${FILESDIR}"/settings.ini dodoc AUTHORS ChangeLog* HACKING NEWS* README* prune_libtool_files --modules +} +ehook gnome2-multilib-per-abi-post_src_install my_per_abi_post_install +my_per_abi_post_install() { # add -framework Carbon to the .pc files 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" @@ -210,6 +218,10 @@ pkg_preinst() { pkg_postinst() { gnome2_schemas_update + multilib_foreach_abi abi_pkg_postinst +} + +abi_pkg_postinst() { 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" |