Commit b06231e7 authored by Ed Reel's avatar Ed Reel

Update cairo package

Remove freetype dependency since fontconfig already includes it

Abstract --prefix and --libdir configure options with crew constants
parent 7e3b9ceb
...@@ -3,30 +3,24 @@ require 'package' ...@@ -3,30 +3,24 @@ require 'package'
class Cairo < Package class Cairo < Package
description 'Cairo is a 2D graphics library with support for multiple output devices.' description 'Cairo is a 2D graphics library with support for multiple output devices.'
homepage 'https://www.cairographics.org' homepage 'https://www.cairographics.org'
version '1.14.10-1' version '1.14.10-2'
source_url 'https://www.cairographics.org/releases/cairo-1.14.10.tar.xz' source_url 'https://www.cairographics.org/releases/cairo-1.14.10.tar.xz'
source_sha256 '7e87878658f2c9951a14fc64114d4958c0e65ac47530b8ac3078b2ce41b66a09' source_sha256 '7e87878658f2c9951a14fc64114d4958c0e65ac47530b8ac3078b2ce41b66a09'
binary_url ({ binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/cairo-1.14.10-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/cairo-1.14.10-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/cairo-1.14.10-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/cairo-1.14.10-1-chromeos-x86_64.tar.xz',
}) })
binary_sha256 ({ binary_sha256 ({
aarch64: '32e0aba6364a57b39d81fa58f0bad04a5ffca7ccd13f9f26c1a565447cafdc0a',
armv7l: '32e0aba6364a57b39d81fa58f0bad04a5ffca7ccd13f9f26c1a565447cafdc0a',
i686: '8b0e769f7402a4a0165c0a0f25348b20ec9daebc6a3e3cb85dbb8978b6e9aee4',
x86_64: 'c0563bef3431022a8058baf99ec9f8a81f5e9246cad2466e37ca02c13900bd5e',
}) })
depends_on 'libpng' depends_on 'libpng'
depends_on 'pixman' depends_on 'pixman'
depends_on 'freetype' # pango requires cairo with freetype
depends_on 'fontconfig' # pango requires cairo with fontconfig depends_on 'fontconfig' # pango requires cairo with fontconfig
def self.build def self.build
system "./configure --disable-xlib" system './configure',
"--prefix=#{CREW_PREFIX}",
"--libdir=#{CREW_LIB_PREFIX}",
'--disable-xlib'
system "make" system "make"
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment