Class: BuildTool::BuildSystem::KdeL10n

Inherits:
CMake
  • Object
show all
Defined in:
lib/build-tool/build-system/kdel10n.rb

Overview

Custom Build system.

Uses scripts do to the actual work.

Instance Attribute Summary

Attributes inherited from Base

#defaults, #feature, #module, #out_of_source

Instance Method Summary collapse

Methods inherited from CMake

#cmake, #configured?, #install, #install_fast_supported?, #make, #option_string, #progressbar, #reconfigure

Methods inherited from Base

#[], #[]=, #active?, #after_rebase, #append, #build_directory, #check_build_directory, #check_install_prefix, #dup, #env, #install_prefix, #option_hash, #option_names, #option_set?, #parent, #prepare_for_installation, #prepend, #progressbar, #recipe, #remove_build_directory, #remove_source_directory, #set, #source_directory, #to_s

Constructor Details

#initialize(*args) ⇒ KdeL10n

Returns a new instance of KdeL10n.



21
22
23
# File 'lib/build-tool/build-system/kdel10n.rb', line 21

def initialize( *args )
    super( *args )
end

Instance Method Details

#configureObject



25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/build-tool/build-system/kdel10n.rb', line 25

def configure
    if ! File.directory? "#{source_directory}/../scripts"
        raise KdeL10nError, "You have to enable/checkout l10n too."
    end

    dirname = File.basename source_directory
    rc = self.class.execute( "./scripts/autogen.sh #{dirname}", source_directory + "/..", self.module.environment.values )
    if rc != 0
        raise KdeL10nError, "Call to autogen.sh failed!";
    end
    super
end

#nameObject



17
18
19
# File 'lib/build-tool/build-system/kdel10n.rb', line 17

def name
    "kdel10n"
end