diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2013-12-03 15:34:24 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2013-12-03 15:34:24 -0500 |
commit | ad5a0aeecaae4c348447385e4160e15fb71ec213 (patch) | |
tree | 16ea8f8a7e1c7a7aae8b2e3f8b02889a0c7ebd2c | |
parent | app-arch/tar: remove DEPEND="xattr? ( sys-apps/attr )" (diff) | |
download | hardened-dev-ad5a0aeecaae4c348447385e4160e15fb71ec213.tar.gz hardened-dev-ad5a0aeecaae4c348447385e4160e15fb71ec213.tar.bz2 hardened-dev-ad5a0aeecaae4c348447385e4160e15fb71ec213.zip |
dev-libs/gobject-introspection: clang patch breaks on uclibc
Package-Manager: portage-2.2.7
RepoMan-Options: --force
Manifest-Sign-Key: 0xF52D4BBA
4 files changed, 142 insertions, 0 deletions
diff --git a/dev-libs/gobject-introspection/Manifest b/dev-libs/gobject-introspection/Manifest new file mode 100644 index 00000000..2fa0c0a0 --- /dev/null +++ b/dev-libs/gobject-introspection/Manifest @@ -0,0 +1,24 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX gobject-introspection-1.36.0-detect-clang.patch 1071 SHA256 e6a40063c9a72e15c3d3b10cd3070e7347d63f40c198df364d2c9b344575de46 SHA512 78162aeca8cbd3d149941a93d3df48106b4c77c7de7c7031ced23cbf7443115f3b17e6593e40242d87b58036689aa249fad8dfafb9c85f9070a664b744c8cb8e WHIRLPOOL d39f7eea5ae6359ab427a205b1ed9594f539d1d406734a627d5d48316ad4c42f3daa53c9a63dc0c074786e07b2c551d65da42f400556740838679c3e622ca1c8 +DIST gobject-introspection-1.36.0.tar.xz 1201108 SHA256 e3e76d9d428e7534761bf8cdf75338865a4b0872e8052bef51792744608b6383 SHA512 5c6d17851ac7d1372abdc6a9ced44d1c2313b098e6fdfbe7cba78bff66032923fccddb58913753f46e1d7fea09536bb057ea2ff7203d5f4f7540badd830eaa83 WHIRLPOOL 1f31a314a9056f2f452e59808ba143f5e387f1c7c82ddb0e3f20295592850995f602a2a82b36602b7089cddb192896d918db02190e411710d8806dbdebc77f4c +EBUILD gobject-introspection-1.36.0-r99.ebuild 2396 SHA256 efc3db5c3762dd19499fcadac63dbb120a0f2c5a14b580d2b3d812ada3fd939d SHA512 5b9bba6de1678fc93de2b61d7da6abe923ec2c6bbb9b40c61f5fb75cc5aa5cdb4d645690c218fabffd09c1bd0d21a2af91fcd8936c1a1a900f4d0060082321f4 WHIRLPOOL cc16a3fd71e9742d2b2a24bb38eb8471f26d1aa6d1b3a9e4aa135b964aed852ecc77555891d56b1579fa0ce5e8cc1888dd2972139ed7aa5077e32b3fc3db1b84 +MISC metadata.xml 276 SHA256 64896ff5d165a9a750f5e13dfb6ae8ab203c9c5ecf1fe95f5828dca418652cb3 SHA512 69c30c46828ec7f02fde73973d64e48042242a42f7c354fe37297df0653552eed04fac21cabbe385efa9e0d348f70e718afdf328ebdcd203a109761b4b89f99e WHIRLPOOL c527df37fc6657961892dd27b52b8597a54f11f9da01e3acbe7cad6ebaaa6d41364e49bb1635ab5c5e354a8a56e11eae49eff1f394be934cda9322204de4e282 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.22 (GNU/Linux) + +iQIcBAEBCAAGBQJSnkBQAAoJEJOE+m71LUu6e58P/0rW7yMTCYEAM6SDD+glr1vc +c7nRuYh//WoDD3n6aOJ4SUrn2sXKi7Gx6n75RuzDruuNFewCXWQrqgxpBwTzeXXh +V0vDC2Syw+czH2BNn/sAcqAB666RbN/LI7d/e+XmlDMLTk7zmclYyOs16rra0qXc +b0Sv/bk3r0zvdT22SWa9kceqM2qOhIq5bCiMCsD2znqBeqOusqVvYTIt4nOMSZGw +Vbjnu6nN6pitdpQK4XqtBvVvzvR7e+7ZNsZ0GdrCzDP4b1Eu8G6hUHyQT75S9dLp +UgjivXm2fg/UwtWAOOwhMzakl6YqNYDsztH20s5Q5/Zrz+2OMUoKO6RLHFE8yw2C +PRdQ6LAL2CQ5ue0k3qRsgGZkpTCR1fxhKjvgv0ZGOlcfCgwXJFgqzPsgJw49MJ2v +gPKatKhQHXs24IQfjZAzHj+tY7q6zeHcezsnkLyMOXoQgAK9UxlaXzWtz9Gh5k0G +NJ9Ls6EN/UmY2isLbYjKRjsDQI96XcIHBL4JNoGYA5AS7GSDOz3VtrRV048bxPdG +wKZOiQ5msg6vp9B74n0UYGj1+2f8FlHXsa0fF5MFprSC1HkqjbrTCKKjrwHOON5G +IpkKeWnK8GCJbVHgchKZHIz9X0UmDixn++sUAq70P2/HWSgGd9OftiwU85rqL8Xa +tvILnbBSXdVOn92Cn1yY +=RDm3 +-----END PGP SIGNATURE----- diff --git a/dev-libs/gobject-introspection/files/gobject-introspection-1.36.0-detect-clang.patch b/dev-libs/gobject-introspection/files/gobject-introspection-1.36.0-detect-clang.patch new file mode 100644 index 00000000..d89b4ed7 --- /dev/null +++ b/dev-libs/gobject-introspection/files/gobject-introspection-1.36.0-detect-clang.patch @@ -0,0 +1,27 @@ +From 863ceb7f5a5b5f6accfea23dcd47b5c74a53f68b Mon Sep 17 00:00:00 2001 +From: Emmanuele Bassi <ebassi@gnome.org> +Date: Thu, 02 May 2013 01:49:01 +0000 +Subject: Do not misdetect clang as the Microsoft C compiler + +Just because they both start with 'cl'. + +https://bugzilla.gnome.org/show_bug.cgi?id=698090 +--- +diff --git a/giscanner/dumper.py b/giscanner/dumper.py +index f5346a4..1ef1f4b 100644 +--- a/giscanner/dumper.py ++++ b/giscanner/dumper.py +@@ -89,8 +89,9 @@ class DumpCompiler(object): + # Enable the --msvc-syntax pkg-config flag when + # the Microsoft compiler is used + # (This is the other way to check whether Visual C++ is used subsequently) +- if 'cl' in self._compiler_cmd: +- self._pkgconfig_msvc_flags = '--msvc-syntax' ++ if 'clang' not in self._compiler_cmd: ++ if 'cl' in self._compiler_cmd: ++ self._pkgconfig_msvc_flags = '' + self._uninst_srcdir = os.environ.get( + 'UNINSTALLED_INTROSPECTION_SRCDIR') + self._packages = ['gio-2.0 gmodule-2.0'] +-- +cgit v0.9.2 diff --git a/dev-libs/gobject-introspection/gobject-introspection-1.36.0-r99.ebuild b/dev-libs/gobject-introspection/gobject-introspection-1.36.0-r99.ebuild new file mode 100644 index 00000000..c0a6c5a3 --- /dev/null +++ b/dev-libs/gobject-introspection/gobject-introspection-1.36.0-r99.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/gobject-introspection/gobject-introspection-1.36.0-r1.ebuild,v 1.2 2013/11/30 18:48:21 pacho Exp $ + +EAPI="5" +GCONF_DEBUG="no" +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="xml" + +inherit eutils gnome2 python-single-r1 toolchain-funcs + +DESCRIPTION="Introspection infrastructure for generating gobject library bindings for various languages" +HOMEPAGE="http://live.gnome.org/GObjectIntrospection/" + +LICENSE="LGPL-2+ GPL-2+" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +IUSE="cairo doctool test" +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + test? ( cairo ) +" + +RDEPEND=" + >=dev-libs/gobject-introspection-common-${PV} + >=dev-libs/glib-2.36:2 + doctool? ( dev-python/mako ) + virtual/libffi:= + !<dev-lang/vala-0.20.0 +" +# Wants real bison, not virtual/yacc +DEPEND="${RDEPEND} + >=dev-util/gtk-doc-am-1.15 + sys-devel/bison + sys-devel/flex + virtual/pkgconfig +" +# PDEPEND to avoid circular dependencies, bug #391213 +PDEPEND="cairo? ( x11-libs/cairo[glib] )" + +pkg_setup() { + python-single-r1_pkg_setup +} + +src_prepare() { + # Do not misdetect clang as the Microsoft C compiler (from 'master) + epatch "${FILESDIR}/${PN}-1.36.0-detect-clang.patch" + + # To prevent crosscompiling problems, bug #414105 + CC=$(tc-getCC) + + DOCS="AUTHORS CONTRIBUTORS ChangeLog NEWS README TODO" + gnome2_src_prepare + + # avoid GNU-isms + sed -i -e 's/\(if test .* \)==/\1=/' configure || die + + if ! has_version "x11-libs/cairo[glib]"; then + # Bug #391213: enable cairo-gobject support even if it's not installed + # We only PDEPEND on cairo to avoid circular dependencies + export CAIRO_LIBS="-lcairo -lcairo-gobject" + export CAIRO_CFLAGS="-I${EPREFIX}/usr/include/cairo" + fi +} + +src_configure(){ + gnome2_src_configure \ + --disable-static \ + YACC=$(type -p yacc) \ + $(use_with cairo) \ + $(use_enable doctool) +} + +src_install() { + gnome2_src_install + + # Prevent collision with gobject-introspection-common + rm -v "${ED}"usr/share/aclocal/introspection.m4 \ + "${ED}"usr/share/gobject-introspection-1.0/Makefile.introspection || die + rmdir "${ED}"usr/share/aclocal || die +} diff --git a/dev-libs/gobject-introspection/metadata.xml b/dev-libs/gobject-introspection/metadata.xml new file mode 100644 index 00000000..d1585c3f --- /dev/null +++ b/dev-libs/gobject-introspection/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>gnome</herd> +<use> + <flag name="doctool">Install g-ir-doc-tool for generating documentation + from introspected data</flag> +</use> +</pkgmetadata> |