Add introspection support
authorArun Raghavan <ford_prefect@gentoo.org>
Sun, 20 Jun 2010 14:07:25 +0000 (14:07 +0000)
committerArun Raghavan <ford_prefect@gentoo.org>
Sun, 20 Jun 2010 14:07:25 +0000 (14:07 +0000)
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64

net-libs/libsoup-gnome/ChangeLog
net-libs/libsoup-gnome/files/libsoup-gnome-2.30.1-system-lib.patch
net-libs/libsoup-gnome/libsoup-gnome-2.30.1.ebuild
net-libs/libsoup-gnome/metadata.xml
net-libs/libsoup/ChangeLog
net-libs/libsoup/libsoup-2.30.1.ebuild
net-libs/libsoup/metadata.xml

index c13f5fdd05d4e22740f413007d7254b8146899ed..f0ca43b74a0bea5aa30a346867c5bd4f59dd8456 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for net-libs/libsoup-gnome
 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/libsoup-gnome/ChangeLog,v 1.26 2010/06/16 18:18:39 pacho Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libsoup-gnome/ChangeLog,v 1.27 2010/06/20 14:07:24 ford_prefect Exp $
+
+  20 Jun 2010; Arun Raghavan <ford_prefect@gentoo.org>
+  libsoup-gnome-2.30.1.ebuild, files/libsoup-gnome-2.30.1-system-lib.patch,
+  metadata.xml:
+  Add introspection support
 
   16 Jun 2010; Pacho Ramos <pacho@gentoo.org> libsoup-gnome-2.30.1.ebuild,
   +files/libsoup-gnome-2.30.1-system-lib.patch,
index 964b71048d26046556f9e4058449a073791f59bd..4e6cf178c916d03340f371754374a10f310a61d3 100644 (file)
@@ -1,17 +1,17 @@
-From 6ff741f0302bc0eddba20ed4445e68b6e71af594 Mon Sep 17 00:00:00 2001
-From: Priit Laes <plaes@plaes.org>
-Date: Tue, 23 Feb 2010 08:16:49 +0200
+From 97871504515f029f004d032572b9ded0da2d948e Mon Sep 17 00:00:00 2001
+From: Arun Raghavan <ford_prefect@gentoo.org>
+Date: Sun, 20 Jun 2010 18:15:01 +0530
 Subject: [PATCH] Split support for libgnome-soup.
 
 Original patch by Romain Perier.
 ---
  Makefile.am         |   13 ++++++++++---
  configure.ac        |   49 ++++++++++++++++++++++++++++++++-----------------
- libsoup/Makefile.am |   36 +++++++++++++++++++++++++++---------
- 3 files changed, 69 insertions(+), 29 deletions(-)
+ libsoup/Makefile.am |   49 +++++++++++++++++++++++++++++++++++++++----------
+ 3 files changed, 81 insertions(+), 30 deletions(-)
 
 diff --git a/Makefile.am b/Makefile.am
-index b845e29..21529dd 100644
+index 861daff..039fb80 100644
 --- a/Makefile.am
 +++ b/Makefile.am
 @@ -1,7 +1,12 @@
@@ -28,7 +28,7 @@ index b845e29..21529dd 100644
  
  EXTRA_DIST =                  \
        libsoup-2.4.pc.in       \
-@@ -13,8 +18,10 @@ DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
+@@ -14,8 +19,10 @@ DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-introspection
  
  pkgconfigdir = $(libdir)/pkgconfig
  
@@ -42,7 +42,7 @@ index b845e29..21529dd 100644
  pkgconfig_DATA += libsoup-gnome-2.4.pc
  endif
 diff --git a/configure.ac b/configure.ac
-index eb45cfc..a8cd7ed 100644
+index 275620d..d25875e 100644
 --- a/configure.ac
 +++ b/configure.ac
 @@ -72,6 +72,14 @@ dnl ***********************
@@ -56,7 +56,7 @@ index eb45cfc..a8cd7ed 100644
 +   [with_libsoup_system=$withval], [with_libsoup_system=no])
 +
 +if test "$with_libsoup_system" = "no"; then
-+  
++
  AM_PATH_GLIB_2_0(2.21.3,,,gobject gthread gio)
  if test "$GLIB_LIBS" = ""; then
     AC_MSG_ERROR(GLIB 2.21.3 or later is required to build libsoup)
