mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
51 lines
1.9 KiB
Ruby
51 lines
1.9 KiB
Ruby
require 'package'
|
|
|
|
class Harfbuzz < Package
|
|
description 'HarfBuzz is an OpenType text shaping engine.'
|
|
homepage 'https://www.freedesktop.org/wiki/Software/HarfBuzz/'
|
|
@_ver = '2.7.4'
|
|
version @_ver
|
|
license 'Old-MIT, ISC and icu'
|
|
compatibility 'all'
|
|
source_url "https://github.com/harfbuzz/harfbuzz/archive/#{@_ver}.tar.gz"
|
|
source_sha256 'daff8a4003ac420a8550760ed303ce33b310c8ea17b7f15b307d1969cabcebcb'
|
|
|
|
binary_url ({
|
|
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/harfbuzz/2.7.4_armv7l/harfbuzz-2.7.4-chromeos-armv7l.tar.xz',
|
|
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/harfbuzz/2.7.4_armv7l/harfbuzz-2.7.4-chromeos-armv7l.tar.xz',
|
|
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/harfbuzz/2.7.4_i686/harfbuzz-2.7.4-chromeos-i686.tar.xz',
|
|
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/harfbuzz/2.7.4_x86_64/harfbuzz-2.7.4-chromeos-x86_64.tar.xz',
|
|
})
|
|
binary_sha256 ({
|
|
aarch64: 'a2cc6f26453bc9077dde0d549ea92e30a8847d9c9d49ceebc681b090056d69fc',
|
|
armv7l: 'a2cc6f26453bc9077dde0d549ea92e30a8847d9c9d49ceebc681b090056d69fc',
|
|
i686: 'a98df51edf04334872597256379d041389fce9bf3b020c5700ee4d0b8771967d',
|
|
x86_64: 'bdcb5b9ab85752b8f8ce46b919e6739754e369fd807a5f52d85afb43ca815153',
|
|
})
|
|
|
|
depends_on 'cairo' => :build
|
|
depends_on 'glib' => :build
|
|
depends_on 'gobject_introspection'
|
|
depends_on 'ragel' => :build
|
|
depends_on 'freetype_sub'
|
|
depends_on 'py3_six' => :build
|
|
depends_on 'graphite' => :build
|
|
|
|
def self.build
|
|
system "meson #{CREW_MESON_OPTIONS} \
|
|
--default-library=both \
|
|
-Dintrospection=enabled \
|
|
-Dbenchmark=disabled \
|
|
-Dtests=disabled \
|
|
-Dgraphite=enabled \
|
|
-Ddocs=disabled \
|
|
builddir"
|
|
system "meson configure builddir"
|
|
system "ninja -C builddir"
|
|
end
|
|
|
|
def self.install
|
|
system "DESTDIR=#{CREW_DEST_DIR} ninja install -C builddir"
|
|
end
|
|
end
|