gettext-tools.recipe 811 Bytes
Newer Older
1
2
3
4
5
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
from cerbero.utils import shell

class Recipe(recipe.Recipe):
    name = 'gettext-tools'
6
    version = '0.18.3.2'
7
8
    licenses = [License.GPLv3]
    srcdir = 'gettext-tools'
9
10
    stype = SourceType.TARBALL
    tarball_dirname = 'gettext-%(version)s'
11
    url = 'http://ftp.gnu.org/pub/gnu/gettext/gettext-0.18.3.2.tar.gz'
12
13
    platform_deps = {
            Platform.DARWIN:  ['libiconv', 'sed'],
14
            Platform.WINDOWS: ['libiconv', 'mingw-runtime'],}
15
    configure_options = ' --disable-java --disable-csharp --disable-native-java --without-csv'
16
17
18

    def prepare(self):
        if self.config.target_platform == Platform.WINDOWS:
19
            self.configure_options += ' --enable-threads=win32'
20
            self.append_env['LDFLAGS'] = '-liconv'