Files
chromebrew/packages/civetweb.rb
Maximilian Downey Twiss f6dc1d8d4e Derive binary_url in package.rb (#7082)
* Add binary_compression value to each package

* Remove binary_url values and arrays

* Handle packages with empty binary_sha256 arrays (either missing binaries or not compiled by us)
2024-01-25 11:03:31 -05:00

44 lines
1.3 KiB
Ruby

require 'package'
class Civetweb < Package
description 'Embedded C/C++ web server'
homepage 'https://github.com/civetweb/civetweb/'
version '1.13'
license 'MIT'
compatibility 'all'
source_url 'https://github.com/civetweb/civetweb/archive/v1.13.tar.gz'
source_sha256 'a7ccc76c2f1b5f4e8d855eb328ed542f8fe3b882a6da868781799a98f4acdedc'
binary_compression 'tar.xz'
binary_sha256({
aarch64: 'a9c69122c495afd89473928171d8b6528d8d1980d136cc16160733a317e21704',
armv7l: 'a9c69122c495afd89473928171d8b6528d8d1980d136cc16160733a317e21704',
i686: '856eeb6d5543fe03baec996f21324ad0bb14bc0a2e9c080d61cf33614697a36d',
x86_64: 'a314284c9ea9b1f3190174645c5c13872387520dc1877a3fb7eb5397916b8bed'
})
def self.build
Dir.mkdir 'builddir'
Dir.chdir 'builddir' do
system "cmake -G 'Ninja' #{CREW_CMAKE_OPTIONS} \
-DBUILD_TESTING=OFF \
-DBUILD_SHARED_LIBS=ON \
-DCIVETWEB_BUILD_TESTING=OFF \
-DCIVETWEB_ENABLE_LUA=OFF \
-DCIVETWEB_ENABLE_DUKTAPE=OFF \
-DCIVETWEB_ENABLE_CXX=ON \
-DCIVETWEB_ENABLE_SERVER_EXECUTABLE=ON \
-DCIVETWEB_ENABLE_SSL=ON .."
system 'ninja'
end
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
def self.check
system 'ninja -C builddir test'
end
end