summaryrefslogtreecommitdiff
path: root/dev-libs/gobject-introspection
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/gobject-introspection')
-rw-r--r--dev-libs/gobject-introspection/Manifest2
-rw-r--r--dev-libs/gobject-introspection/files/disable_python.patch33
-rw-r--r--dev-libs/gobject-introspection/gobject-introspection-1.38.0-r1.ebuild103
-rw-r--r--dev-libs/gobject-introspection/gobject-introspection-1.40.0.ebuild104
4 files changed, 242 insertions, 0 deletions
diff --git a/dev-libs/gobject-introspection/Manifest b/dev-libs/gobject-introspection/Manifest
new file mode 100644
index 00000000..84a25628
--- /dev/null
+++ b/dev-libs/gobject-introspection/Manifest
@@ -0,0 +1,2 @@
+DIST gobject-introspection-1.38.0.tar.xz 1226324 SHA256 3575e5d353c17a567fdf7ffaaa7aebe9347b5b0eee8e69d612ba56a9def67d73 SHA512 2eeafbb09484988c8489757232233aa9bf5cefecf7f80ed940867cf721e271644f7e94d8ae3b18717340ba3af1c208701c4766b1113af03972311517fda10e8f WHIRLPOOL 7dbab4e983095a12d6711236cd198473a326b100c67958693edf4a236cab6a922234b0e809d171fac1a2c860e29f7775f74a70589c1e1a124c137769ddd540e0
+DIST gobject-introspection-1.40.0.tar.xz 1286424 SHA256 96ea75e9679083e7fe39a105e810e2ead2d708abf189a5ba420bfccfffa24e98 SHA512 d6cc91be018d812f1b04281bc322b8809c2cc12e5e16adf8b826a82505315ec140ce2b823c107ed98c6dced8f62afb6071eed2702a9e76b0e8e73ad193824c04 WHIRLPOOL b5ab2bb221816802cd3d1d3aedcb6b9b5ea9f516b51b4a3a892de1098d834c78cf94aa3e552dc58f0d2530c032e9ba08b41c24b31992afc4493ac3f0bfdc2f78
diff --git a/dev-libs/gobject-introspection/files/disable_python.patch b/dev-libs/gobject-introspection/files/disable_python.patch
new file mode 100644
index 00000000..aec1394c
--- /dev/null
+++ b/dev-libs/gobject-introspection/files/disable_python.patch
@@ -0,0 +1,33 @@
+--- configure.ac_orig 2013-03-23 12:21:11.907228112 +0100
++++ configure.ac 2013-03-23 12:21:53.982820539 +0100
+@@ -259,18 +259,18 @@
+ AC_CHECK_FUNCS([backtrace backtrace_symbols])
+
+ # Python
+-AM_PATH_PYTHON([2.6])
+-case "$host" in
+-*-*-mingw*)
+- # Change backslashes to forward slashes in pyexecdir to avoid
+- # quoting issues
+- pyexecdir=`echo $pyexecdir | tr '\\\\' '/'`
+- ;;
+-esac
+-AM_CHECK_PYTHON_HEADERS(, AC_MSG_ERROR([Python headers not found]))
+-if test "x$os_win32" = "xyes"; then
+- AM_CHECK_PYTHON_LIBS(, AC_MSG_ERROR([Python libs not found. Windows requires Python modules to be explicitly linked to libpython.]))
+-fi
++#AM_PATH_PYTHON([2.6])
++#case "$host" in
++#*-*-mingw*)
++# # Change backslashes to forward slashes in pyexecdir to avoid
++# # quoting issues
++# pyexecdir=`echo $pyexecdir | tr '\\\\' '/'`
++# ;;
++#esac
++#AM_CHECK_PYTHON_HEADERS(, AC_MSG_ERROR([Python headers not found]))
++#if test "x$os_win32" = "xyes"; then
++# AM_CHECK_PYTHON_LIBS(, AC_MSG_ERROR([Python libs not found. Windows requires Python modules to be explicitly linked to libpython.]))
++#fi
+
+ dnl Not enabled by default until 3.6 cycle when we can propose mako as
+ dnl an external dependency
diff --git a/dev-libs/gobject-introspection/gobject-introspection-1.38.0-r1.ebuild b/dev-libs/gobject-introspection/gobject-introspection-1.38.0-r1.ebuild
new file mode 100644
index 00000000..5823899e
--- /dev/null
+++ b/dev-libs/gobject-introspection/gobject-introspection-1.38.0-r1.ebuild
@@ -0,0 +1,103 @@
+# 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.ebuild,v 1.5 2013/07/27 17:12:33 eva Exp $
+
+EAPI="5"
+GCONF_DEBUG="no"
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="xml"
+
+inherit eutils gnome2 python-single-r1 toolchain-funcs autotools multilib-minimal
+
+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="test? ( cairo )"
+
+RDEPEND="
+ >=dev-libs/gobject-introspection-common-${PV}
+ >=dev-libs/glib-2.36:2[${MULTILIB_USEDEP}]
+ doctool? ( dev-python/mako )
+ virtual/libffi:=[${MULTILIB_USEDEP}]
+"
+# Wants real bison, not virtual/yacc
+DEPEND="${RDEPEND}
+ >=dev-util/gtk-doc-am-1.15
+ sys-devel/bison
+ sys-devel/flex
+ virtual/pkgconfig
+ x11-proto/xproto[${MULTILIB_USEDEP}]
+"
+# PDEPEND to avoid circular dependencies, bug #391213
+PDEPEND="cairo? ( x11-libs/cairo[glib,${MULTILIB_USEDEP}] )"
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+disable_python_for_x86() {
+ # x86 build on AMD64 fails due to missing 32bit python. We just remove the
+ # Python parts and those that depend on it as they are not required.
+ if use amd64 && [ "$ABI" == "x86" ]; then
+ cd ${BUILD_DIR}
+
+ # disable configure checks
+ epatch ${FILESDIR}/disable_python.patch
+
+ # disable python bindings
+ sed -i "s/include Makefile-giscanner.am//" Makefile.am || die "sed failed"
+
+ # disable stuff that doesn't get installed anyways
+ sed -i "s/include Makefile-tools.am//" Makefile.am || die "sed failed"
+ sed -i "s/include Makefile-gir.am//" Makefile.am || die "sed failed"
+
+ # disable tests
+ sed -i "s/SUBDIRS = . docs tests/SUBDIRS = . docs/" Makefile.am || die "sed failed"
+ eautoreconf
+ fi
+}
+
+src_prepare() {
+ # 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
+
+ multilib_copy_sources
+ multilib_foreach_abi disable_python_for_x86
+}
+
+multilib_src_configure(){
+ gnome2_src_configure \
+ --disable-static \
+ YACC=$(type -p yacc) \
+ $(use_with cairo) \
+ $(use_enable doctool)
+}
+
+multilib_src_install() {
+ gnome2_src_install
+}
+
+multilib_src_install_all() {
+ # 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/gobject-introspection-1.40.0.ebuild b/dev-libs/gobject-introspection/gobject-introspection-1.40.0.ebuild
new file mode 100644
index 00000000..84a6ee52
--- /dev/null
+++ b/dev-libs/gobject-introspection/gobject-introspection-1.40.0.ebuild
@@ -0,0 +1,104 @@
+# 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.ebuild,v 1.5 2013/07/27 17:12:33 eva Exp $
+
+EAPI="5"
+GCONF_DEBUG="no"
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="xml"
+
+inherit eutils gnome2 python-single-r1 toolchain-funcs autotools multilib-minimal
+
+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="test? ( cairo )"
+
+RDEPEND="
+ >=dev-libs/gobject-introspection-common-${PV}
+ >=dev-libs/glib-2.36:2[${MULTILIB_USEDEP}]
+ doctool? ( dev-python/mako )
+ virtual/libffi:=[${MULTILIB_USEDEP}]
+ !<dev-lang/vala-0.20.0
+"
+# Wants real bison, not virtual/yacc
+DEPEND="${RDEPEND}
+ >=dev-util/gtk-doc-am-1.19
+ sys-devel/bison
+ sys-devel/flex
+ virtual/pkgconfig
+ x11-proto/xproto[${MULTILIB_USEDEP}]
+"
+# PDEPEND to avoid circular dependencies, bug #391213
+PDEPEND="cairo? ( x11-libs/cairo[glib,${MULTILIB_USEDEP}] )"
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+disable_python_for_x86() {
+ # x86 build on AMD64 fails due to missing 32bit python. We just remove the
+ # Python parts and those that depend on it as they are not required.
+ if use amd64 && [ "$ABI" == "x86" ]; then
+ cd ${BUILD_DIR}
+
+ # disable configure checks
+ epatch ${FILESDIR}/disable_python.patch
+
+ # disable python bindings
+ sed -i "s/include Makefile-giscanner.am//" Makefile.am || die "sed failed"
+
+ # disable stuff that doesn't get installed anyways
+ sed -i "s/include Makefile-tools.am//" Makefile.am || die "sed failed"
+ sed -i "s/include Makefile-gir.am//" Makefile.am || die "sed failed"
+
+ # disable tests
+ sed -i "s/SUBDIRS = . docs tests/SUBDIRS = . docs/" Makefile.am || die "sed failed"
+ eautoreconf
+ fi
+}
+
+src_prepare() {
+ # 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
+
+ multilib_copy_sources
+ multilib_foreach_abi disable_python_for_x86
+}
+
+multilib_src_configure(){
+ gnome2_src_configure \
+ --disable-static \
+ YACC=$(type -p yacc) \
+ $(use_with cairo) \
+ $(use_enable doctool)
+}
+
+multilib_src_install() {
+ gnome2_src_install
+}
+
+multilib_src_install_all() {
+ # 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
+}