Files
chromebrew/packages/prometheus_cpp.rb
Satadru Pramanik, DO, MPH, MEng 22d986c981 Py updates, fix env variable for timeout, add option to skip remote updates in build_updates script (#10503)
* Update py3_setuptools

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Fix Agree timeout env variable, add pip updates, fixup build_updated_packages script and add functionality to skip remote update checks.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add documentation for the --skip command.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Handle compatibility with commas

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Handle empty conpatibility.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Fixup compatibility sections of package files.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Rebuild parted to handle missing binaries, and update build_updated_packages to notice binary_compression and not ask to rebuild if bimaries already exist.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Fix hash for nconvert.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
2024-09-19 22:22:33 -05:00

45 lines
1.3 KiB
Ruby

require 'package'
class Prometheus_cpp < Package
description 'Prometheus Client Library for Modern C++'
homepage 'https://github.com/jupp0r/prometheus-cpp/'
version '0.12.1'
license 'MIT'
compatibility 'i686 x86_64'
source_url 'https://github.com/jupp0r/prometheus-cpp/releases/download/v0.12.1/prometheus-cpp-with-submodules.tar.gz'
source_sha256 'f116cee772df7bf23fc89fb71c13ad4420601e304a382d77da725da0d0dc4cac'
binary_compression 'tar.xz'
binary_sha256({
i686: '6fd409af6b2eeaf47267f459feb267f1309cac53b83eeafba27ce5165b5df162',
x86_64: 'c24ff7e1239a35fa7a34724905226354fc2582585bf3be6f159b2cbb53e03e44'
})
depends_on 'zstd'
depends_on 'civetweb'
depends_on 'gtest' => :build
depends_on 'benchmark' => :build
def self.build
Dir.mkdir 'builddir'
Dir.chdir 'builddir' do
system "cmake -G 'Ninja' #{CREW_CMAKE_OPTIONS} \
-DENABLE_PULL=ON \
-DENABLE_PUSH=ON \
-DENABLE_COMPRESSION=ON \
-DENABLE_TESTING=ON \
-DBUILD_SHARED_LIBS=ON \
-DUSE_THIRDPARTY_LIBRARIES=OFF .."
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