* [gentoo-commits] proj/gnome:gnome-next commit in: net-libs/libsoup/, net-libs/libsoup/files/, net-libs/libsoup-gnome/, ...
@ 2011-07-28 22:11 Alexandre Restovtsev
0 siblings, 0 replies; only message in thread
From: Alexandre Restovtsev @ 2011-07-28 22:11 UTC (permalink / raw
To: gentoo-commits
commit: 494ec4fabc61060bf9175bf563c4f16b7e01503a
Author: Alexandre Rostovtsev <tetromino <AT> gmail <DOT> com>
AuthorDate: Thu Jul 28 22:09:43 2011 +0000
Commit: Alexandre Restovtsev <tetromino <AT> gmail <DOT> com>
CommitDate: Thu Jul 28 22:09:43 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=494ec4fa
net-libs/libsoup{,-gnome}: add 2.35.4 and live ebuild
Add gnome-3.1.x version and live ebuilds for libsoup and libsoup-gnome.
---
.../files/libsoup-gnome-2.34.1-system-lib.patch | 229 ++++++++++++++++++++
net-libs/libsoup-gnome/libsoup-gnome-2.35.4.ebuild | 65 ++++++
net-libs/libsoup-gnome/libsoup-gnome-9999.ebuild | 65 ++++++
...p-2.34.2-fix-build-without-gnome-with-doc.patch | 58 +++++
net-libs/libsoup/libsoup-2.35.4.ebuild | 79 +++++++
net-libs/libsoup/libsoup-9999.ebuild | 79 +++++++
6 files changed, 575 insertions(+), 0 deletions(-)
diff --git a/net-libs/libsoup-gnome/files/libsoup-gnome-2.34.1-system-lib.patch b/net-libs/libsoup-gnome/files/libsoup-gnome-2.34.1-system-lib.patch
new file mode 100644
index 0000000..ad12542
--- /dev/null
+++ b/net-libs/libsoup-gnome/files/libsoup-gnome-2.34.1-system-lib.patch
@@ -0,0 +1,229 @@
+Split support for libsoup-gnome
+
+Original patch by Romain Perier.
+---
+--- configure.ac
++++ configure.ac
+@@ -72,15 +72,30 @@
+ dnl *** Checks for glib ***
+ dnl ***********************
+
+-AM_PATH_GLIB_2_0(2.27.5,,,gobject gthread gio)
+-if test "$GLIB_LIBS" = ""; then
+- AC_MSG_ERROR(GLIB 2.27.5 or later is required to build libsoup)
+-fi
+-GLIB_CFLAGS="$GLIB_CFLAGS -DG_DISABLE_SINGLE_INCLUDES"
+-
+-PKG_CHECK_MODULES(XML, libxml-2.0)
+-AC_SUBST(XML_CFLAGS)
+-AC_SUBST(XML_LIBS)
++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.27.5,,,gobject gthread gio)
++ if test "$GLIB_LIBS" = ""; then
++ AC_MSG_ERROR(GLIB 2.27.5 or later is required to build libsoup)
++ fi
++ GLIB_CFLAGS="$GLIB_CFLAGS -DG_DISABLE_SINGLE_INCLUDES"
++
++ PKG_CHECK_MODULES(XML, libxml-2.0)
++ AC_SUBST(XML_CFLAGS)
++ AC_SUBST(XML_LIBS)
++
++ dnl *******************
++ dnl *** Misc checks ***
++ dnl *******************
++ AC_CHECK_FUNCS(gmtime_r)
++ AC_CHECK_FUNCS(mmap)
++ AC_CHECK_FUNC(socket, , AC_CHECK_LIB(socket, socket))
++fi
++AM_CONDITIONAL(BUILD_LIBSOUP, test $with_libsoup_system = no)
+
+ dnl ***********************
+ dnl *** Check for Win32 ***
+@@ -99,13 +114,6 @@
+ AC_MSG_RESULT([$os_win32])
+ AM_CONDITIONAL(OS_WIN32, [test $os_win32 = yes])
+
+-dnl *******************
+-dnl *** Misc checks ***
+-dnl *******************
+-AC_CHECK_FUNCS(gmtime_r)
+-AC_CHECK_FUNCS(mmap)
+-AC_CHECK_FUNC(socket, , AC_CHECK_LIB(socket, socket))
+-
+ dnl *********************
+ dnl *** GNOME support ***
+ dnl *********************
+@@ -130,6 +138,10 @@
+ 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(SQLITE, sqlite3, :, [AC_MSG_ERROR(dnl
+ [Could not find sqlite3 devel files:
+
+--- libsoup/Makefile.am
++++ libsoup/Makefile.am
+@@ -4,15 +4,18 @@
+ LIBWS2_32 = -lws2_32
+ endif
+
+-INCLUDES = \
++INCLUDES =
++lib_LTLIBRARIES =
++CLEANFILES =
++
++if BUILD_LIBSOUP
++INCLUDES += \
+ -DG_LOG_DOMAIN=\"libsoup\" \
+ -I$(top_srcdir) \
+ $(SOUP_DEBUG_FLAGS) \
+ $(SOUP_MAINTAINER_FLAGS) \
+ $(GLIB_CFLAGS) \
+- $(XML_CFLAGS) \
+- $(SQLITE_CFLAGS) \
+- $(GNOME_KEYRING_CFLAGS)
++ $(XML_CFLAGS)
+
+ MARSHAL_GENERATED = soup-marshal.c soup-marshal.h
+ MKENUMS_GENERATED = soup-enum-types.c soup-enum-types.h
+@@ -41,7 +44,7 @@
+
+ BUILT_SOURCES = $(MARSHAL_GENERATED) $(MKENUMS_GENERATED)
+
+-CLEANFILES = $(MARSHAL_GENERATED) $(MKENUMS_GENERATED)
++CLEANFILES += $(MARSHAL_GENERATED) $(MKENUMS_GENERATED)
+
+ libsoupincludedir = $(includedir)/libsoup-2.4/libsoup
+
+@@ -94,7 +97,7 @@
+ $(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
+@@ -178,6 +181,7 @@
+ soup-uri-private.h \
+ soup-value-utils.c \
+ soup-xmlrpc.c
++endif
+
+ if BUILD_LIBSOUP_GNOME
+
+@@ -191,6 +195,10 @@
+
+ libsoupgnomeincludedir = $(includedir)/libsoup-gnome-2.4/libsoup
+
++INCLUDES += $(LIBSOUP_CFLAGS) \
++ $(SQLITE_CFLAGS) \
++ $(GNOME_KEYRING_CFLAGS)
++
+ libsoupgnomeinclude_HEADERS = \
+ soup-cookie-jar-sqlite.h\
+ soup-gnome.h \
+@@ -198,14 +206,24 @@
+
+ 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
++endif
+
+ libsoup_gnome_2_4_la_LIBADD = \
+- libsoup-2.4.la \
+ $(GLIB_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 \
+@@ -225,6 +243,8 @@
+
+ if HAVE_INTROSPECTION
+
++if BUILD_LIBSOUP
++
+ # Core library
+ gi_soup_files = \
+ $(filter-out soup.h soup-enum-types.% soup-marshal.%,\
+@@ -246,20 +266,28 @@
+
+ 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
+
+--- Makefile.am
++++ Makefile.am
+@@ -1,7 +1,11 @@
+ ## Process this file with automake to produce Makefile.in
+ ACLOCAL_AMFLAGS = -I m4
+
+-SUBDIRS = libsoup tests docs
++SUBDIRS = libsoup
++
++if BUILD_LIBSOUP
++SUBDIRS += tests docs
++endif
+
+ EXTRA_DIST = \
+ libsoup-2.4.pc.in \
+@@ -14,7 +18,11 @@
+
+ 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/net-libs/libsoup-gnome/libsoup-gnome-2.35.4.ebuild b/net-libs/libsoup-gnome/libsoup-gnome-2.35.4.ebuild
new file mode 100644
index 0000000..58ae7ed
--- /dev/null
+++ b/net-libs/libsoup-gnome/libsoup-gnome-2.35.4.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2011 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.34.2.ebuild,v 1.4 2011/07/15 11:09:36 xarthisius Exp $
+
+EAPI="4"
+GCONF_DEBUG="yes"
+GNOME2_LA_PUNT="yes"
+
+MY_PN=${PN/-gnome}
+MY_P=${MY_PN}-${PV}
+
+inherit autotools eutils gnome2
+if [[ ${PV} = 9999 ]]; then
+ GNOME_LIVE_MODULE=${MY_PN}
+ inherit gnome2-live
+fi
+
+DESCRIPTION="GNOME plugin for libsoup"
+HOMEPAGE="http://live.gnome.org/LibSoup"
+SRC_URI="${SRC_URI//-gnome}"
+
+LICENSE="LGPL-2"
+SLOT="2.4"
+if [[ ${PV} = 9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-solaris"
+fi
+IUSE="debug doc +introspection"
+
+RDEPEND="~net-libs/libsoup-${PV}
+ || ( gnome-base/libgnome-keyring <gnome-base/gnome-keyring-2.29.4 )
+ dev-db/sqlite:3
+ introspection? ( >=dev-libs/gobject-introspection-0.9.5 )"
+DEPEND="${RDEPEND}
+ >=dev-util/pkgconfig-0.9
+ >=dev-util/gtk-doc-am-1.10
+ doc? ( >=dev-util/gtk-doc-1.10 )"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ G2CONF="${G2CONF}
+ --disable-static
+ --disable-tls-check
+ $(use_enable introspection)
+ --with-libsoup-system
+ --with-gnome"
+ DOCS="AUTHORS NEWS README"
+}
+
+src_configure() {
+ # FIXME: we need addpredict to workaround bug #324779 until
+ # root cause (bug #249496) is solved
+ addpredict /usr/share/snmp/mibs/.index
+ gnome2_src_configure
+}
+
+src_prepare() {
+ gnome2_src_prepare
+
+ # Use lib present on the system
+ epatch "${FILESDIR}"/${PN}-2.34.1-system-lib.patch
+ eautoreconf
+}
diff --git a/net-libs/libsoup-gnome/libsoup-gnome-9999.ebuild b/net-libs/libsoup-gnome/libsoup-gnome-9999.ebuild
new file mode 100644
index 0000000..58ae7ed
--- /dev/null
+++ b/net-libs/libsoup-gnome/libsoup-gnome-9999.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2011 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.34.2.ebuild,v 1.4 2011/07/15 11:09:36 xarthisius Exp $
+
+EAPI="4"
+GCONF_DEBUG="yes"
+GNOME2_LA_PUNT="yes"
+
+MY_PN=${PN/-gnome}
+MY_P=${MY_PN}-${PV}
+
+inherit autotools eutils gnome2
+if [[ ${PV} = 9999 ]]; then
+ GNOME_LIVE_MODULE=${MY_PN}
+ inherit gnome2-live
+fi
+
+DESCRIPTION="GNOME plugin for libsoup"
+HOMEPAGE="http://live.gnome.org/LibSoup"
+SRC_URI="${SRC_URI//-gnome}"
+
+LICENSE="LGPL-2"
+SLOT="2.4"
+if [[ ${PV} = 9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-solaris"
+fi
+IUSE="debug doc +introspection"
+
+RDEPEND="~net-libs/libsoup-${PV}
+ || ( gnome-base/libgnome-keyring <gnome-base/gnome-keyring-2.29.4 )
+ dev-db/sqlite:3
+ introspection? ( >=dev-libs/gobject-introspection-0.9.5 )"
+DEPEND="${RDEPEND}
+ >=dev-util/pkgconfig-0.9
+ >=dev-util/gtk-doc-am-1.10
+ doc? ( >=dev-util/gtk-doc-1.10 )"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ G2CONF="${G2CONF}
+ --disable-static
+ --disable-tls-check
+ $(use_enable introspection)
+ --with-libsoup-system
+ --with-gnome"
+ DOCS="AUTHORS NEWS README"
+}
+
+src_configure() {
+ # FIXME: we need addpredict to workaround bug #324779 until
+ # root cause (bug #249496) is solved
+ addpredict /usr/share/snmp/mibs/.index
+ gnome2_src_configure
+}
+
+src_prepare() {
+ gnome2_src_prepare
+
+ # Use lib present on the system
+ epatch "${FILESDIR}"/${PN}-2.34.1-system-lib.patch
+ eautoreconf
+}
diff --git a/net-libs/libsoup/files/libsoup-2.34.2-fix-build-without-gnome-with-doc.patch b/net-libs/libsoup/files/libsoup-2.34.2-fix-build-without-gnome-with-doc.patch
new file mode 100644
index 0000000..574b8be
--- /dev/null
+++ b/net-libs/libsoup/files/libsoup-2.34.2-fix-build-without-gnome-with-doc.patch
@@ -0,0 +1,58 @@
+From 4be4806401133389b2413267bc3f8ac58c1eeaf3 Mon Sep 17 00:00:00 2001
+From: Priit Laes <plaes@plaes.org>
+Date: Thu, 25 Feb 2010 20:59:51 +0200
+Subject: [PATCH] Split docs into libsoup and libsoup-gnome.
+
+Fixes Gentoo Bug 268592, patch adapted from upstream patch.
+
+Modified to apply to a release tarball (no libsoup-2.4-docs.sgml.in)
+Hence, to be applied ONLY when !gnome && doc
+
+[Alexandre Rostovtsev <tetromino@gmail.com>: adapted patch for libsoup-2.34.2]
+---
+ docs/reference/Makefile.am | 4 +++-
+ docs/reference/libsoup-2.4-docs.sgml | 2 ++
+ 2 files changed, 5 insertions(+), 1 deletions(-)
+
+diff --git a/docs/reference/Makefile.am b/docs/reference/Makefile.am
+index 765d27c..07c92e9 100644
+--- a/docs/reference/Makefile.am
++++ b/docs/reference/Makefile.am
+@@ -38,6 +38,9 @@ IGNORE_HFILES= soup.h soup-marshal.h soup-enum-types.h \
+ soup-proxy-resolver.h soup-proxy-resolver-gnome.h \
+ soup-proxy-resolver-static.h
+
++IGNORE_HFILES += soup-cookie-jar-sqlite.h \
++ soup-gnome.h soup-gnome-features.h
++
+ # Images to copy into HTML directory.
+ HTML_IMAGES =
+
+@@ -63,7 +66,6 @@ GTKDOC_CFLAGS = \
+
+ GTKDOC_LIBS = \
+ $(top_builddir)/libsoup/libsoup-2.4.la \
+- $(top_builddir)/libsoup/libsoup-gnome-2.4.la \
+ $(GLIB_LIBS)
+
+ # include common portion ...
+diff --git a/docs/reference/libsoup-2.4-docs.sgml b/docs/reference/libsoup-2.4-docs.sgml
+index c52208f..7117849 100644
+--- a/docs/reference/libsoup-2.4-docs.sgml
++++ b/docs/reference/libsoup-2.4-docs.sgml
+@@ -52,11 +52,13 @@
+ <xi:include href="xml/soup-value-utils.xml"/>
+ </chapter>
+
++<!--
+ <chapter>
+ <title>GNOME integration</title>
+ <xi:include href="xml/soup-gnome-features.xml"/>
+ <xi:include href="xml/soup-cookie-jar-sqlite.xml"/>
+ </chapter>
++-->
+
+ <chapter>
+ <title>Low-level Networking API</title>
+--
+1.7.5.3
\ No newline at end of file
diff --git a/net-libs/libsoup/libsoup-2.35.4.ebuild b/net-libs/libsoup/libsoup-2.35.4.ebuild
new file mode 100644
index 0000000..9927f58
--- /dev/null
+++ b/net-libs/libsoup/libsoup-2.35.4.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libsoup/libsoup-2.34.2.ebuild,v 1.5 2011/07/15 11:08:46 xarthisius Exp $
+
+EAPI="4"
+GCONF_DEBUG="yes"
+GNOME2_LA_PUNT="yes"
+
+inherit autotools eutils gnome2
+if [[ ${PV} = 9999 ]]; then
+ inherit gnome2-live
+fi
+
+DESCRIPTION="An HTTP library implementation in C"
+HOMEPAGE="http://live.gnome.org/LibSoup"
+
+LICENSE="LGPL-2"
+SLOT="2.4"
+if [[ ${PV} = 9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+fi
+IUSE="debug doc +introspection ssl test"
+
+RDEPEND=">=dev-libs/glib-2.27.5:2
+ >=dev-libs/libxml2-2:2
+ net-libs/glib-networking[ssl?]
+ introspection? ( >=dev-libs/gobject-introspection-0.9.5 )"
+DEPEND="${RDEPEND}
+ >=dev-util/pkgconfig-0.9
+ >=dev-util/gtk-doc-am-1.10
+ doc? ( >=dev-util/gtk-doc-1.10 )"
+# test? ( www-servers/apache[ssl,apache2_modules_auth_digest,apache2_modules_alias,apache2_modules_auth_basic,
+# apache2_modules_authn_file,apache2_modules_authz_host,apache2_modules_authz_user,apache2_modules_dir,
+# apache2_modules_mime,apache2_modules_proxy,apache2_modules_proxy_http,apache2_modules_proxy_connect]
+# dev-lang/php[apache2,xmlrpc]
+# net-misc/curl
+# net-libs/glib-networking[ssl])"
+
+pkg_setup() {
+ # Set invalid apache module dir until apache tests are ready, bug #326957
+ DOCS="AUTHORS NEWS README"
+ G2CONF="${G2CONF}
+ --disable-static
+ --disable-tls-check
+ --without-gnome
+ --with-apache-module-dir="${T}"
+ $(use_enable introspection)"
+}
+
+src_configure() {
+ # FIXME: we need addpredict to workaround bug #324779 until
+ # root cause (bug #249496) is solved
+ addpredict /usr/share/snmp/mibs/.index
+ gnome2_src_configure
+}
+
+src_prepare() {
+ gnome2_src_prepare
+
+ if [[ ${PV} = 9999 ]]; then
+ # prevent SOUP_MAINTAINER_FLAGS from getting set
+ mv .git .git-bck || die
+ fi
+
+ if ! use test; then
+ # don't waste time building tests (bug #226271)
+ sed 's/^\(SUBDIRS =.*\)tests\(.*\)$/\1\2/' -i Makefile.am Makefile.in \
+ || die "sed failed"
+ fi
+
+ # Patch *must* be applied conditionally (see patch for details)
+ if use doc; then
+ # Fix bug 268592 (upstream #573685) (build fails without gnome && doc)
+ epatch "${FILESDIR}/${PN}-2.34.2-fix-build-without-gnome-with-doc.patch"
+ eautoreconf
+ fi
+}
diff --git a/net-libs/libsoup/libsoup-9999.ebuild b/net-libs/libsoup/libsoup-9999.ebuild
new file mode 100644
index 0000000..9927f58
--- /dev/null
+++ b/net-libs/libsoup/libsoup-9999.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libsoup/libsoup-2.34.2.ebuild,v 1.5 2011/07/15 11:08:46 xarthisius Exp $
+
+EAPI="4"
+GCONF_DEBUG="yes"
+GNOME2_LA_PUNT="yes"
+
+inherit autotools eutils gnome2
+if [[ ${PV} = 9999 ]]; then
+ inherit gnome2-live
+fi
+
+DESCRIPTION="An HTTP library implementation in C"
+HOMEPAGE="http://live.gnome.org/LibSoup"
+
+LICENSE="LGPL-2"
+SLOT="2.4"
+if [[ ${PV} = 9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+fi
+IUSE="debug doc +introspection ssl test"
+
+RDEPEND=">=dev-libs/glib-2.27.5:2
+ >=dev-libs/libxml2-2:2
+ net-libs/glib-networking[ssl?]
+ introspection? ( >=dev-libs/gobject-introspection-0.9.5 )"
+DEPEND="${RDEPEND}
+ >=dev-util/pkgconfig-0.9
+ >=dev-util/gtk-doc-am-1.10
+ doc? ( >=dev-util/gtk-doc-1.10 )"
+# test? ( www-servers/apache[ssl,apache2_modules_auth_digest,apache2_modules_alias,apache2_modules_auth_basic,
+# apache2_modules_authn_file,apache2_modules_authz_host,apache2_modules_authz_user,apache2_modules_dir,
+# apache2_modules_mime,apache2_modules_proxy,apache2_modules_proxy_http,apache2_modules_proxy_connect]
+# dev-lang/php[apache2,xmlrpc]
+# net-misc/curl
+# net-libs/glib-networking[ssl])"
+
+pkg_setup() {
+ # Set invalid apache module dir until apache tests are ready, bug #326957
+ DOCS="AUTHORS NEWS README"
+ G2CONF="${G2CONF}
+ --disable-static
+ --disable-tls-check
+ --without-gnome
+ --with-apache-module-dir="${T}"
+ $(use_enable introspection)"
+}
+
+src_configure() {
+ # FIXME: we need addpredict to workaround bug #324779 until
+ # root cause (bug #249496) is solved
+ addpredict /usr/share/snmp/mibs/.index
+ gnome2_src_configure
+}
+
+src_prepare() {
+ gnome2_src_prepare
+
+ if [[ ${PV} = 9999 ]]; then
+ # prevent SOUP_MAINTAINER_FLAGS from getting set
+ mv .git .git-bck || die
+ fi
+
+ if ! use test; then
+ # don't waste time building tests (bug #226271)
+ sed 's/^\(SUBDIRS =.*\)tests\(.*\)$/\1\2/' -i Makefile.am Makefile.in \
+ || die "sed failed"
+ fi
+
+ # Patch *must* be applied conditionally (see patch for details)
+ if use doc; then
+ # Fix bug 268592 (upstream #573685) (build fails without gnome && doc)
+ epatch "${FILESDIR}/${PN}-2.34.2-fix-build-without-gnome-with-doc.patch"
+ eautoreconf
+ fi
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-07-28 22:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-28 22:11 [gentoo-commits] proj/gnome:gnome-next commit in: net-libs/libsoup/, net-libs/libsoup/files/, net-libs/libsoup-gnome/, Alexandre Restovtsev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox