File: ruby-gnome2-gemspecs.patch

package info (click to toggle)
ruby-gnome 3.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 29,112 kB
  • sloc: ansic: 97,029; ruby: 70,747; xml: 350; sh: 142; cpp: 45; makefile: 29
file content (22 lines) | stat: -rw-r--r-- 734 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: providing ruby-gnome2 gemspec
From: Antonio Terceiro <terceiro@debian.org>
Origin: https://lists.debian.org/debian-ruby/2017/07/msg00030.html
Forwarded: https://github.com/ruby-gnome2/ruby-gnome2/pull/1078
Last-Update: 2017-07-27

--- a/glib2/lib/gnome2/rake/package-task.rb
+++ b/glib2/lib/gnome2/rake/package-task.rb
@@ -154,6 +154,13 @@
       def define_package_tasks
         Gem::PackageTask.new(@spec) do |pkg|
         end
+        desc "Write #{@spec.name}.gemspec"
+        task :gemspec do
+          File.open("#{@spec.name}.gemspec", 'w') do |f|
+            f.write(@spec.to_ruby)
+          end
+          puts "#{@spec.name}.gemspec created"
+        end
       end
 
       class DependencyConfiguration