diff options
author | Gilles Dartiguelongue <eva@gentoo.org> | 2009-10-29 21:23:30 +0000 |
---|---|---|
committer | Gilles Dartiguelongue <eva@gentoo.org> | 2009-10-29 21:23:30 +0000 |
commit | 63ab56a2a09d0ce5df19448df8cb3406f543e2c4 (patch) | |
tree | 144637f8d32dfc5112a16c766463152d4f71af85 /net-libs/libsoup-gnome | |
parent | New version for GNOME 2.28. Clean up old revision. (diff) | |
download | historical-63ab56a2a09d0ce5df19448df8cb3406f543e2c4.tar.gz historical-63ab56a2a09d0ce5df19448df8cb3406f543e2c4.tar.bz2 historical-63ab56a2a09d0ce5df19448df8cb3406f543e2c4.zip |
New version for GNOME 2.28.
Package-Manager: portage-2.2_rc46/cvs/Linux x86_64
Diffstat (limited to 'net-libs/libsoup-gnome')
-rw-r--r-- | net-libs/libsoup-gnome/ChangeLog | 9 | ||||
-rw-r--r-- | net-libs/libsoup-gnome/files/libsoup-gnome-2.28.1-system-lib.patch | 207 | ||||
-rw-r--r-- | net-libs/libsoup-gnome/libsoup-gnome-2.28.1.ebuild | 52 |
3 files changed, 267 insertions, 1 deletions
diff --git a/net-libs/libsoup-gnome/ChangeLog b/net-libs/libsoup-gnome/ChangeLog index dd58a8c41741..82b444c4493c 100644 --- a/net-libs/libsoup-gnome/ChangeLog +++ b/net-libs/libsoup-gnome/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-libs/libsoup-gnome # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-libs/libsoup-gnome/ChangeLog,v 1.9 2009/10/13 15:21:13 darkside Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-libs/libsoup-gnome/ChangeLog,v 1.10 2009/10/29 21:23:29 eva Exp $ + +*libsoup-gnome-2.28.1 (29 Oct 2009) + + 29 Oct 2009; Gilles Dartiguelongue <eva@gentoo.org> + +libsoup-gnome-2.28.1.ebuild, + +files/libsoup-gnome-2.28.1-system-lib.patch: + New version for GNOME 2.28. 13 Oct 2009; Jeremy Olexa <darkside@gentoo.org> libsoup-gnome-2.26.3-r1.ebuild: diff --git a/net-libs/libsoup-gnome/files/libsoup-gnome-2.28.1-system-lib.patch b/net-libs/libsoup-gnome/files/libsoup-gnome-2.28.1-system-lib.patch new file mode 100644 index 000000000000..1d3ff5d40be9 --- /dev/null +++ b/net-libs/libsoup-gnome/files/libsoup-gnome-2.28.1-system-lib.patch @@ -0,0 +1,207 @@ +From 4367b1c2801a4158f53f910a89255737a1c23b73 Mon Sep 17 00:00:00 2001 +From: Romain Perier <mrpouet@gentoo.org> +Date: Tue, 29 Sep 2009 11:19:43 +0200 +Subject: [PATCH] Add --with-libsoup-system option in order to be able to build libsoup-gnome library without libsoup library + +--- + Makefile.am | 13 +++++++--- + configure.in | 59 ++++++++++++++++++++++++++++---------------------- + libsoup/Makefile.am | 35 +++++++++++++++++++---------- + 3 files changed, 65 insertions(+), 42 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index 686e2e6..a919d8d 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -2,7 +2,11 @@ + AUTOMAKE_OPTIONS = 1.6 + ACLOCAL_AMFLAGS = -I m4 + +-SUBDIRS = libsoup tests docs ++SUBDIRS = libsoup ++ ++if BUILD_LIBSOUP ++SUBDIRS += tests docs ++endif + + EXTRA_DIST = \ + libsoup-2.4.pc.in \ +@@ -13,9 +17,10 @@ EXTRA_DIST = \ + DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc + + 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 + endif +diff --git a/configure.in b/configure.in +index 24e0390..3f375d4 100644 +--- a/configure.in ++++ b/configure.in +@@ -81,7 +81,13 @@ AC_FUNC_ALLOCA + 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 + 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) +@@ -92,22 +98,6 @@ PKG_CHECK_MODULES(XML, libxml-2.0) + AC_SUBST(XML_CFLAGS) + AC_SUBST(XML_LIBS) + +-dnl *********************** +-dnl *** Check for Win32 *** +-dnl *********************** +- +-AC_MSG_CHECKING([for Win32]) +-case "$host" in +- *-*-mingw*) +- os_win32=yes +- ;; +- *) +- os_win32=no +- ;; +-esac +-AC_MSG_RESULT([$os_win32]) +-AM_CONDITIONAL(OS_WIN32, [test $os_win32 = yes]) +- + dnl ******************* + dnl *** Misc checks *** + dnl ******************* +@@ -169,10 +152,25 @@ fi + AC_SUBST(LIBGNUTLS_CFLAGS) + AC_SUBST(LIBGNUTLS_LIBS) + AC_SUBST(SSL_REQUIREMENT) +- ++fi + dnl This is not supposed to be conditional, but... + AM_CONDITIONAL(HAVE_SSL, test $enable_ssl != no) ++AM_CONDITIONAL(BUILD_LIBSOUP, test $with_libsoup_system = no) ++dnl *********************** ++dnl *** Check for Win32 *** ++dnl *********************** + ++AC_MSG_CHECKING([for Win32]) ++case "$host" in ++ *-*-mingw*) ++ os_win32=yes ++ ;; ++ *) ++ os_win32=no ++ ;; ++esac ++AC_MSG_RESULT([$os_win32]) ++AM_CONDITIONAL(OS_WIN32, [test $os_win32 = yes]) + + dnl ********************* + dnl *** GNOME support *** +@@ -197,7 +202,9 @@ 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 + PKG_CHECK_MODULES(LIBPROXY, libproxy-1.0, :, [AC_MSG_ERROR(dnl + [Could not find libproxy: + +diff --git a/libsoup/Makefile.am b/libsoup/Makefile.am +index c25b534..396c5f6 100644 +--- a/libsoup/Makefile.am ++++ b/libsoup/Makefile.am +@@ -3,18 +3,16 @@ + if OS_WIN32 + LIBWS2_32 = -lws2_32 + endif +- +-INCLUDES = \ ++INCLUDES = ++lib_LTLIBRARIES = ++if BUILD_LIBSOUP ++INCLUDES += \ + -DG_LOG_DOMAIN=\"libsoup\" \ + -I$(top_srcdir) \ + $(SOUP_DEBUG_FLAGS) \ + $(SOUP_MAINTAINER_FLAGS) \ + $(GLIB_CFLAGS) \ + $(XML_CFLAGS) \ +- $(GCONF_CFLAGS) \ +- $(LIBPROXY_CFLAGS) \ +- $(SQLITE_CFLAGS) \ +- $(GNOME_KEYRING_CFLAGS) \ + $(LIBGCRYPT_CFLAGS) \ + $(LIBGNUTLS_CFLAGS) + +@@ -90,7 +88,7 @@ libsoupinclude_HEADERS = \ + $(soup_headers) \ + soup-enum-types.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) -no-undefined +@@ -163,9 +161,16 @@ libsoup_2_4_la_SOURCES = \ + soup-uri.c \ + soup-value-utils.c \ + soup-xmlrpc.c ++endif + + if BUILD_LIBSOUP_GNOME + ++INCLUDES += $(LIBSOUP_CFLAGS) \ ++ $(GCONF_CFLAGS) \ ++ $(LIBPROXY_CFLAGS) \ ++ $(SQLITE_CFLAGS) \ ++ $(GNOME_KEYRING_CFLAGS) ++ + libsoupgnomeincludedir = $(includedir)/libsoup-gnome-2.4/libsoup + + libsoupgnomeinclude_HEADERS = \ +@@ -174,17 +179,23 @@ libsoupgnomeinclude_HEADERS = \ + soup-gnome-features.h + + lib_LTLIBRARIES += libsoup-gnome-2.4.la +- +-libsoup_gnome_2_4_la_LDFLAGS = $(libsoup_2_4_la_LDFLAGS) +- ++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 ++endif + libsoup_gnome_2_4_la_LIBADD = \ +- libsoup-2.4.la \ + $(GLIB_LIBS) \ + $(GCONF_LIBS) \ + $(LIBPROXY_LIBS) \ + $(SQLITE_LIBS) \ + $(GNOME_KEYRING_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 \ +-- +1.6.5.rc1 + diff --git a/net-libs/libsoup-gnome/libsoup-gnome-2.28.1.ebuild b/net-libs/libsoup-gnome/libsoup-gnome-2.28.1.ebuild new file mode 100644 index 000000000000..5daca345e618 --- /dev/null +++ b/net-libs/libsoup-gnome/libsoup-gnome-2.28.1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2009 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.28.1.ebuild,v 1.1 2009/10/29 21:23:29 eva Exp $ + +EAPI="2" + +inherit autotools eutils gnome2 + +MY_PN=${PN/-gnome} +MY_P=${MY_PN}-${PV} + +DESCRIPTION="GNOME plugin for libsoup" +HOMEPAGE="http://www.gnome.org/" +SRC_URI="${SRC_URI//-gnome}" + +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" + +RDEPEND="~net-libs/libsoup-${PV} + gnome-base/gnome-keyring + net-libs/libproxy + >=gnome-base/gconf-2 + dev-db/sqlite:3" +DEPEND="${RDEPEND} + >=dev-util/pkgconfig-0.9 + dev-util/gtk-doc-am + doc? ( >=dev-util/gtk-doc-1 )" + +S=${WORKDIR}/${MY_P} + +DOCS="AUTHORS NEWS README" + +pkg_setup() { + G2CONF="${G2CONF} + --disable-static + --with-libsoup-system + --with-gnome" +} +src_prepare() { + gnome2_src_prepare + + # Fix test to follow POSIX (for x86-fbsd) + # No patch to prevent having to eautoreconf + sed -e 's/\(test.*\)==/\1=/g' -i configure.in configure || die "sed failed" + + # Use lib present on the system + epatch "${FILESDIR}"/${PN}-2.28.1-system-lib.patch + eautoreconf +} |