#! /usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2006-2009 (ita)

bld.install_files('${DATADIR}/hamster-applet', '*.ui')
bld.install_files('${DATADIR}/hamster-applet', 'hamster.db Hamster_Applet.xml')
bld.install_files('${DATADIR}/hamster-applet/art', 'art/*.png')
bld.install_files('${DATADIR}/hamster-applet', 'report_template.html')

bld.install_files('${DATADIR}/icons/hicolor/16x16/apps',   'art/16x16/hamster-applet.png')
bld.install_files('${DATADIR}/icons/hicolor/22x22/apps',   'art/22x22/hamster-applet.png')
bld.install_files('${DATADIR}/icons/hicolor/32x32/apps',   'art/32x32/hamster-applet.png')
bld.install_files('${DATADIR}/icons/hicolor/48x48/apps',   'art/scalable/hamster-applet.png')
bld.install_files('${DATADIR}/icons/hicolor/scalable/apps','art/scalable/hamster-applet.svg')


bld(features = "subst",
    source= "hamster-standalone.desktop.in.in",
    target= "hamster-standalone.desktop.in",
    dict = bld.env
   )

bld(features = "subst",
    source= "Hamster_Applet.server.in.in",
    target= "Hamster_Applet.server.in",
    dict = bld.env
   )

bld.add_group()

# process .in files with intl_tool
bld(features = 'intltool_in',
    source   = 'hamster-applet.schemas.in',
    install_path = '${SYSCONFDIR}/gconf/schemas',
    podir    = '../po',
    flags    = ['-s', '-u', '-c'])

bld(features = 'intltool_in',
    source   = 'hamster-standalone.desktop.in',
    install_path = '${DATADIR}/applications',
    podir    = '../po',
    flags    = ['-d', '-q', '-u', '-c'])

bld(features = 'intltool_in',
    source   = 'Hamster_Applet.server.in',
    install_path = '${LIBDIR}/bonobo/servers',
    podir    = '../po',
    flags    = ['-o', '-u', '-c'])
