mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
33 lines
742 B
Ruby
33 lines
742 B
Ruby
require 'package'
|
|
|
|
class Libfmt < Package
|
|
description 'A modern formatting library'
|
|
homepage 'https://fmt.dev'
|
|
version '7.1.3'
|
|
compatibility 'all'
|
|
source_url 'https://github.com/fmtlib/fmt/releases/download/7.1.3/fmt-7.1.3.zip'
|
|
source_sha256 '5d98c504d0205f912e22449ecdea776b78ce0bb096927334f80781e720084c9f'
|
|
|
|
def self.build
|
|
Dir.mkdir "builddir"
|
|
Dir.chdir "builddir" do
|
|
system "cmake #{CREW_CMAKE_OPTIONS} \
|
|
-DBUILD_SHARED_LIBS=TRUE \
|
|
.."
|
|
system "make"
|
|
end
|
|
end
|
|
|
|
def self.install
|
|
Dir.chdir "builddir" do
|
|
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
|
|
end
|
|
end
|
|
|
|
def self.check
|
|
Dir.chdir "builddir" do
|
|
system "make", "test"
|
|
end
|
|
end
|
|
end
|