Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/blendle/homebrew-blendle

Homebrew tap for tools not (yet) submitted to Homebrew Core.
https://github.com/blendle/homebrew-blendle

homebrew linuxbrew

Last synced: 2 days ago
JSON representation

Homebrew tap for tools not (yet) submitted to Homebrew Core.

Awesome Lists containing this project

README

        

# Blendle Homebrew tap

[![Build Status](https://travis-ci.com/blendle/homebrew-blendle.svg?branch=master)](https://travis-ci.com/github/blendle/homebrew-blendle)

Homebrew tap for tools not (yet) submitted to Homebrew Core.

## Usage

```
brew tap blendle/blendle
brew install ...
```

On Linux, install [Linuxbrew](http://linuxbrew.sh) first.

## Bottling a new version

* edit the formula as you see fit

```
export FORMULA= # e.g.: epp
brew edit "Formula/$FORMULA.rb"
```

* build a new bottle (binary) of the changes

```
brew uninstall --force "$FORMULA"
brew install "Formula/$FORMULA.rb" --build-bottle
```

* tar the bottle, and retrieve the Ruby code required

```
brew bottle $FORMULA --root-url=https://homebrew-blendle.storage.googleapis.com
# You possibly need to use the option: --force-core-tap
```

* copy the returned code back into the formula Ruby file

```
bottle do
root_url "https://homebrew-blendle.storage.googleapis.com"
cellar :any_skip_relocation
sha256 "9e1da44221d6ce25d8f0c2e88cb633fd1e1da99e75034f631d7e82ea1ea2a337" => :sierra
end
```

* upload the generated `*.tar.gz` file to Google Cloud Storage

```
# You might first need to rename the generated tar so it uses '-' instead of '--'.
# Otherwise brew downloading the bottle will not find the correct file.
# e.g.: epp--3.1.0.big_sur.bottle.tar.gz to epp-3.1.0.big_sur.bottle.tar.gz

# Seems to be a known problem: https://github.com/Homebrew/brew/pull/4612#commitcomment-29994607

gsutil -m cp -n $FORMULA*.bottle.tar.gz gs://homebrew-blendle
```

* copy the changes of your local formula to this repository:

```
brew cat "Formula/$FORMULA.rb" > "./Formula/$FORMULA.rb"
```

* commit the changed file to the Git repository

```
git add "Formula/$FORMULA.rb"
git commit
git push
```