Files
chromebrew/packages/graphite.rb
Maximilian Downey Twiss f6dc1d8d4e Derive binary_url in package.rb (#7082)
* Add binary_compression value to each package

* Remove binary_url values and arrays

* Handle packages with empty binary_sha256 arrays (either missing binaries or not compiled by us)
2024-01-25 11:03:31 -05:00

37 lines
1.1 KiB
Ruby

require 'package'
class Graphite < Package
description 'Reimplementation of the SIL Graphite text processing engine'
homepage 'https://github.com/silnrsi/graphite'
version '2757274'
license 'LGPL-2.1'
compatibility 'all'
source_url 'https://github.com/silnrsi/graphite.git'
git_hashtag '27572742003b93dc53dc02c01c237b72c6c25f54'
binary_compression 'tar.zst'
binary_sha256({
aarch64: 'db258e3b6e5c9809d0d2f95bcbda19fd8bb989667f722282e5284745cc3a20e4',
armv7l: 'db258e3b6e5c9809d0d2f95bcbda19fd8bb989667f722282e5284745cc3a20e4',
i686: '7245cfaa6b1d4dbfd0b495b0a78a4b0969002d67e118184e887a2347328c12c4',
x86_64: 'f3e5350af96d7c6785b06f260bbc66a96568118739ae737cd98d91e9cfcc49ca'
})
depends_on 'gcc_lib' # R
depends_on 'glibc' # R
def self.patch
# remove font tools dependent tests
system "sed -i '/cmptest/d' tests/CMakeLists.txt"
end
def self.build
system "cmake -B builddir #{CREW_CMAKE_LIBSUFFIX_OPTIONS} -G Ninja"
system "#{CREW_NINJA} -C builddir"
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} #{CREW_NINJA} -C builddir install"
end
end