Commit 78b2aade authored by satmandu's avatar satmandu Committed by GitHub

Add binaries: libostree, pyparsing (#5150)

* Add binaries, add python3 install

* lint

* Add binaries, lto

* Remove pip2 line
parent 7fa5f4aa
...@@ -3,11 +3,25 @@ require 'package' ...@@ -3,11 +3,25 @@ require 'package'
class Libostree < Package class Libostree < Package
description 'libostree manages operating system and container binary deployment and upgrades.' description 'libostree manages operating system and container binary deployment and upgrades.'
homepage 'https://ostreedev.github.io/ostree/' homepage 'https://ostreedev.github.io/ostree/'
version '2020.8' @_ver = '2020.8'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://github.com/ostreedev/ostree/releases/download/v2020.8/libostree-2020.8.tar.xz' source_url "https://github.com/ostreedev/ostree/releases/download/v#{@_ver}/libostree-#{@_ver}.tar.xz"
source_sha256 'fdaa5992d0a6f62157152355449ac8476c50df6602be398e9ad10438cc1e679b' source_sha256 'fdaa5992d0a6f62157152355449ac8476c50df6602be398e9ad10438cc1e679b'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libostree-2020.8-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libostree-2020.8-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libostree-2020.8-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libostree-2020.8-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '4e4ffd30a74ea73c60f7b0c9a0064a50dacf31ad0d8011f95deb35fab596878d',
armv7l: '4e4ffd30a74ea73c60f7b0c9a0064a50dacf31ad0d8011f95deb35fab596878d',
i686: '11a240d4f4ecaf37865a1c29c457d8eda6973082babea87f6d9cc7580579c930',
x86_64: '9dade5c1d720715fdb3f6841093db55b1a6c57b10694acd61c1ab306c74047cc'
})
depends_on 'glib' depends_on 'glib'
depends_on 'gpgme' depends_on 'gpgme'
depends_on 'libsoup' depends_on 'libsoup'
...@@ -16,21 +30,21 @@ class Libostree < Package ...@@ -16,21 +30,21 @@ class Libostree < Package
depends_on 'libarchive' depends_on 'libarchive'
depends_on 'avahi' depends_on 'avahi'
depends_on 'gtk_doc' => :build depends_on 'gtk_doc' => :build
depends_on 'libxml2' => :build
def self.build def self.build
system "env NOCONFIGURE=1 ./autogen.sh" system 'env NOCONFIGURE=1 ./autogen.sh'
system "./configure #{CREW_OPTIONS} \ system "env CFLAGS='-flto=auto' CXXFLAGS='-flto=auto' LDFLAGS='-flto=auto' \
./configure #{CREW_OPTIONS} \
--with-curl \ --with-curl \
--without-libsystemd \ --without-libsystemd \
--with-avahi \ --with-avahi \
--with-libarchive \ --with-libarchive \
--disable-gtk-doc \ --disable-gtk-doc \
--disable-man" #gtk-doc and man failed to build, causes make to fail --disable-man" # gtk-doc and man failed to build, causes make to fail
system "make" system 'make'
end end
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end end
end end
...@@ -8,8 +8,20 @@ class Pyparsing < Package ...@@ -8,8 +8,20 @@ class Pyparsing < Package
source_url 'https://github.com/pyparsing/pyparsing/releases/download/pyparsing_2.4.7/pyparsing-2.4.7.tar.gz' source_url 'https://github.com/pyparsing/pyparsing/releases/download/pyparsing_2.4.7/pyparsing-2.4.7.tar.gz'
source_sha256 'c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1' source_sha256 'c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/pyparsing-2.4.7-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/pyparsing-2.4.7-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/pyparsing-2.4.7-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/pyparsing-2.4.7-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: 'd4decc10bf590b30f6c05fb463e7fc9d79b7d9e9d84a92de694619ba10da0381',
armv7l: 'd4decc10bf590b30f6c05fb463e7fc9d79b7d9e9d84a92de694619ba10da0381',
i686: '8bf0da6c070cd6b6273b0d75078cd22264031a270b068d48d4eb120251f662a1',
x86_64: '82bd555e8dca145d04a4db65548a711c088d8d9c6e6cee62b2d7931da240e19f'
})
def self.install def self.install
system "pip install --prefix #{CREW_PREFIX} --root #{CREW_DEST_DIR} -I pyparsing==#{version}" system "pip3 install --prefix #{CREW_PREFIX} --root #{CREW_DEST_DIR} -I pyparsing==#{version}"
end end
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