neon update to 0.32.1 (#6230)

* neon update to 0.32.1

* Add i686 binary

Co-authored-by: Ed Reel <edreel@gmail.com>
This commit is contained in:
Satadru Pramanik
2021-09-24 10:35:24 -04:00
committed by GitHub
parent 9ac4299964
commit f69796110b

View File

@@ -3,37 +3,41 @@ require 'package'
class Neon < Package class Neon < Package
description 'neon is an HTTP and WebDAV client library, with a C interface.' description 'neon is an HTTP and WebDAV client library, with a C interface.'
homepage 'http://www.webdav.org/neon/' homepage 'http://www.webdav.org/neon/'
version '0.30.2' version '0.31.2'
license 'GPL-2' license 'GPL-2'
compatibility 'all' compatibility 'all'
source_url 'http://www.webdav.org/neon/neon-0.30.2.tar.gz' source_url 'https://github.com/notroj/neon.git'
source_sha256 'db0bd8cdec329b48f53a6f00199c92d5ba40b0f015b153718d1b15d3d967fbca' git_hashtag version
binary_url ({ binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/neon/0.30.2_armv7l/neon-0.30.2-chromeos-armv7l.tar.xz', aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/neon/0.31.2_armv7l/neon-0.31.2-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/neon/0.30.2_armv7l/neon-0.30.2-chromeos-armv7l.tar.xz', armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/neon/0.31.2_armv7l/neon-0.31.2-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/neon/0.30.2_i686/neon-0.30.2-chromeos-i686.tar.xz', i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/neon/0.31.2_i686/neon-0.31.2-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/neon/0.30.2_x86_64/neon-0.30.2-chromeos-x86_64.tar.xz', x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/neon/0.31.2_x86_64/neon-0.31.2-chromeos-x86_64.tpxz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '788d09916ce56e217297af5f3e3ce86d131ab05be0f54f85bf24f86a85701989', aarch64: '8da405951069b5143951dc15799a5367d8e5b752e85c31bc39b22ec32a40dcb7',
armv7l: '788d09916ce56e217297af5f3e3ce86d131ab05be0f54f85bf24f86a85701989', armv7l: '8da405951069b5143951dc15799a5367d8e5b752e85c31bc39b22ec32a40dcb7',
i686: 'a6777a6aa2be12f78be08c1af13ec49116d44b0c0f2fe892dd8ebd443f6b26e6', i686: '867d746b9bc058663a53258b6326199f4c6868c11f96cf03d8d9b4538d1b2b5a',
x86_64: '6ced539e58a179d141a242cea0a265a1d1897320346694639d192b5a83c1d59c', x86_64: 'cee9c8e0ace8b92c29bfb0f9e4592b93ba31f9fcfc5f0ad52910bb0b71d2f44b'
}) })
depends_on 'xmlto' => :build
def self.build def self.build
system './configure', system './autogen.sh'
"--prefix=#{CREW_PREFIX}", system 'filefix'
"--libdir=#{CREW_LIB_PREFIX}", system "#{CREW_ENV_OPTIONS} ./configure \
'--enable-shared=yes', #{CREW_OPTIONS} \
'--enable-static=no', --enable-shared=yes \
'--with-ssl=openssl' --with-ssl=openssl"
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-lib', 'install-headers', 'install-config'
FileUtils.ln_s "#{CREW_LIB_PREFIX}/libneon.so", "#{CREW_DEST_LIB_PREFIX}/neon.so" Dir.chdir(CREW_DEST_LIB_PREFIX) do
FileUtils.ln_s "#{CREW_LIB_PREFIX}/libneon.so", 'neon.so'
end
end end
end end