Sha256: 0428b35dacc2904b748b6de4b92e091f0ecb39278b1df47116a440e636864969
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
# Unconventional way of extconf-ing # http://yorickpeterse.com/articles/hacking-extconf-rb/ require 'mkmf' # Stops the installation process if one of these commands is not found in # $PATH. find_executable('make') find_executable('qmake') # Create a dummy extension file. Without this RubyGems would abort the # installation process. On Linux this would result in the file "wat.so" # being created in the current working directory. # # Normally the generated Makefile would take care of this but since we # don't generate one we'll have to do this manually. # # fake_extension = File.join(Dir.pwd, 'kdiff3.' + RbConfig::CONFIG['DLEXT']) # File.open(fake_extension, "w") {} Dir.chdir('./') do exec './configure qt4' end # fail if compiling didn't succeed unless File.exist?('releaseQT/kdiff3') abort('kdiff3 was not successfully compiled') end # This is normally set by calling create_makefile() but we don't need that # method since we'll provide a dummy Makefile. Without setting this value # RubyGems will abort the installation. $makefile_created = true
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kdiff3-0.9.3 | ext/kdiff3/extconf.rb |