Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
15df5598
Commit
15df5598
authored
Feb 23, 2021
by
saltedcoffii
Committed by
GitHub
Feb 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[New Package] prometheus_cpp (#5265)
parent
e3bdc952
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
packages/prometheus_cpp.rb
packages/prometheus_cpp.rb
+37
-0
No files found.
packages/prometheus_cpp.rb
0 → 100644
View file @
15df5598
require
'package'
class
Prometheus_cpp
<
Package
description
'Prometheus Client Library for Modern C++'
homepage
'https://github.com/jupp0r/prometheus-cpp/'
version
'0.12.1'
compatibility
'all'
source_url
'https://github.com/jupp0r/prometheus-cpp/releases/download/v0.12.1/prometheus-cpp-with-submodules.tar.gz'
source_sha256
'f116cee772df7bf23fc89fb71c13ad4420601e304a382d77da725da0d0dc4cac'
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment