summaryrefslogtreecommitdiff
path: root/recipes/libsoup.recipe
blob: 41d990bd67c45c048f8f7d469cf3378f3d2bc8df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python


class Recipe(recipe.Recipe):
    name = 'libsoup'
    version = '2.52.2'
    licenses = [License.LGPLv2Plus]
    stype = SourceType.TARBALL
    url = 'http://ftp.gnome.org/pub/gnome/sources/libsoup/2.52/libsoup-2.52.2.tar.xz'
    autoreconf = True
    autoreconf_sh = 'gtkdocize && intltoolize --automake --copy && autoreconf --force --install --verbose'
    configure_options = '--without-gnome --disable-more-warnings --disable-vala'
    deps = ['libxml2', 'glib', 'glib-networking']
    patches = ['libsoup/0001-Rip-out-sqlite-based-cookie-storage.patch',
               'libsoup/0002-Don-t-build-tests.patch',
           ]

    files_libs = ['libsoup-2.4']
    files_devel = ['include/libsoup-2.4', 'lib/pkgconfig/libsoup-2.4.pc']
    files_typelibs = ['Soup-2.4']


    def prepare(self):
        if self.config.target_platform != Platform.LINUX:
            self.configure_options += ' --disable-gtk-doc'

        if self.config.target_platform != Platform.LINUX or \
           self.config.target_distro_version in \
                [DistroVersion.DEBIAN_SQUEEZE,
                 DistroVersion.UBUNTU_MAVERICK,
                 DistroVersion.UBUNTU_LUCID]:
            self.deps += [ 'glib-networking' ]
        if self.config.target_platform in [Platform.WINDOWS, Platform.IOS]:
            self.configure_options += ' --disable-tls-check'