Package: ruby-rdiscount / 2.1.7.1-2

01_use-system-libmarkdown.patch Patch series | 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
Description: Use system libmarkdown
Origin: vendor
Bug-Debian: https://bugs.debian.org/649489
Forwarded: not-needed
Author: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2014-04-12

--- a/Rakefile
+++ b/Rakefile
@@ -17,7 +17,7 @@
 end
 CLEAN.include "ext/ruby-*"
 
-file 'ext/Makefile' => FileList['ext/*.{c,h,rb}', "ext/ruby-#{RUBYDIGEST}"] do
+file 'ext/Makefile' => FileList['ext/*.rb', 'ext/rdiscount.c', "ext/ruby-#{RUBYDIGEST}"] do
   chdir('ext') { ruby 'extconf.rb' }
 end
 CLEAN.include 'ext/Makefile', 'ext/mkmf.log'
--- a/ext/extconf.rb
+++ b/ext/extconf.rb
@@ -2,6 +2,8 @@
 
 dir_config('rdiscount')
 
+have_library('markdown')
+
 HAVE_RANDOM = have_func('random')
 HAVE_SRANDOM = have_func('srandom')
 HAVE_RAND = have_func('rand')