Skip to content

Commit

Permalink
Credit MiniPortile2 & Ruby for minimal_pkg_config
Browse files Browse the repository at this point in the history
  • Loading branch information
mudge committed Mar 23, 2024
1 parent ab429c5 commit e72914f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/re2/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,10 @@ def process_recipe(recipe)
end
end

# See MiniPortile2's minimal_pkg_config:
# https://github.com/flavorjones/mini_portile/blob/52fb0bc41c89a10f1ac7b5abcf0157e059194374/lib/mini_portile2/mini_portile.rb#L760-L783
# and Ruby's pkg_config:
# https://github.com/ruby/ruby/blob/c505bb0ca0fd61c7ae931d26451f11122a2644e9/lib/mkmf.rb#L1916-L2004
def minimal_pkg_config(pc_file, *options)
if ($PKGCONFIG ||=
(pkgconfig = MakeMakefile.with_config("pkg-config") {MakeMakefile.config_string("PKG_CONFIG") || "pkg-config"}) &&
Expand Down

0 comments on commit e72914f

Please sign in to comment.