@@ -125,16 +125,17 @@ index eb45cfc..a8cd7ed 100644
  [Could not find libproxy:
  
 diff --git a/libsoup/Makefile.am b/libsoup/Makefile.am
-index 284d85f..cfb89b4 100644
+index 2e7c1fb..306ee8f 100644
 --- a/libsoup/Makefile.am
 +++ b/libsoup/Makefile.am
-@@ -4,17 +4,17 @@ if OS_WIN32
+@@ -4,17 +4,18 @@ if OS_WIN32
  LIBWS2_32 = -lws2_32
  endif
  
 -INCLUDES =                            \
 +INCLUDES =
-+lib_LTLIBRARIES = 
++lib_LTLIBRARIES =
++CLEANFILES =
 +
 +if BUILD_LIBSOUP
 +INCLUDES +=                \
@@ -151,7 +152,16 @@ index 284d85f..cfb89b4 100644
        $(LIBGCRYPT_CFLAGS)             \
        $(LIBGNUTLS_CFLAGS)
  
-@@ -91,7 +91,7 @@ libsoupinclude_HEADERS =     \
+@@ -45,7 +46,7 @@ soup-enum-types.c: $(libsoupinclude_HEADERS)
+ 
+ BUILT_SOURCES = $(MARSHAL_GENERATED) $(MKENUMS_GENERATED)
+ 
+-CLEANFILES = $(MARSHAL_GENERATED) $(MKENUMS_GENERATED)
++CLEANFILES += $(MARSHAL_GENERATED) $(MKENUMS_GENERATED)
+ 
+ libsoupincludedir = $(includedir)/libsoup-2.4/libsoup
+ 
+@@ -91,7 +92,7 @@ libsoupinclude_HEADERS =     \
        $(soup_headers)         \
        soup-enum-types.h
  
@@ -160,7 +170,7 @@ index 284d85f..cfb89b4 100644
  
  libsoup_2_4_la_LDFLAGS =      \
        -version-info $(SOUP_CURRENT):$(SOUP_REVISION):$(SOUP_AGE) -no-undefined
-@@ -171,10 +171,18 @@ libsoup_2_4_la_SOURCES =         \
+@@ -171,10 +172,18 @@ libsoup_2_4_la_SOURCES =         \
        soup-value-utils.c              \
        soup-xmlrpc.c
  
@@ -179,7 +189,7 @@ index 284d85f..cfb89b4 100644
  libsoupgnomeinclude_HEADERS = \
        soup-cookie-jar-sqlite.h\
        soup-gnome.h            \
-@@ -182,16 +190,26 @@ libsoupgnomeinclude_HEADERS =    \
+@@ -182,16 +191,26 @@ libsoupgnomeinclude_HEADERS =    \
  
  lib_LTLIBRARIES += libsoup-gnome-2.4.la
  
@@ -208,13 +218,38 @@ index 284d85f..cfb89b4 100644
  libsoup_gnome_2_4_la_SOURCES =                \
        soup-cookie-jar-sqlite.c        \
        soup-gnome-features.c           \
-@@ -205,4 +223,4 @@ endif
- EXTRA_DIST=                           \
-       soup-marshal.list               \
-       soup-enum-types.h.tmpl          \
--      soup-enum-types.c.tmpl
-\ No newline at end of file
-+      soup-enum-types.c.tmpl
+@@ -212,6 +231,8 @@ INTROSPECTION_COMPILER_ARGS = --includedir=.
+ 
+ if HAVE_INTROSPECTION
+ 
++if BUILD_LIBSOUP
++
+ # Core library
+ gi_soup_files = \
+       $(filter-out soup.h soup-enum-types.% soup-marshal.%,\
+@@ -231,13 +252,21 @@ Soup_2_4_gir_FILES = \
+ 
+ INTROSPECTION_GIRS += Soup-2.4.gir
+ 
++endif
++
+ if BUILD_LIBSOUP_GNOME
+ 
++if BUILD_LIBSOUP
++SOUP_GIR = Soup-2.4.gir
++else
++SOUP_GIR =
++endif
++
+ # GNOME extensions
+ gi_soup_gnome_files = $(filter-out soup-gnome.h,\
+                         $(libsoupgnomeinclude_HEADERS) \
+                         $(libsoup_gnome_2_4_la_SOURCES))
+-SoupGNOME-2.4.gir: libsoup-gnome-2.4.la Soup-2.4.gir
++SoupGNOME-2.4.gir: libsoup-gnome-2.4.la $(SOUP_GIR)
+ SoupGNOME_2_4_gir_SCANNERFLAGS = --strip-prefix=soup
+ SoupGNOME_2_4_gir_INCLUDES = Soup-2.4
+ SoupGNOME_2_4_gir_CFLAGS = $(INCLUDES)
 -- 
-1.7.0
+1.7.1
 
index edbd06e2fe101c16476223e1433e0bf99e17d7f2..fccd32e043ec43d37979a22daf2516c8961c7dcd 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2010 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/libsoup-gnome/libsoup-gnome-2.30.1.ebuild,v 1.3 2010/06/16 18:18:39 pacho Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libsoup-gnome/libsoup-gnome-2.30.1.ebuild,v 1.4 2010/06/20 14:07:24 ford_prefect Exp $
 
 EAPI="2"
 
@@ -11,19 +11,21 @@ MY_P=${MY_PN}-${PV}
 
 DESCRIPTION="GNOME plugin for libsoup"
 HOMEPAGE="http://www.gnome.org/"
-SRC_URI="${SRC_URI//-gnome}"
+SRC_URI="${SRC_URI//-gnome}
+       mirror://gentoo/${MY_P}-build-gir-patches.tar.bz2"
 
 LICENSE="LGPL-2"
 SLOT="2.4"
 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-solaris"
 # Do NOT build with --disable-debug/--enable-debug=no - gnome2.eclass takes care of that
-IUSE="debug doc"
+IUSE="debug doc +introspection"
 
 RDEPEND="~net-libs/libsoup-${PV}
        || ( gnome-base/libgnome-keyring <gnome-base/gnome-keyring-2.29.4 )
        net-libs/libproxy
        >=gnome-base/gconf-2
-       dev-db/sqlite:3"
+       dev-db/sqlite:3
+       introspection? ( >=dev-libs/gobject-introspection-0.6.7 )"
 DEPEND="${RDEPEND}
        >=dev-util/pkgconfig-0.9
        dev-util/gtk-doc-am
@@ -36,6 +38,7 @@ DOCS="AUTHORS NEWS README"
 pkg_setup() {
        G2CONF="${G2CONF}
                --disable-static
+               $(use_enable introspection)
                --with-libsoup-system
                --with-gnome"
 }
@@ -46,6 +49,11 @@ src_prepare() {
        # No patch to prevent having to eautoreconf
        sed -e 's/\(test.*\)==/\1=/g' -i configure.ac configure || die "sed failed"
 
+       if use introspection; then
+               epatch "${WORKDIR}/${MY_P}-build-gir-1.patch"
+               epatch "${WORKDIR}/${MY_P}-build-gir-2.patch"
+       fi
+
        # Use lib present on the system
        epatch "${FILESDIR}"/${PN}-2.30.1-system-lib.patch
        eautoreconf
index dad9001338dcec42534fc353cdb0982828709e05..44825d13c0847ca2eb3be5c2869335388efa3745 100644 (file)
@@ -2,4 +2,8 @@
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
        <herd>gnome</herd>
+       <use>
+               <flag name="introspection">Use <pkg>dev-libs/gobject-introspection</pkg>
+                       for introspection</flag>
+       </use>
 </pkgmetadata>
index cf96a3e202fc2ad8edd6405e4766d98fb0b90a5a..2d323c0b9733519b0f48fd4139f67a83b6b24870 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for net-libs/libsoup
 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/libsoup/ChangeLog,v 1.218 2010/06/14 23:03:41 dang Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libsoup/ChangeLog,v 1.219 2010/06/20 14:05:16 ford_prefect Exp $
+
+  20 Jun 2010; Arun Raghavan <ford_prefect@gentoo.org>
+  libsoup-2.30.1.ebuild, metadata.xml:
+  Add introspection support
 
   14 Jun 2010; Daniel Gryniewicz <dang@gentoo.org> libsoup-2.30.1.ebuild,
   +files/libsoup-2.30.1-fix-build-without-gnome-with-doc.patch:
index 0406d92b993f5d321513a6f29e796de9eafc4f3b..00eb2ac7c0579c4044ad338646a93cbe0394aa09 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2010 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/libsoup/libsoup-2.30.1.ebuild,v 1.2 2010/06/14 23:03:41 dang Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libsoup/libsoup-2.30.1.ebuild,v 1.3 2010/06/20 14:05:16 ford_prefect Exp $
 
 EAPI="2"
 
@@ -8,15 +8,18 @@ inherit autotools eutils gnome2
 
 DESCRIPTION="An HTTP library implementation in C"
 HOMEPAGE="http://www.gnome.org/"
+SRC_URI="${SRC_URI}
+       mirror://gentoo/${P}-build-gir-patches.tar.bz2"
 
 LICENSE="LGPL-2"
 SLOT="2.4"
 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
 # Do NOT build with --disable-debug/--enable-debug=no - gnome2.eclass takes care of that
-IUSE="debug doc gnome ssl"
+IUSE="debug doc +introspection gnome ssl"
 
 RDEPEND=">=dev-libs/glib-2.21.3
        >=dev-libs/libxml2-2
+       introspection? ( >=dev-libs/gobject-introspection-0.6.7 )
        ssl? ( >=net-libs/gnutls-2.1.7 )"
 DEPEND="${RDEPEND}
        >=dev-util/pkgconfig-0.9
@@ -34,6 +37,7 @@ pkg_setup() {
        G2CONF="${G2CONF}
                --disable-static
                --without-gnome
+               $(use_enable introspection)
                $(use_enable ssl)"
 }
 
@@ -49,5 +53,11 @@ src_prepare() {
                # Fix bug 268592 (build fails !gnome && doc)
                epatch "${FILESDIR}/${P}-fix-build-without-gnome-with-doc.patch"
        fi
+
+       if use introspection; then
+               epatch "${WORKDIR}/${P}-build-gir-1.patch"
+               epatch "${WORKDIR}/${P}-build-gir-2.patch"
+       fi
+
        eautoreconf
 }
index da6fd63d0085c9671e7fff5f1244f5f9e880e2d7..44825d13c0847ca2eb3be5c2869335388efa3745 100644 (file)
@@ -1,5 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-<herd>gnome</herd>
+       <herd>gnome</herd>
+       <use>
+               <flag name="introspection">Use <pkg>dev-libs/gobject-introspection</pkg>
+                       for introspection</flag>
+       </use>
 </pkgmetadata>