# -*- ruby -*- # # Copyright (C) 2013-2014 Ruby-GNOME2 Project Team # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

$LOAD_PATH.unshift(“./../glib2/lib”) require “gnome2/rake/package-task”

package_task = GNOME2::Rake::PackageTask.new do |package|

package.summary = "Ruby/WebKitGTK is a Ruby binding of WebKitGTK+."
package.description = "Ruby/WebKitGTK is a Ruby binding of WebKitGTK+."
package.dependency.gem.runtime = ["gobject-introspection", "gtk3"]
package.dependency.gem.development = ["test-unit-notify"]
package.windows.packages = []
package.windows.dependencies = []
package.windows.build_dependencies = [
  "glib2",
  "gobject-introspection",
  "atk",
  "pango",
  "gdk_pixbuf2",
  "gdk3",
  "gstreamer",
]
package.windows.gobject_introspection_dependencies = [
  "atk",
  "gdk_pixbuf2",
  "pango",
  "gdk3",
  "gstreamer",
]
package.external_packages = [
  # {
  #   :name => "libjpeg",
  #   :base_name => "jpeg-9a",
  #   :archive_base_name => "jpegsrc.v9a.tar.gz",
  #   :download_base_url => "http://www.ijg.org/files",
  #   :label => "libjpeg",
  #   :windows => {
  #     :configure_args => [],
  #     :built_file => "bin/libjpeg-9.dll",
  #   },
  # },
  # {
  #   :name => "libwebp",
  #   :download_base_url => "https://webp.googlecode.com/files",
  #   :label => "WebP",
  #   :version => "0.4.0",
  #   :windows => {
  #     :built_file => "bin/libwebp-5.dll",
  #   },
  # },
  # {
  #   :name => "sqlite-autoconf",
  #   :download_base_url => "http://www.sqlite.org/2014",
  #   :label => "SQLite",
  #   :version => "3080600",
  #   :compression_method => "gz",
  #   :windows => {
  #     :configure_args => [],
  #     :built_file => "bin/libsqlite3-0.dll",
  #   },
  # },
  # {
  #   :name => "libsoup",
  #   :download_site => :gnome,
  #   :label => "libsoup",
  #   :version => "2.48.0",
  #   :compression_method => "xz",
  #   :windows => {
  #     :configure_args => [
  #       "--enable-introspection",
  #       "--without-apache-httpd",
  #     ],
  #     :build_concurrently => false,
  #     :patches => [
  #       "libsoup-2.48.0-remove-nonexistent-symbol.diff",
  #     ],
  #     :built_file => "bin/libsoup-2.4-1.dll",
  #   },
  # },
  # {
  #   :name => "libiconv",
  #   :label => "iconv",
  #   :version => "1.14",
  #   :download_base_url => "http://ftp.gnu.org/pub/gnu/libiconv",
  #   :compression_method => "gz",
  #   :windows => {
  #     :built_file => "bin/libiconv-2.dll",
  #   },
  # },
  # {
  #   :name => "libxslt",
  #   :version => "1.1.28",
  #   :download_base_url => "ftp://xmlsoft.org/libxslt",
  #   :compression_method => "gz",
  #   :windows => {
  #     :built_file => "bin/libxslt-1.dll",
  #     :configure_args => [
  #       "--without-python",
  #     ],
  #     :patches => [
  #       "libxslt-1.1.28-add-mkdir-fallback.diff",
  #     ],
  #   },
  # },
  # {
  #   :name => "webkitgtk",
  #   :download_base_url => "http://webkitgtk.org/releases",
  #   :label => "WebKitGTK+",
  #   :version => "2.6.0",
  #   :compression_method => "xz",
  #   :windows => {
  #     :cmake_args => [
  #       "-DPORT=GTK",
  #       "-DJPEG_INCLUDE_DIR=#{package.windows.absolute_binary_dir}/include",
  #       "-DJPEG_LIBRARY=#{package.windows.absolute_binary_dir}/lib",
  #       "-DENABLE_PLUGIN_PROCESS_GTK2=OFF",
  #       "-DENABLE_X11_TARGET=OFF",
  #     ],
  #     :patches => [
  #       "webkitgtk-2.6.0-buildable.diff",
  #     ],
  #   },
  # },
]

end package_task.define

namespace :dependency do

desc "Install depenencies"
task :install do
  # TODO: Install gir1.2-webkit-3.0 on Debian.
end

end

task :build => “dependency:install”