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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
#! /usr/bin/env python
# encoding: utf-8
import sys
import Configure
import gnome, python, intltool, misc
VERSION='0.2.6'
APPNAME='hotssh'
srcdir = '.'
blddir = 'build'
def set_options(opt):
opt.tool_options('python')
def configure(conf):
conf.check_tool('gcc gnome python intltool misc')
conf.check_python_version((2,4,2))
conf.check_python_module('dbus')
conf.check_python_module('gobject')
conf.define('VERSION', VERSION)
conf.define('GETTEXT_PACKAGE', 'hotssh')
conf.define('PACKAGE', 'hotssh')
def build(bld):
obj = bld.new_task_gen('py')
obj.find_sources_in_dirs(['hotssh'], exts=['.py'])
obj.install_path = '${PYTHONDIR}/hotssh'
obj = bld.new_task_gen('py')
obj.find_sources_in_dirs(['hotssh/hotlib'], exts=['.py'])
obj.install_path = '${PYTHONDIR}/hotssh/hotlib'
obj = bld.new_task_gen('py')
obj.find_sources_in_dirs(['hotssh/hotlib_ui'], exts=['.py'])
obj.install_path = '${PYTHONDIR}/hotssh/hotlib_ui'
obj = bld.new_task_gen('py')
obj.find_sources_in_dirs(['hotssh/hotvte'], exts=['.py'])
obj.install_path = '${PYTHONDIR}/hotssh/hotvte'
# process desktop.in file
obj=bld.new_task_gen('intltool_in')
obj.source = 'hotssh.desktop.in'
obj.install_path = '${PREFIX}/share/applications'
obj.subdir = 'share/applications'
obj.podir = 'po'
obj.flags = '-d'
bld.install_files('${PREFIX}/share/doc/hotssh-' + VERSION, 'COPYING')
if bld.env['PREFIX'] == '/usr':
bld.install_files('${PREFIX}/../etc/profile.d', 'hotssh.csh')
bld.install_files('${PREFIX}/../etc/profile.d', 'hotssh.sh')
bld.add_subdirs('bin po')
|