summaryrefslogtreecommitdiff
path: root/devel/ruby-debug/patches/patch-aa
blob: 0d69997c3e431d9570fca41ec3e4e60d5ee97ffc (plain)
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
30
31
32
33
$NetBSD: patch-aa,v 1.2 2008/04/14 21:33:04 jlam Exp $

--- Rakefile.orig	2008-04-14 16:52:26.000000000 -0400
+++ Rakefile
@@ -8,8 +8,8 @@ require 'rake/testtask'
 SO_NAME = "ruby_debug.so"
 
 # ------- Default Package ----------
-RUBY_DEBUG_VERSION = open("ext/ruby_debug.c") do |f| 
-  f.grep(/^#define DEBUG_VERSION/).first[/"(.+)"/,1]
+RUBY_DEBUG_VERSION = open(File.join(File.dirname(__FILE__), 'VERSION')) do |f|
+  f.readlines[0].chomp
 end
 
 COMMON_FILES = FileList[
@@ -18,6 +18,7 @@ COMMON_FILES = FileList[
   'LICENSE',
   'README',
   'Rakefile',
+  'VERSION',
 ]                        
 
 CLI_TEST_FILE_LIST = 'test/test-*.rb'
@@ -158,9 +159,6 @@ EOF
 end
 
 # Rake task to build the default package
-Rake::GemPackageTask.new(base_spec) do |pkg|
-  pkg.need_tar = true
-end
 Rake::GemPackageTask.new(cli_spec) do |pkg|
   pkg.need_tar = true
 end