LoginSignup
8
8

More than 5 years have passed since last update.

Homebrew の Tap を作る

Posted at

(ネタがないままゼロ件なのが気になるのでテスト投稿。)

Github に homebrew-<name> という命名規則でリポジトリを作り、そこに Formula ファイルを置けばよい模様。

$ mkdir homebrew-mytap
$ cd homebrew-mytap
$ touch README.md
$ git init
$ git add README.md
$ git commit -m "first commit"
$ hub create -d "My formulae for the Homebrew package manager"
$ git push -u origin master

Formula ファイルは homebrew-mytap/hoge.rb の様な形で置けば良い模様。

作成した tap を使う場合はいつものように brew tap で Github ユーザ名とリポジトリのサフィックスを組み合わせた識別子を指定したら良い。

koshigoe アカウントに homebrew-mytap リポジトリを作った場合は以下の様に指定する。

$ brew tap koshigoe/mytap

という事はすぐ分かったんだけど、リポジトリの作成を簡単にできるコマンドが brew にないかな?

8
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
8