formula: add standard meson args
libdir is especially important on Fedora based distributions, where it might default to "lib64", but everything else expects "lib", so forcing the libdir is necessary there.
This commit is contained in:
		
							parent
							
								
									b11d2b56f7
								
							
						
					
					
						commit
						f8536d0b5b
					
				@ -1373,6 +1373,11 @@ class Formula
 | 
			
		||||
    ["--jobs=#{ENV.make_jobs}", "--max-backjumps=100000", "--install-method=copy", "--installdir=#{bin}"]
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  # Standard parameters for meson builds.
 | 
			
		||||
  def std_meson_args
 | 
			
		||||
    ["--prefix=#{prefix}", "--libdir=#{lib}"]
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  # an array of all core {Formula} names
 | 
			
		||||
  # @private
 | 
			
		||||
  def self.core_names
 | 
			
		||||
 | 
			
		||||
@ -142,7 +142,7 @@ module Homebrew
 | 
			
		||||
            system "go", "build", *std_go_args
 | 
			
		||||
        <% elsif  mode == :meson %>
 | 
			
		||||
            mkdir "build" do
 | 
			
		||||
              system "meson", "--prefix=\#{prefix}", ".."
 | 
			
		||||
              system "meson", *std_meson_args, ".."
 | 
			
		||||
              system "ninja", "-v"
 | 
			
		||||
              system "ninja", "install", "-v"
 | 
			
		||||
            end
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user