Sha256: 412774008f54e71a9d9884b15831a99f67a2c3b71eda16e3e0c98b8dd9dc0c2f

Contents?: true

Size: 1.14 KB

Versions: 133

Compression:

Stored size: 1.14 KB

Contents

#!/usr/bin/env ruby

require 'pathname'
require 'mkmf'
require 'rbconfig'
require 'fileutils'

package = "atk"

base_dir = Pathname(__FILE__).dirname.expand_path
ext_dir = base_dir + "ext" + package
mkmf_gnome2_dir = base_dir + 'lib'

ruby = File.join(RbConfig::CONFIG['bindir'],
                 RbConfig::CONFIG['ruby_install_name'] +
                 RbConfig::CONFIG["EXEEXT"])

build_dir = Pathname("ext") + package
FileUtils.mkdir_p(build_dir.to_s) unless build_dir.exist?
extconf_rb_path = ext_dir + "extconf.rb"
system(ruby, "-C", build_dir.to_s, extconf_rb_path.to_s, *ARGV) || exit(false)

create_makefile(package)
FileUtils.mv("Makefile", "Makefile.lib")

File.open("Makefile", "w") do |makefile|
  makefile.puts(<<-EOM)
all:
	(cd ext/#{package} && $(MAKE))
	$(MAKE) -f Makefile.lib

install:
	(cd ext/#{package} && $(MAKE) install)
	$(MAKE) -f Makefile.lib install

site-install:
	(cd ext/#{package} && $(MAKE) site-install)
	$(MAKE) -f Makefile.lib site-install

clean:
	(cd ext/#{package} && $(MAKE) clean)
	$(MAKE) -f Makefile.lib clean

distclean:
	(cd ext/#{package} && $(MAKE) distclean)
	$(MAKE) -f Makefile.lib distclean
	@rm -f Makefile.lib
EOM
end

Version data entries

133 entries across 125 versions & 2 rubygems

Version Path
atk-3.1.0-x86-mingw32 extconf.rb
atk-3.1.0 extconf.rb
atk-3.0.9-x64-mingw32 extconf.rb
atk-3.0.9-x86-mingw32 extconf.rb
atk-3.0.9 extconf.rb
atk-3.0.8-x86-mingw32 extconf.rb
atk-3.0.8-x64-mingw32 extconf.rb
atk-3.0.8 extconf.rb
atk-3.0.7-x64-mingw32 extconf.rb
atk-3.0.7-x86-mingw32 extconf.rb
atk-3.0.7 extconf.rb
atk-3.0.6-x64-mingw32 extconf.rb
atk-3.0.6-x86-mingw32 extconf.rb
atk-3.0.6 extconf.rb
atk-3.0.5-x86-mingw32 extconf.rb
atk-3.0.5-x64-mingw32 extconf.rb
atk-3.0.5 extconf.rb
atk-3.0.4-x64-mingw32 extconf.rb
atk-3.0.4-x86-mingw32 extconf.rb
atk-3.0.4 extconf.rb