mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
[graphene] Upgrade to 1.8.0, remove corrupted binaries and modify the compilation code (#1970)
* [graphene] Upgrade to 1.8.0 * Update graphene.rb
This commit is contained in:
@@ -3,39 +3,28 @@ require 'package'
|
||||
class Graphene < Package
|
||||
description 'A thin layer of graphic data types'
|
||||
homepage 'https://github.com/ebassi/graphene'
|
||||
version '1.6.0'
|
||||
source_url 'https://github.com/ebassi/graphene/archive/1.6.0.tar.gz'
|
||||
source_sha256 '98970f859e452ce421b72726ca727fdf3ac27cb4804b62bfe520157fa46aa2fd'
|
||||
version '1.8.0'
|
||||
source_url 'https://github.com/ebassi/graphene/archive/1.8.0.tar.gz'
|
||||
source_sha256 '410f2e848952cc5830f39b6f6ea7f9b0a487cfe99dad86eec6f22ccbb3ec635b'
|
||||
|
||||
binary_url ({
|
||||
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/graphene-1.6.0-chromeos-armv7l.tar.xz',
|
||||
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/graphene-1.6.0-chromeos-armv7l.tar.xz',
|
||||
i686: 'https://dl.bintray.com/chromebrew/chromebrew/graphene-1.6.0-chromeos-i686.tar.xz',
|
||||
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/graphene-1.6.0-chromeos-x86_64.tar.xz',
|
||||
|
||||
})
|
||||
binary_sha256 ({
|
||||
aarch64: 'cf86736cfe01b752bc93366c84f92b135196d32cb5918b5e73c3b270fb7a4421',
|
||||
armv7l: 'cf86736cfe01b752bc93366c84f92b135196d32cb5918b5e73c3b270fb7a4421',
|
||||
i686: '40545e0b6b19f7f9bff26ca933f1bbfa601b3403bce2dfdec82af6a885b534a3',
|
||||
x86_64: 'efa9a4ea013fbd15604a86c2a858e6918327287390d467481ccc53df2276acd8',
|
||||
|
||||
})
|
||||
|
||||
depends_on 'meson'
|
||||
depends_on 'gobject_introspection' => :build
|
||||
|
||||
def self.build
|
||||
system "meson _build --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX} -Denable-arm-neon=false"
|
||||
system "meson --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX} -Darm_neon=false _build"
|
||||
system "ninja -v -C _build"
|
||||
system "ninja -C _build test"
|
||||
end
|
||||
|
||||
def self.install
|
||||
Dir.chdir("_build") do
|
||||
system "ninja install"
|
||||
end
|
||||
end
|
||||
|
||||
def self.check
|
||||
Dir.chdir("_build") do
|
||||
system "ninja test"
|
||||
end
|
||||
end
|
||||
system "DESTDIR=#{CREW_DEST_DIR} ninja -C _build install"
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user