Skip to content

Commit

Permalink
Merge pull request #202029 from paperchalice/rhash
Browse files Browse the repository at this point in the history
rhash: install pkgconfig file
  • Loading branch information
carlocab authored Dec 22, 2024
2 parents ba41d67 + db8cf4e commit 199cd49
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions Formula/r/rhash.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,19 @@ class Rhash < Formula
end

def install
system "./configure", "--prefix=#{prefix}", "--disable-gettext"
# Exclude unrecognized options
args = std_configure_args.reject { |s| s["--disable-dependency-tracking"] } + %W[
--disable-lib-static
--disable-gettext
--sysconfdir=#{etc}
]

system "./configure", *args
system "make"
system "make", "install"
lib.install "librhash/#{shared_library("librhash")}"
system "make", "-C", "librhash", "install-lib-headers"
# Avoid race during installation.
ENV.deparallelize { system "make", "install" }
system "make", "install-lib-headers", "install-pkg-config"
lib.install_symlink (lib/shared_library("librhash", version.major.to_s).to_s) => shared_library("librhash")
end

test do
Expand Down

0 comments on commit 199cd49

Please sign in to comment.