Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

R: Fix readline problem #8628

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Library/Formula/r.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class R < Formula
md5 '98cf8fe74e512e1061caf1ee0c2043a8'

depends_on 'valgrind' if valgrind?
depends_on 'readline'

def options
[
Expand All @@ -34,6 +35,10 @@ def install
ENV.x11 # So PNG gets added to the x11 and cairo plotting devices
ENV['OBJC'] = ENV['CC']
ENV['OBJCFLAGS'] = ENV['CFLAGS']
ENV["FCFLAGS"] = ENV["CFLAGS"]
ENV["FFLAGS"] = ENV["CFLAGS"]
ENV["CPPFLAGS"] = "-I#{Formula.factory('readline').include}"
ENV["LDFLAGS"] = "-L#{Formula.factory('readline').lib}"

args = [
"--prefix=#{prefix}",
Expand Down