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
Guillaume Hervier
chromebrew
Commits
d12c6165
Commit
d12c6165
authored
Sep 02, 2018
by
Chris Thurber
Committed by
GitHub
Sep 02, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2627 from uberhacker/add-antlr4-package
Add antlr4 package
parents
320fe2e3
094f3b79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
packages/antlr4.rb
packages/antlr4.rb
+32
-0
No files found.
packages/antlr4.rb
0 → 100644
View file @
d12c6165
require
'package'
class
Antlr4
<
Package
description
'ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.'
homepage
'http://www.antlr.org/'
version
'4.7.1'
source_url
'https://raw.githubusercontent.com/antlr/antlr4/4.7.1/README.md'
source_sha256
'70a58ea4c4f5ed23306313782bc13f36c3529d9a990e95ab273d5deed9286d4f'
binary_url
({
})
binary_sha256
({
})
depends_on
'jdk8'
def
self
.
install
system
'wget https://www.antlr.org/download/antlr-4.7.1-complete.jar'
abort
'Checksum mismatch. :/ Try again.'
.
lightred
unless
Digest
::
SHA256
.
hexdigest
(
File
.
read
(
'antlr-4.7.1-complete.jar'
)
)
==
'f41dce7441d523baf9769cb7756a00f27a4b67e55aacab44525541f62d7f6688'
system
"install -Dm644 antlr-4.7.1-complete.jar
#{
CREW_DEST_LIB_PREFIX
}
/antlr-4.7.1-complete.jar"
end
def
self
.
postinstall
puts
puts
"To complete the installation, execute the following:"
.
lightblue
puts
"echo 'export CLASSPATH=
\"
.:
#{
CREW_LIB_PREFIX
}
/antlr-4.7.1-complete.jar:$CLASSPATH
\"
' >> ~/.bashrc"
.
lightblue
puts
"echo 'alias antlr4=
\"
java -jar
#{
CREW_LIB_PREFIX
}
/antlr-4.7.1-complete.jar
\"
' >> ~/.bashrc"
.
lightblue
puts
"echo 'alias grun=
\"
java org.antlr.v4.gui.TestRig
\"
' >> ~/.bashrc"
.
lightblue
puts
"source ~/.bashrc"
.
lightblue
puts
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