class RBT::CreatePkgconfigFileForLua

Public Class Methods

[](i = ARGV) click to toggle source
#

RBT::CreatePkgconfigFileForLua[]

#
# File lib/rbt/utility_scripts/classes_for_individual_programs/create_pkgconfig_file_for_lua.rb, line 99
def self.[](i = ARGV)
  new(i)
end
new( commandline_arguments = nil, run_already = true ) click to toggle source
#

initialize

#
# File lib/rbt/utility_scripts/classes_for_individual_programs/create_pkgconfig_file_for_lua.rb, line 25
def initialize(
    commandline_arguments = nil,
    run_already           = true
  )
  reset
  set_commandline_arguments(
    commandline_arguments
  )
  run if run_already
end

Public Instance Methods

create_the_lua_pkgconfig_file() click to toggle source
#

create_the_lua_pkgconfig_file

#
# File lib/rbt/utility_scripts/classes_for_individual_programs/create_pkgconfig_file_for_lua.rb, line 59
  def create_the_lua_pkgconfig_file
    @dataset = RBT.return_cookbook_for(:lua)
    into = @store_in_this_directory+'lib/pkgconfig/lua.pc'
    what = "V=5.3
R=#{@use_this_program_version}

prefix=#{@use_this_prefix}
INSTALL_BIN=${prefix}/bin
INSTALL_INC=${prefix}/include
INSTALL_LIB=${prefix}/lib
INSTALL_MAN=${prefix}/share/man/man1
INSTALL_LMOD=${prefix}/share/lua/${V}
INSTALL_CMOD=${prefix}/lib/lua/${V}
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: Lua
Description: #{@dataset.short_description?}
Version: ${R}
Requires:
Libs: -L${libdir} -llua -lm -ldl
Cflags: -I${includedir}
"
    write_what_into(what, into)
    if File.exist? into
      opne "The file #{sfile(into)} was generated."
    end
  end
reset() click to toggle source
#

reset (reset tag)

#
Calls superclass method RBT::Base#reset
# File lib/rbt/utility_scripts/classes_for_individual_programs/create_pkgconfig_file_for_lua.rb, line 39
def reset
  super()
  infer_the_namespace
  # ======================================================================= #
  # === @use_this_prefix
  # ======================================================================= #
  @use_this_program_version = '5.3.5'
  # ======================================================================= #
  # === @use_this_prefix
  # ======================================================================= #
  @use_this_prefix = "#{programs_dir?}Lua/#{@use_this_program_version}"
  # ======================================================================= #
  # === @store_in_this_directory
  # ======================================================================= #
  @store_in_this_directory = "#{@use_this_prefix}/"
end
run() click to toggle source
#

run (run tag)

#
# File lib/rbt/utility_scripts/classes_for_individual_programs/create_pkgconfig_file_for_lua.rb, line 92
def run
  create_the_lua_pkgconfig_file
end