Commit 61b613d5 authored by Gunnar Wolf's avatar Gunnar Wolf

Imported Upstream version 2.13.2

parent ae1d670d
RMagick 2.13.2
o Fixed issues preventing RMagick from working with version 6.8 or higher
o Fixed issues preventing RMagick from working with ruby 1.9.3
RMagick 2.13.1
o Fixed bug preventing RMagick from working with version 6.5.9 or higher
......
This diff is collapsed.
......@@ -68,7 +68,7 @@ def reversion_file(name)
tmp_name = name + "_tmp"
mv name, tmp_name
begin
File.open(name, "w") { |f| f.write lines }
File.open(name, "w") { |f| lines.each { |line| f.write line } }
rescue
mv tmp_name, name
ensure
......
......@@ -6,7 +6,7 @@
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
<title>RMagick 2.13.1: Common Tasks</title>
<title>RMagick 2.13.2: Common Tasks</title>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
......@@ -31,7 +31,7 @@
</head>
<body>
<h6 id="header">RMagick 2.13.1 User's Guide and Reference</h6>
<h6 id="header">RMagick 2.13.2 User's Guide and Reference</h6>
<div class="nav">
&laquo;&nbsp;<a href="optequiv.html">Prev</a> | <a href=
......
......@@ -6,7 +6,7 @@
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
<title>RMagick 2.13.1: Constants</title>
<title>RMagick 2.13.2: Constants</title>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
......@@ -61,7 +61,7 @@
</head>
<body>
<h6 id="header">RMagick 2.13.1 User's Guide and Reference</h6>
<h6 id="header">RMagick 2.13.2 User's Guide and Reference</h6>
<div class="nav">
&laquo;&nbsp;<a href="info.html">Prev</a> | <a href=
......
......@@ -6,7 +6,7 @@
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
<title>RMagick 2.13.1: class Draw</title>
<title>RMagick 2.13.2: class Draw</title>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
......@@ -25,7 +25,7 @@
</head>
<body>
<h6 id="header">RMagick 2.13.1 User's Guide and Reference</h6>
<h6 id="header">RMagick 2.13.2 User's Guide and Reference</h6>
<div class="nav">
&laquo;&nbsp;<a href="image3.html">Prev</a> | <a href=
......
......@@ -6,7 +6,7 @@
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />
<title>RMagick 2.13.1: class ImageList</title>
<title>RMagick 2.13.2: class ImageList</title>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
......@@ -20,7 +20,7 @@
</head>
<body>
<h6 id="header">RMagick 2.13.1 User's Guide and Reference</h6>
<h6 id="header">RMagick 2.13.2 User's Guide and Reference</h6>
<div class="nav">
&laquo;&nbsp;<a href="magick.html">Prev</a> | <a href=
......
......@@ -6,7 +6,7 @@
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
<title>RMagick 2.13.1: class Image (class methods and instance
<title>RMagick 2.13.2: class Image (class methods and instance
methods a-d)</title>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
......@@ -48,7 +48,7 @@
</head>
<body>
<h6 id="header">RMagick 2.13.1 User's Guide and Reference</h6>
<h6 id="header">RMagick 2.13.2 User's Guide and Reference</h6>
<div class="nav">
&laquo;&nbsp;<a href="imageattrs.html">Prev</a> | <a href=
......
......@@ -6,7 +6,7 @@
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
<title>RMagick 2.13.1: class Image (instance methods e-o)</title>
<title>RMagick 2.13.2: class Image (instance methods e-o)</title>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
......@@ -47,7 +47,7 @@
</head>
<body>
<h6 id="header">RMagick 2.13.1 User's Guide and Reference</h6>
<h6 id="header">RMagick 2.13.2 User's Guide and Reference</h6>
<div class="nav">
&laquo;&nbsp;<a href="image1.html">Prev</a> | <a href=
......
......@@ -6,7 +6,7 @@
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
<title>RMagick 2.13.1: class Image (instance methods p-w)</title>
<title>RMagick 2.13.2: class Image (instance methods p-w)</title>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
......@@ -51,7 +51,7 @@
</head>
<body>
<h6 id="header">RMagick 2.13.1 User's Guide and Reference</h6>
<h6 id="header">RMagick 2.13.2 User's Guide and Reference</h6>
<div class="nav">
&laquo;&nbsp;<a href="image2.html">Prev</a> | <a href=
......
......@@ -6,7 +6,7 @@
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />
<title>RMagick 2.13.1: class Image (attribute methods)</title>
<title>RMagick 2.13.2: class Image (attribute methods)</title>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
......@@ -25,7 +25,7 @@
</head>
<body>
<h6 id="header">RMagick 2.13.1 User's Guide and Reference</h6>
<h6 id="header">RMagick 2.13.2 User's Guide and Reference</h6>
<div class="nav">
&laquo;&nbsp;<a href="ilist.html">Prev</a> | <a href=
......
......@@ -6,7 +6,7 @@
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
<title>RMagick 2.13.1: ImageMagick Conventions</title>
<title>RMagick 2.13.2: ImageMagick Conventions</title>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
......@@ -69,7 +69,7 @@
</head>
<body>
<h6 id="header">RMagick 2.13.1 User's Guide and Reference</h6>
<h6 id="header">RMagick 2.13.2 User's Guide and Reference</h6>
<div class="nav">
&laquo;&nbsp;<a href="usage.html">Prev</a> | <a href=
......
......@@ -6,7 +6,7 @@
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
<title>RMagick 2.13.1 User's Guide and Reference</title>
<title>RMagick 2.13.2 User's Guide and Reference</title>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
......@@ -105,7 +105,7 @@
</div>
<p id="magick">Ruby+ImageMagick<span class="tm">TM</span><br />
Version 2.13.1</p>
Version 2.13.2</p>
<h1>User's Guide and Reference</h1>
......@@ -293,7 +293,7 @@
<h3>About this document</h3>
<p>This document describes Version 2.13.1 of RMagick. It is
<p>This document describes Version 2.13.2 of RMagick. It is
divided into 4 parts. The first is this page. The second part is
a user's guide covering both RMagick and ImageMagick usage and
conventions. The third part is a reference guide to the
......
......@@ -6,7 +6,7 @@
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />
<title>RMagick 2.13.1: class Image::Info - Optional method
<title>RMagick 2.13.2: class Image::Info - Optional method
arguments</title>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
......@@ -44,7 +44,7 @@
</head>
<body>
<h6 id="header">RMagick 2.13.1 User's Guide and Reference</h6>
<h6 id="header">RMagick 2.13.2 User's Guide and Reference</h6>
<div class="nav">
&laquo;&nbsp;<a href="struct.html">Prev</a> | <a href=
......
......@@ -6,7 +6,7 @@
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />
<title>RMagick 2.13.1: module Magick</title>
<title>RMagick 2.13.2: module Magick</title>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
......@@ -24,7 +24,7 @@
</head>
<body>
<h6 id="header">RMagick 2.13.1 User's Guide and Reference</h6>
<h6 id="header">RMagick 2.13.2 User's Guide and Reference</h6>
<div class="nav">
&laquo;&nbsp;<a href="comtasks.html">Prev</a> | <a href=
......
......@@ -6,7 +6,7 @@
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
<title>RMagick 2.13.1: Magick Command Options and Their Equivalent
<title>RMagick 2.13.2: Magick Command Options and Their Equivalent
Methods</title>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
......@@ -70,7 +70,7 @@
</head>
<body>
<h6 id="header">RMagick 2.13.1 User's Guide and Reference</h6>
<h6 id="header">RMagick 2.13.2 User's Guide and Reference</h6>
<div class="nav">
&laquo; <a href="index.html">Prev</a> | <a href=
......
......@@ -6,7 +6,7 @@
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
<title>RMagick 2.13.1: RVG Reference: RVG Class</title>
<title>RMagick 2.13.2: RVG Reference: RVG Class</title>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
......@@ -27,7 +27,7 @@
</head>
<body>
<h6 id="header">RMagick 2.13.1 User's Guide and Reference</h6>
<h6 id="header">RMagick 2.13.2 User's Guide and Reference</h6>
<div class="nav">
&laquo;&nbsp;<a href="rvgtut.html">Prev</a> | <a href=
......
......@@ -6,7 +6,7 @@
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
<title>RMagick 2.13.1: RVG Reference: RVG::ClipPath Class</title>
<title>RMagick 2.13.2: RVG Reference: RVG::ClipPath Class</title>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
......@@ -27,7 +27,7 @@
</head>
<body>
<h6 id="header">RMagick 2.13.1 User's Guide and Reference</h6>
<h6 id="header">RMagick 2.13.2 User's Guide and Reference</h6>
<div class="nav">
&laquo;&nbsp;<a href="rvgpattern.html">Prev</a> | <a href=
......
......@@ -6,7 +6,7 @@
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
<title>RMagick 2.13.1: RVG Reference: RVG::Group Class</title>
<title>RMagick 2.13.2: RVG Reference: RVG::Group Class</title>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
......@@ -27,7 +27,7 @@
</head>
<body>
<h6 id="header">RMagick 2.13.1 User's Guide and Reference</h6>
<h6 id="header">RMagick 2.13.2 User's Guide and Reference</h6>
<div class="nav">
&laquo;&nbsp;<a href="rvg.html">Prev</a> | <a href=
......
......@@ -6,7 +6,7 @@
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
<title>RMagick 2.13.1: RVG Reference: RVG::Image Class</title>
<title>RMagick 2.13.2: RVG Reference: RVG::Image Class</title>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
......@@ -27,7 +27,7 @@
</head>
<body>
<h6 id="header">RMagick 2.13.1 User's Guide and Reference</h6>
<h6 id="header">RMagick 2.13.2 User's Guide and Reference</h6>
<div class="nav">
&laquo;&nbsp;<a href="rvggroup.html">Prev</a> | <a href=
......
......@@ -6,7 +6,7 @@
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
<title>RMagick 2.13.1: RVG Reference: RVG::Pattern Class</title>
<title>RMagick 2.13.2: RVG Reference: RVG::Pattern Class</title>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
......@@ -27,7 +27,7 @@
</head>
<body>
<h6 id="header">RMagick 2.13.1 User's Guide and Reference</h6>
<h6 id="header">RMagick 2.13.2 User's Guide and Reference</h6>
<div class="nav">
&laquo;&nbsp;<a href="rvgimage.html">Prev</a> | <a href=
......
......@@ -6,7 +6,7 @@
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
<title>RMagick 2.13.1: RVG Reference: Shapes</title>
<title>RMagick 2.13.2: RVG Reference: Shapes</title>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
......@@ -28,7 +28,7 @@
</head>
<body>
<h6 id="header">RMagick 2.13.1 User's Guide and Reference</h6>
<h6 id="header">RMagick 2.13.2 User's Guide and Reference</h6>
<div class="nav">
&laquo;&nbsp;<a href="rvgstyle.html">Prev</a> | <a href=
......
......@@ -6,7 +6,7 @@
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
<title>RMagick 2.13.1: RVG Reference: Styles</title>
<title>RMagick 2.13.2: RVG Reference: Styles</title>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
......@@ -27,7 +27,7 @@
</head>
<body>
<h6 id="header">RMagick 2.13.1 User's Guide and Reference</h6>
<h6 id="header">RMagick 2.13.2 User's Guide and Reference</h6>
<div class="nav">
&laquo;&nbsp;<a href="rvguse.html">Prev</a> | <a href=
......
......@@ -6,7 +6,7 @@
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
<title>RMagick 2.13.1: RVG Reference: RVG::Text Class</title>
<title>RMagick 2.13.2: RVG Reference: RVG::Text Class</title>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
......@@ -33,7 +33,7 @@
</head>
<body>
<h6 id="header">RMagick 2.13.1 User's Guide and Reference</h6>
<h6 id="header">RMagick 2.13.2 User's Guide and Reference</h6>
<div class="nav">
&laquo;&nbsp;<a href="rvgclip.html">Prev</a> | <a href=
......
......@@ -6,7 +6,7 @@
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
<title>RMagick 2.13.1: RVG Reference: RVG::Tspan Class</title>
<title>RMagick 2.13.2: RVG Reference: RVG::Tspan Class</title>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
......@@ -27,7 +27,7 @@
</head>
<body>
<h6 id="header">RMagick 2.13.1 User's Guide and Reference</h6>
<h6 id="header">RMagick 2.13.2 User's Guide and Reference</h6>
<div class="nav">
&laquo;&nbsp;<a href="rvgtext.html">Prev</a> | <a href=
......
......@@ -9,7 +9,7 @@
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
<title>RMagick 2.13.1: RVG Tutorial</title>
<title>RMagick 2.13.2: RVG Tutorial</title>
<meta name="GENERATOR" content="Quanta Plus" />
<link rel="stylesheet" type="text/css" href="css/doc.css" />
<style type="text/css">
......@@ -23,7 +23,7 @@
</head>
<body>
<h6 id="header">RMagick 2.13.1 User's Guide and Reference</h6>
<h6 id="header">RMagick 2.13.2 User's Guide and Reference</h6>
<div class="nav">
&laquo;&nbsp;<a href="constants.html">Prev</a> | <a href=
......
......@@ -6,7 +6,7 @@
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
<title>RMagick 2.13.1: RVG Reference: RVG::Use Class</title>
<title>RMagick 2.13.2: RVG Reference: RVG::Use Class</title>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
......@@ -27,7 +27,7 @@
</head>
<body>
<h6 id="header">RMagick 2.13.1 User's Guide and Reference</h6>
<h6 id="header">RMagick 2.13.2 User's Guide and Reference</h6>
<div class="nav">
&laquo;&nbsp;<a href="rvgtspan.html">Prev</a> | <a href=
......
......@@ -6,7 +6,7 @@
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
<title>RMagick 2.13.1: RVG Reference: Transforms</title>
<title>RMagick 2.13.2: RVG Reference: Transforms</title>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
......@@ -28,7 +28,7 @@
</head>
<body>
<h6 id="header">RMagick 2.13.1 User's Guide and Reference</h6>
<h6 id="header">RMagick 2.13.2 User's Guide and Reference</h6>
<div class="nav">
&laquo;&nbsp;<a href="rvgshape.html">Prev</a> | <a href=
......
......@@ -6,7 +6,7 @@
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />
<title>RMagick 2.13.1: Miscellaneous classes</title>
<title>RMagick 2.13.2: Miscellaneous classes</title>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
......@@ -27,7 +27,7 @@
</head>
<body>
<h6 id="header">RMagick 2.13.1 User's Guide and Reference</h6>
<h6 id="header">RMagick 2.13.2 User's Guide and Reference</h6>
<div class="nav">
&laquo;&nbsp;<a href="draw.html">Prev</a> | <a href=
......
......@@ -6,7 +6,7 @@
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
<title>RMagick 2.13.1: How to use RMagick</title>
<title>RMagick 2.13.2: How to use RMagick</title>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
......@@ -90,7 +90,7 @@
</head>
<body>
<h6 id="header">RMagick 2.13.1 User's Guide and Reference</h6>
<h6 id="header">RMagick 2.13.2 User's Guide and Reference</h6>
<div class="nav">
&laquo;&nbsp;<a href="index.html">Prev</a> | <a href=
......
This diff is collapsed.
require "mkmf"
require "date"
RMAGICK_VERS = "2.13.1"
RMAGICK_VERS = "2.13.2"
MIN_RUBY_VERS = "1.8.5"
MIN_RUBY_VERS_NO = MIN_RUBY_VERS.tr(".","").to_i
MIN_IM_VERS = "6.4.9"
......@@ -125,7 +125,8 @@ end
if RUBY_PLATFORM !~ /mswin|mingw/
# Check for compiler. Extract first word so ENV['CC'] can be a program name with arguments.
cc = (ENV["CC"] or Config::CONFIG["CC"] or "gcc").split(' ').first
config = defined?(RbConfig) ? ::RbConfig : ::Config
cc = (ENV["CC"] or config::CONFIG["CC"] or "gcc").split(' ').first
unless find_executable(cc)
exit_failure "No C compiler found in ${ENV['PATH']}. See mkmf.log for details."
end
......@@ -204,7 +205,7 @@ end
if RUBY_PLATFORM !~ /mswin|mingw/
unless have_library("MagickCore", "InitializeMagick", headers) || have_library("Magick", "InitializeMagick", headers) || have_library("Magick++","InitializeMagick",headers)
unless `Magick-config --libs`[/\bl\s*(MagickCore|Magick)\b/]
exit_failure "Can't install RMagick #{RMAGICK_VERS}. " +
"Can't find the ImageMagick library or one of the dependent libraries. " +
"Check the mkmf.log file for more detailed information.\n"
......@@ -244,6 +245,7 @@ have_func("snprintf", headers)
"SetMagickMemoryMethods", # 6.4.1
"SparseColorImage", # 6.3.6-?
"SyncAuthenticPixels", # 6.4.5-6
"TransformImageColorspace", # 6.5.1
"TransparentPaintImage", # 6.3.7-10
"TransparentPaintImageChroma" # 6.4.5-6
].each do |func|
......
......@@ -6,7 +6,7 @@
* Changes since Nov. 2009 copyright &copy; by Benjamin Thomas and Omer Bar-or
*
* @file rmimage.c
* @version $Id: rmimage.c,v 1.360 2009/12/21 10:34:57 baror Exp $
* @version $Id: rmimage.c,v 1.361 2010/05/03 03:34:48 baror Exp $
* @author Tim Hunter
******************************************************************************/
......@@ -2993,7 +2993,11 @@ Image_colorspace_eq(VALUE self, VALUE colorspace)
image = rm_check_frozen(self);
VALUE_TO_ENUM(colorspace, new_cs, ColorspaceType);
#if defined(HAVE_TRANSFORMIMAGECOLORSPACE)
(void) TransformImageColorspace(image, new_cs);
#else
(void) SetImageColorspace(image, new_cs);
#endif
return self;
}
......
This diff is collapsed.
require 'date'
Gem::Specification.new do |s|
s.name = %q{rmagick}
s.version = "2.13.1"
s.version = "2.13.2"
s.date = Date.today.to_s
s.summary = %q{Ruby binding to ImageMagick}
s.description = %q{RMagick is an interface between Ruby and ImageMagick.}
......
......@@ -784,7 +784,7 @@ class ToplevelInstaller
else
require 'rbconfig'
end
::Config::CONFIG
defined?(RbConfig) ? ::RbConfig::CONFIG : ::Config::CONFIG
end
def initialize(ardir_root, config)
......
......@@ -51,18 +51,20 @@ while arg = ARGV.shift
end
require rbconfig # get specified/default rbconfig.rb
config = defined?(RbConfig) ? ::RbConfig : ::Config
version = config::CONFIG['ruby_version']
arch = config::CONFIG['arch']
version = ::Config::CONFIG['ruby_version']
arch = ::Config::CONFIG['arch']
prefix ||= ::Config::CONFIG['prefix']
site_ruby ||= ::Config::CONFIG['sitelibdir']
so_dir ||= ::Config::CONFIG['sitearchdir']
prefix ||= config::CONFIG['prefix']
site_ruby ||= config::CONFIG['sitelibdir']
so_dir ||= config::CONFIG['sitearchdir']
doc_dir ||= File.join(prefix, 'share', 'RMagick')
dlext = ::Config::CONFIG['DLEXT']
dlext = config::CONFIG['DLEXT']
FileUtils.safe_unlink File.join(site_ruby, 'RMagick.rb'), :verbose => true
FileUtils.safe_unlink File.join(so_dir, 'RMagick.' + dlext), :verbose => true
puts site_ruby
puts doc_dir
rmdir File.join(site_ruby, 'rvg'), true
rmdir File.join(doc_dir, 'ex', 'images')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment