summaryrefslogtreecommitdiff
path: root/recipes/gtk-doc.recipe
blob: db19353a7c4b8cca441c5169f5120e3e6b5a379f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python

class Recipe(recipe.Recipe):
    name = 'gtk-doc'
    version = '1.19'
    stype = SourceType.TARBALL
    url = 'http://ftp.acc.umu.se/pub/GNOME/sources/gtk-doc/1.19/gtk-doc-1.19.tar.xz'
    # TODO: check license - source files are GPLv2+ and COPYING is GPLv3
    licenses = [License.GPLv2Plus]
    deps = ['libxslt']
    platform_deps = {Platform.WINDOWS: ['docbook-xsl', 'docbook-xml'],
                     Platform.DARWIN: ['docbook-xsl', 'docbook-xml']}

    def prepare(self):
        if self.config.target_platform in [Platform.WINDOWS, Platform.DARWIN]:
            self.configure_options = '--with-xml-catalog=%s/etc/catalog.xml' % self.config.prefix