Skip to content

Commit

Permalink
rhash: install pkgconfig file
Browse files Browse the repository at this point in the history
  • Loading branch information
paperchalice committed Dec 22, 2024
1 parent 6ddc1ab commit db8cf4e
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 db8cf4e

Please sign in to comment.