Skip to content

Commit

Permalink
gtk2 : add static gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
cedlemo committed Jun 2, 2018
1 parent 0576e4c commit 54ad975
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 5 deletions.
File renamed without changes.
10 changes: 5 additions & 5 deletions gtk2/Rakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- ruby -*-
#
# Copyright (C) 2011-2015 Ruby-GNOME2 Project Team
# Copyright (C) 2011-2018 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
Expand All @@ -19,9 +19,10 @@
$LOAD_PATH.unshift("./../glib2/lib")
require 'gnome2/rake/package-task'

package_task = GNOME2::Rake::PackageTask.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_name = File.basename(__dir__)
spec = Gem::Specification.load("#{package_name}.gemspec")

GNOME2::Rake::PackageTask.define(spec) do |package|
package.dependency.gem.runtime = ["atk", "pango", "gdk_pixbuf2"]
package.windows.packages = []
package.windows.dependencies = []
Expand Down Expand Up @@ -61,7 +62,6 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
},
]
end
package_task.define

namespace :windows do
desc "create default gtkrc"
Expand Down
44 changes: 44 additions & 0 deletions gtk2/gtk2.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# -*- ruby -*-
#
# Copyright (C) 2018 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

require_relative "../glib2/version.rb"

Gem::Specification.new do |s|
s.name = "gtk2"
s.summary = "Ruby/GTK2 is a Ruby binding of GTK+-2.x."
s.description = "Ruby/GTK2 is a Ruby binding of GTK+-2.x."
s.author = "The Ruby-GNOME2 Project Team"
s.email = "ruby-gnome2-devel-en@lists.sourceforge.net"
s.homepage = "https://ruby-gnome2.osdn.jp/"
s.licenses = ["LGPL-2.1+"]
s.version = ruby_glib2_version
s.extensions = ["ext/#{s.name}/extconf.rb"]
s.require_paths = ["lib"]
s.files = [
"COPYING.LIB",
"README.md",
"Rakefile",
"#{s.name}.gemspec",
"extconf.rb",
"ext/#{s.name}/depend",
]
s.files += Dir.glob("lib/**/*.rb")
s.files += Dir.glob("ext/#{s.name}/*.{c,h,def,rb}")
s.files += Dir.glob("sample/**/*")
s.files += Dir.glob("test/**/*")
end

0 comments on commit 54ad975

Please sign in to comment.