| 1 |
From: Alessandro Ghedini <[email protected]> |
| 2 |
Date: Thu, 8 Aug 2024 23:09:06 -0300 |
| 3 |
Subject: Use system libmarkdown |
| 4 |
|
| 5 |
Origin: vendor |
| 6 |
Bug-Debian: https://bugs.debian.org/649489 |
| 7 |
Forwarded: not-needed |
| 8 |
Last-Update: 2014-04-12 |
| 9 |
--- |
| 10 |
Rakefile | 2 +- |
| 11 |
ext/extconf.rb | 2 ++ |
| 12 |
2 files changed, 3 insertions(+), 1 deletion(-) |
| 13 |
|
| 14 |
diff --git a/Rakefile b/Rakefile |
| 15 |
index 4ce58c3..1e32bc2 100644 |
| 16 |
--- a/Rakefile |
| 17 |
+++ b/Rakefile |
| 18 |
@@ -17,7 +17,7 @@ file "ext/ruby-#{RUBYDIGEST}" do |f| |
| 19 |
end |
| 20 |
CLEAN.include "ext/ruby-*" |
| 21 |
|
| 22 |
|
| 23 |
+file 'ext/Makefile' => FileList['ext/*.rb', 'ext/rdiscount.c', "ext/ruby-#{RUBYDIGEST}"] do |
| 24 |
chdir('ext') { ruby 'extconf.rb' } |
| 25 |
end |
| 26 |
CLEAN.include 'ext/Makefile', 'ext/mkmf.log' |
| 27 |
diff --git a/ext/extconf.rb b/ext/extconf.rb |
| 28 |
index 442eef7..09f23ba 100644 |
| 29 |
--- a/ext/extconf.rb |
| 30 |
+++ b/ext/extconf.rb |
| 31 |
@@ -2,6 +2,8 @@ require 'mkmf' |
| 32 |
|
| 33 |
dir_config('rdiscount') |
| 34 |
|
| 35 |
+have_library('markdown') |
| 36 |
+ |
| 37 |
HAVE_RANDOM = have_func('random') |
| 38 |
HAVE_SRANDOM = have_func('srandom') |
| 39 |
HAVE_RAND = have_func('rand') |