-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit both sets up general configuration as well as includes initial support for homebrew Bug #82
- Loading branch information
1 parent
fcd152d
commit 0f44fe4
Showing
5 changed files
with
140 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Homebrew Tap | ||
|
||
This project is a list of formulae for exposing Varabyte artifacts to Homebrew. | ||
|
||
## Formulae | ||
Install a formula either by listing the tap path explicitly: | ||
|
||
```sh | ||
$ brew install varabyte/tap/<formula> | ||
``` | ||
|
||
Or by installing our tap first: | ||
|
||
```sh | ||
$ brew tap varabyte/tap # you only need to do this the first time | ||
$ brew install <formula> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# {{jreleaserCreationStamp}} | ||
class {{brewFormulaName}} < Formula | ||
desc "{{projectDescription}}" | ||
homepage "{{projectWebsite}}" | ||
url "{{distributionUrl}}" | ||
version "{{projectVersion}}" | ||
sha256 "{{distributionChecksumSha256}}" | ||
license "{{projectLicense}}" | ||
|
||
{{#brewHasLivecheck}} | ||
livecheck do | ||
{{#brewLivecheck}} | ||
{{.}} | ||
{{/brewLivecheck}} | ||
end | ||
{{/brewHasLivecheck}} | ||
{{#brewDependencies}} | ||
depends_on {{.}} | ||
{{/brewDependencies}} | ||
|
||
def install | ||
libexec.install Dir["*"] | ||
bin.install_symlink "#{libexec}/bin/{{distributionExecutable}}" | ||
end | ||
|
||
test do | ||
output = shell_output("#{bin}/{{distributionExecutable}} version") | ||
assert_match "{{projectVersion}}", output | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters