Sha256: f5b5748cc8fdc23fba3a065274e0818e9aed75bb0f8e8e8256d19dad43020231

Contents?: true

Size: 1.65 KB

Versions: 8

Compression:

Stored size: 1.65 KB

Contents

# -*- ruby -*-

$LOAD_PATH.unshift("./../glib2/lib")
require 'gnome2-raketask'

package = GNOME2Package.new do |_package|
  _package.summary = "Ruby/GTK2 is a Ruby binding of GTK+-2.x."
  _package.description = "Ruby/GTK2 is a Ruby binding of GTK+-2.x."
  _package.dependency.gem.runtime = ["atk", "pango", "gdk_pixbuf2"]
  _package.win32.packages = []
  _package.win32.dependencies = []
  _package.win32.build_dependencies = [
    "glib2", "atk", "pango", "gdk_pixbuf2",
  ]
  _package.external_packages = [
    {
      :name => "gtk+",
      :download_site => :gnome,
      :label => "gtk+",
      :version => "2.24.22",
      :compression_method => "xz",
      :windows => {
        :configure_args => [
          "--with-included-immodules",
        ],
        :need_autoreconf => true,
        :patches => [
          "gtk+-2.24.22-add-missing-exeext-and-fix-directory.diff",
        ],
        :built_file => "bin/libgtk-win32-2.0-0.dll",
      },
    },
    {
      :name => "hicolor-icon-theme",
      :download_base_url => "http://icon-theme.freedesktop.org/releases",
      :label => "gtk-hi-color-icon-theme",
      :version => "0.13",
      :windows => {
        :configure_args => [],
        :build_concurrently => false,
        :built_file => "share/icons/hicolor/index.theme",
      }
    },
  ]
end
package.define_tasks

namespace :win32 do
  desc "create default gtkrc"
  task :gtkrc do
    gtkrc_path = File.join("vendor", "local", "etc", "gtk-2.0", "gtkrc")
    mkdir_p(File.dirname(gtkrc_path))
    File.open(gtkrc_path, "w") do |gtkrc|
      gtkrc.puts('gtk-theme-name = "MS-Windows"')
    end
  end

  namespace :builder do
    task :after => ["win32:gtkrc"]
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gtk2-2.2.3-x86-mingw32 Rakefile
gtk2-2.2.3 Rakefile
gtk2-2.2.2-x86-mingw32 Rakefile
gtk2-2.2.2 Rakefile
gtk2-2.2.1-x86-mingw32 Rakefile
gtk2-2.2.1 Rakefile
gtk2-2.2.0-x86-mingw32 Rakefile
gtk2-2.2.0 Rakefile