Last active
February 19, 2016 04:37
-
-
Save mountcedar/e34e8efd9430645b2d6a to your computer and use it in GitHub Desktop.
Homebrewで自作のプロジェクト(ライブラリ)を公開する ref: http://qiita.com/mountcedar/items/f10161d4e483aa8c1283
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
$ brew tap hogehoge/homebrew-<XXX> |
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
$ cd `brew prefix`/Library/Taps/hogehoge/homebrew-<XXX> |
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
libhoge | |
└── 0.0.1 | |
├── INSTALL_RECEIPT.json | |
├── LICENSE | |
├── include | |
│ └── libhoge.h | |
└── lib | |
├── libhoge.dylib | |
└── pkgconfig | |
└── libhoge.pc |
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
$ brew install libhoge -vd |
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
BuildError: Failed executing: cmake . | |
1. raise | |
2. ignore | |
3. backtrace | |
4. irb | |
5. shell | |
Choose an action: |
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
$ brew install libhoge —env=std |
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
$ brew install libhoge -vd |
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
BuildError: Failed executing: cmake . | |
1. raise | |
2. ignore | |
3. backtrace | |
4. irb | |
5. shell | |
Choose an action: |
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
$ brew create http://hogehoge.com/path/to/libhoge.tar.gz |
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
$ openssl sha1 libhoge.tar.gz |
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
$ cd `brew prefix`/Library/Taps/hogehoge/homebrew-<XXX> | |
$ git add —all | |
$ git commit -a -m "initial import" | |
$ git push |
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
$ brew untap hogehoge/homebrew-<XXX> | |
$ brew tap hogehoge/homebrew-<XXX> | |
$ brew install libhoge |
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
<package_name>-<version>.<osx name>.bottle.tar.gz |
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
libhoge-0.0.1.yosemite.bottle.tar.gz |
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
"HEAD": "", | |
"built_as_bottle": true, | |
"compiler": "gcc", | |
"poured_from_bottle": true, | |
"stdlib": null, | |
"tapped_from": “<tap名>”, | |
"time": 0, | |
"unused_options": [], | |
"used_options": [] | |
} |
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
def install | |
ENV['PKG_CONFIG_PATH'] = '/usr/local/lib/pkgconfig' | |
system "cmake", "." | |
system "make", "install" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment