File: ruby-gnome2-gemspecs.patch

package info (click to toggle)
ruby-gnome 4.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 26,648 kB
  • sloc: ruby: 67,701; ansic: 67,431; xml: 350; sh: 201; cpp: 45; makefile: 42
file content (29 lines) | stat: -rw-r--r-- 986 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From: Antonio Terceiro <terceiro@debian.org>
Date: Sun, 25 Aug 2024 21:03:57 -0300
Subject: providing ruby-gnome2 gemspec

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
---
 glib2/lib/gnome/rake/package-task.rb | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/glib2/lib/gnome/rake/package-task.rb b/glib2/lib/gnome/rake/package-task.rb
index ba32dd1..ead325b 100644
--- a/glib2/lib/gnome/rake/package-task.rb
+++ b/glib2/lib/gnome/rake/package-task.rb
@@ -166,6 +166,13 @@ module GNOME
       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