diff options
author | Gilles Dartiguelongue <eva@gentoo.org> | 2013-08-29 22:08:34 +0000 |
---|---|---|
committer | Gilles Dartiguelongue <eva@gentoo.org> | 2013-08-29 22:08:34 +0000 |
commit | f53c5c3ed8ecf02ed4c51ec4e85435a061e3a72a (patch) | |
tree | ecefff3a75a8f4f783c0de1331b4bdc3fa975689 /net-libs | |
parent | Version bump. Re-split libsoup for easier upgrade path, etc. (diff) | |
download | gentoo-2-f53c5c3ed8ecf02ed4c51ec4e85435a061e3a72a.tar.gz gentoo-2-f53c5c3ed8ecf02ed4c51ec4e85435a061e3a72a.tar.bz2 gentoo-2-f53c5c3ed8ecf02ed4c51ec4e85435a061e3a72a.zip |
Version bump. Re-split libsoup for easier upgrade path, etc.
(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key C6085806)
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/libsoup-gnome/ChangeLog | 8 | ||||
-rw-r--r-- | net-libs/libsoup-gnome/files/libsoup-gnome-2.42.2-system-lib.patch | 254 | ||||
-rw-r--r-- | net-libs/libsoup-gnome/libsoup-gnome-2.42.2.ebuild | 58 |
3 files changed, 319 insertions, 1 deletions
diff --git a/net-libs/libsoup-gnome/ChangeLog b/net-libs/libsoup-gnome/ChangeLog index da83d7f0ff56..02be8094f10a 100644 --- a/net-libs/libsoup-gnome/ChangeLog +++ b/net-libs/libsoup-gnome/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-libs/libsoup-gnome # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-libs/libsoup-gnome/ChangeLog,v 1.88 2013/05/16 18:16:55 pacho Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-libs/libsoup-gnome/ChangeLog,v 1.89 2013/08/29 22:08:34 eva Exp $ + +*libsoup-gnome-2.42.2 (29 Aug 2013) + + 29 Aug 2013; Gilles Dartiguelongue <eva@gentoo.org> + +libsoup-gnome-2.42.2.ebuild, +files/libsoup-gnome-2.42.2-system-lib.patch: + Version bump. Re-split libsoup for easier upgrade path, etc. 16 May 2013; Pacho Ramos <pacho@gentoo.org> libsoup-gnome-2.38.1.ebuild, libsoup-gnome-2.40.3.ebuild: diff --git a/net-libs/libsoup-gnome/files/libsoup-gnome-2.42.2-system-lib.patch b/net-libs/libsoup-gnome/files/libsoup-gnome-2.42.2-system-lib.patch new file mode 100644 index 000000000000..383cfe4f637f --- /dev/null +++ b/net-libs/libsoup-gnome/files/libsoup-gnome-2.42.2-system-lib.patch @@ -0,0 +1,254 @@ +From 722a7d3935c5b3ec5c28e337247471821ede7c59 Mon Sep 17 00:00:00 2001 +From: Priit Laes <plaes@plaes.org> +Date: Tue, 20 Dec 2011 15:42:44 +0200 +Subject: [PATCH] Split support for libsoup-gnome + +https://bugzilla.gnome.org/show_bug.cgi?id=595065 + +Original patch by Romain Perier. +--- + Makefile.am | 12 +++++++++-- + configure.ac | 34 +++++++++++++++++++----------- + libsoup/Makefile.am | 60 +++++++++++++++++++++++++++++++++++++++-------------- + 3 files changed, 76 insertions(+), 30 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index 66992d9..046f945 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -1,7 +1,11 @@ + ## Process this file with automake to produce Makefile.in + ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} + +-SUBDIRS = libsoup po tests examples docs ++SUBDIRS = libsoup ++ ++if BUILD_LIBSOUP ++SUBDIRS += po tests docs ++endif + + EXTRA_DIST = \ + data/effective_tld_names.dat \ +@@ -16,7 +20,11 @@ DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-introspection + + pkgconfigdir = $(libdir)/pkgconfig + +-pkgconfig_DATA = libsoup-2.4.pc ++pkgconfig_DATA = ++ ++if BUILD_LIBSOUP ++pkgconfig_DATA += libsoup-2.4.pc ++endif + + if BUILD_LIBSOUP_GNOME + pkgconfig_DATA += libsoup-gnome-2.4.pc +diff --git a/configure.ac b/configure.ac +index 013deae..1c606df 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -76,20 +76,26 @@ LT_INIT([win32-dll]) + dnl *********************** + dnl *** Checks for glib *** + dnl *********************** ++PKG_PROG_PKG_CONFIG ++enable_ssl=no ++AC_ARG_WITH(libsoup-system, ++ AS_HELP_STRING([--with-libsoup-system], [Use libsoup system library to build(default=no)]), ++ [with_libsoup_system=$withval], [with_libsoup_system=no]) ++if test "$with_libsoup_system" = "no"; then ++ GLIB_REQUIRED=2.36.0 ++ AM_PATH_GLIB_2_0($GLIB_REQUIRED,,,gobject gio) ++ if test "$GLIB_LIBS" = ""; then ++ AC_MSG_ERROR(GLIB $GLIB_REQUIRED or later is required to build libsoup) ++ fi ++ GLIB_CFLAGS="$GLIB_CFLAGS -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_36" ++ GLIB_MAKEFILE='$(top_srcdir)/Makefile.glib' ++ AC_SUBST(GLIB_MAKEFILE) + +-GLIB_REQUIRED=2.36.0 +-AM_PATH_GLIB_2_0($GLIB_REQUIRED,,,gobject gio) +-if test "$GLIB_LIBS" = ""; then +- AC_MSG_ERROR(GLIB $GLIB_REQUIRED or later is required to build libsoup) ++ PKG_CHECK_MODULES(XML, libxml-2.0) ++ AC_SUBST(XML_CFLAGS) ++ AC_SUBST(XML_LIBS) + fi +-GLIB_CFLAGS="$GLIB_CFLAGS -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_36" +- +-GLIB_MAKEFILE='$(top_srcdir)/Makefile.glib' +-AC_SUBST(GLIB_MAKEFILE) +- +-PKG_CHECK_MODULES(XML, libxml-2.0) +-AC_SUBST(XML_CFLAGS) +-AC_SUBST(XML_LIBS) ++AM_CONDITIONAL(BUILD_LIBSOUP, test $with_libsoup_system = no) + + PKG_CHECK_MODULES(SQLITE, sqlite3) + AC_SUBST(SQLITE_CFLAGS) +@@ -138,6 +144,10 @@ AM_CONDITIONAL(BUILD_LIBSOUP_GNOME, test $with_gnome != no) + + if test $with_gnome != no; then + AC_DEFINE(HAVE_GNOME, 1, [Defined if GNOME support is enabled]) ++ ++ if test $with_libsoup_system != no; then ++ PKG_CHECK_MODULES(LIBSOUP, libsoup-$SOUP_API_VERSION = $VERSION) ++ fi + fi + AC_SUBST(HAVE_GNOME) + +diff --git a/libsoup/Makefile.am b/libsoup/Makefile.am +index 508bf9c..dc3c5f2 100644 +--- a/libsoup/Makefile.am ++++ b/libsoup/Makefile.am +@@ -1,14 +1,19 @@ + ## Process this file with automake to produce Makefile.in + + EXTRA_DIST = +- ++BUILT_SOURCES = + include $(GLIB_MAKEFILE) + + if OS_WIN32 + LIBWS2_32 = -lws2_32 + endif + +-INCLUDES = \ ++INCLUDES = ++lib_LTLIBRARIES = ++CLEANFILES = ++ ++if BUILD_LIBSOUP ++INCLUDES += \ + -DG_LOG_DOMAIN=\"libsoup\" \ + -DLOCALEDIR=\"$(localedir)\" \ + -DSOUP_COMPILATION \ +@@ -77,7 +82,7 @@ libsoupinclude_HEADERS = \ + nodist_libsoupinclude_HEADERS = \ + soup-version.h + +-lib_LTLIBRARIES = libsoup-2.4.la ++lib_LTLIBRARIES += libsoup-2.4.la + + libsoup_2_4_la_LDFLAGS = \ + -version-info $(SOUP_CURRENT):$(SOUP_REVISION):$(SOUP_AGE) \ +@@ -187,18 +192,23 @@ libsoup_2_4_la_SOURCES = \ + soup-version.c \ + soup-xmlrpc.c + +-# TLD rules +-EXTRA_DIST += tld-parser.py +- ++BUILT_SOURCES += tld_data.inc + TLD_DATA_FILE=$(top_srcdir)/data/effective_tld_names.dat + + tld_data.inc: tld-parser.py $(TLD_DATA_FILE) +- $(srcdir)/tld-parser.py $(TLD_DATA_FILE) tld_data.inc ++ $(AM_V_GEN) python $(srcdir)/tld-parser.py $(TLD_DATA_FILE) tld_data.inc ++ ++# TLD rules ++EXTRA_DIST += tld-parser.py ++ ++endif + + if BUILD_LIBSOUP_GNOME + + libsoupgnomeincludedir = $(includedir)/libsoup-gnome-2.4/libsoup + ++INCLUDES += $(LIBSOUP_CFLAGS) ++ + libsoupgnomeinclude_HEADERS = \ + soup-cookie-jar-sqlite.h\ + soup-gnome.h \ +@@ -206,17 +216,26 @@ libsoupgnomeinclude_HEADERS = \ + + lib_LTLIBRARIES += libsoup-gnome-2.4.la + ++if BUILD_LIBSOUP ++libsoup_gnome_2_4_la_LDFLAGS = $(libsoup_2_4_la_LDFLAGS) ++else + libsoup_gnome_2_4_la_LDFLAGS = \ + -version-info $(SOUP_CURRENT):$(SOUP_REVISION):$(SOUP_AGE) \ + -no-undefined \ + -export-symbols $(srcdir)/libsoup-gnome-2.4.sym ++endif + + EXTRA_DIST += libsoup-gnome-2.4.sym + + libsoup_gnome_2_4_la_LIBADD = \ +- libsoup-2.4.la \ + $(GLIB_LIBS) + ++if BUILD_LIBSOUP ++libsoup_gnome_2_4_la_LIBADD += libsoup-2.4.la ++else ++libsoup_gnome_2_4_la_LIBADD += $(LIBSOUP_LIBS) ++endif ++ + libsoup_gnome_2_4_la_SOURCES = \ + soup-cookie-jar-sqlite.c \ + soup-gnome-features.c \ +@@ -229,9 +248,8 @@ endif + + GLIB_GENERATED = soup-marshal.c soup-marshal.h + GLIB_GENERATED += soup-enum-types.c soup-enum-types.h +-BUILT_SOURCES = \ +- $(GLIB_GENERATED) \ +- tld_data.inc ++BUILT_SOURCES += \ ++ $(GLIB_GENERATED) + + soup_marshal_sources = $(libsoup_2_4_la_SOURCES) $(libsoup_gnome_2_4_la_SOURCES) + soup_enum_types_sources = $(libsoupinclude_HEADERS) $(libsoupgnomeinclude_HEADERS) +@@ -247,6 +265,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.% soup-proxy-resolver.h,\ +@@ -268,20 +288,28 @@ 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) \ + $(filter-out %.h, $(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_INCLUDES = Soup-2.4 + SoupGNOME_2_4_gir_SCANNERFLAGS = \ + --identifier-prefix=Soup \ + --symbol-prefix=soup \ +- --c-include "libsoup/soup-gnome.h" \ +- --include-uninstalled=$(builddir)/Soup-2.4.gir ++ --c-include "libsoup/soup-gnome.h" + SoupGNOME_2_4_gir_CFLAGS = $(INCLUDES) +-SoupGNOME_2_4_gir_LIBS = libsoup-gnome-2.4.la libsoup-2.4.la ++SoupGNOME_2_4_gir_LIBS = libsoup-gnome-2.4.la + SoupGNOME_2_4_gir_FILES = $(addprefix $(srcdir)/,$(gi_soup_gnome_files)) + SoupGNOME_2_4_gir_EXPORT_PACKAGES = libsoup-gnome-2.4 + +@@ -295,6 +323,6 @@ gir_DATA = $(INTROSPECTION_GIRS) + typelibdir = $(libdir)/girepository-1.0 + typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib) + +-CLEANFILES = $(gir_DATA) $(typelib_DATA) $(BUILT_SOURCES) ++CLEANFILES += $(gir_DATA) $(typelib_DATA) $(BUILT_SOURCES) + + endif +-- +1.8.3.2 + diff --git a/net-libs/libsoup-gnome/libsoup-gnome-2.42.2.ebuild b/net-libs/libsoup-gnome/libsoup-gnome-2.42.2.ebuild new file mode 100644 index 000000000000..70c33a0c8907 --- /dev/null +++ b/net-libs/libsoup-gnome/libsoup-gnome-2.42.2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2013 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.42.2.ebuild,v 1.1 2013/08/29 22:08:34 eva Exp $ + +EAPI="5" +GCONF_DEBUG="yes" +GNOME2_LA_PUNT="yes" + +MY_PN=${PN/-gnome} +MY_P=${MY_PN}-${PV} + +inherit autotools eutils gnome2 + +DESCRIPTION="GNOME plugin for libsoup" +HOMEPAGE="http://live.gnome.org/LibSoup" +SRC_URI="${SRC_URI//-gnome}" + +LICENSE="LGPL-2+" +SLOT="2.4" +IUSE="debug +introspection" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~x86-solaris" + +RDEPEND=" + ~net-libs/libsoup-${PV}[introspection?] + dev-db/sqlite:3= + introspection? ( >=dev-libs/gobject-introspection-0.9.5 ) + >=net-libs/libsoup-2.42.2-r1 +" +DEPEND="${RDEPEND} + >=dev-util/gtk-doc-am-1.10 + >=dev-util/intltool-0.35 + sys-devel/gettext + virtual/pkgconfig +" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + # Use lib present on the system + epatch "${FILESDIR}"/${PN}-2.42.2-system-lib.patch + eautoreconf + gnome2_src_prepare +} + +src_configure() { + # FIXME: we need addpredict to workaround bug #324779 until + # root cause (bug #249496) is solved + addpredict /usr/share/snmp/mibs/.index + + # Disable apache tests until they are usable on Gentoo, bug #326957 + gnome2_src_configure \ + --disable-static \ + --disable-tls-check \ + $(use_enable introspection) \ + --with-libsoup-system \ + --with-gnome \ + --without-apache-httpd +} |