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
Łukasz Nowak
chromebrew
Commits
81215dd3
Commit
81215dd3
authored
Oct 03, 2017
by
Ed Reel
Committed by
GitHub
Oct 03, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1275 from cstrouse/add-brotli
Add brotli package
parents
dfe5d74d
071004c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
packages/brotli.rb
packages/brotli.rb
+31
-0
No files found.
packages/brotli.rb
0 → 100644
View file @
81215dd3
require
'package'
class
Brotli
<
Package
description
'Brotli compression format '
homepage
'https://github.com/google/brotli'
version
'1.0.1'
source_url
'https://github.com/google/brotli/archive/v1.0.1.tar.gz'
source_sha256
'6870f9c2c63ef58d7da36e5212a3e1358427572f6ac5a8b5a73a815cf3e0c4a6'
binary_url
({
})
binary_sha256
({
})
depends_on
'cmake'
=>
:build
def
self
.
build
system
'mkdir out'
Dir
.
chdir
'out'
do
system
"cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=
#{
CREW_PREFIX
}
-DCMAKE_INSTALL_LIBDIR=
#{
CREW_DEST_LIB_PREFIX
}
"
system
"cmake --build . --config Release --target install"
end
end
def
self
.
install
#system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
Dir
.
chdir
'out'
do
system
"cmake -DCMAKE_INSTALL_PREFIX=
#{
CREW_DEST_PREFIX
}
-DCMAKE_INSTALL_LIBDIR=
#{
CREW_DEST_LIB_PREFIX
}
-P cmake_install.cmake"
end
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