mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
* update inkscape and deps * dep updates/rebuilds for inkscape * add binary * fixup * fix quoting * rebuild * add autotools fix, update packages * cleanup bdwgc dep * update libsigcplusplus packages * fix libsigcplusplus3 x86_64 build * gtkmm3 updates * rebuild inkscape * update libxml * add binaries * Update py3_libxml2.rb Python3 is a runtime dep here!
45 lines
1.3 KiB
Ruby
45 lines
1.3 KiB
Ruby
require 'fileutils'
|
|
require 'package'
|
|
|
|
class Autotools < Package
|
|
def self.configure_options(options = '')
|
|
return (@configure_options = options if options)
|
|
end
|
|
|
|
def self.check?(bool = true)
|
|
return (@check = bool)
|
|
end
|
|
|
|
def self.build
|
|
puts "Additional configure_options being used: #{@configure_options.nil? || @configure_options.empty? ? '<no configure_options>' : @configure_options}".orange
|
|
# Run autoreconf if necessary
|
|
unless File.executable? './configure'
|
|
if File.executable? './autogen.sh'
|
|
system 'NOCONFIGURE=1 ./autogen.sh --no-configure || NOCONFIGURE=1 ./autogen.sh'
|
|
elsif File.executable? './bootstrap'
|
|
system 'NOCONFIGURE=1 ./bootstrap --no-configure || NOCONFIGURE=1 ./bootstrap'
|
|
else
|
|
system 'autoreconf -fiv'
|
|
end
|
|
end
|
|
abort 'configure script not found!'.lightred unless File.file?('configure')
|
|
FileUtils.chmod('+x', 'configure')
|
|
if `grep -q /usr/bin/file configure`
|
|
puts 'Using filefix.'.orange
|
|
system 'filefix'
|
|
end
|
|
system "./configure #{CREW_OPTIONS} #{@configure_options}"
|
|
system 'make'
|
|
end
|
|
|
|
def self.install
|
|
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
|
|
end
|
|
|
|
if @check
|
|
def self.check
|
|
system 'make', 'check'
|
|
end
|
|
end
|
|
end
|