패키지가 homebrew와 함께 설치 될 때 어떤 플래그가 제공되었는지 확인하는 방법이 있습니까?
예를 들어, emacs 공식에는 불합리한 수의 플래그가 있습니다. 내가 한 경우
brew install emacs --with-glib --with-librsvg
나는 emacs의 homebrew 설치를 위해 --with-glib --with-librsvg
다른 깃발이 아닌 깃발을 주었다는 것을 나중에 결정하고 싶습니다 .
루아 패키지 테스트 케이스 :
패키지를 설치하기 전에 info에 모든 옵션이 표시됩니다.
$ brew info lua
lua: stable 5.2.3 (bottled)
http://www.lua.org/
Not installed
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/lua.rb
==> Options
--universal
Build a universal binary
--with-completion
Enables advanced readline support
--without-sigaction
Revert to ANSI signal instead of improved POSIX sigaction
--with-completion
플래그 만으로 패키지를 설치합니다 .
$ brew install lua --with-completion
==> Downloading http://www.lua.org/ftp/lua-5.2.3.tar.gz
######################################################################## 100.0%
==> Downloading http://luajit.org/patches/lua-5.2.0-advanced_readline.patch
######################################################################## 100.0%
==> Downloading http://lua-users.org/files/wiki_insecure/power_patches/5.2/lua-5
######################################################################## 100.0%
==> Patching
patching file Makefile
patching file src/Makefile
patching file src/lua.c
Hunk #1 succeeded at 231 (offset -5 lines).
Hunk #2 succeeded at 559 (offset -4 lines).
Hunk #3 succeeded at 575 (offset -4 lines).
patching file src/lua.c
==> make macosx INSTALL_TOP=/usr/local/Cellar/lua/5.2.3_1 INSTALL_MAN=/usr/local
==> make install INSTALL_TOP=/usr/local/Cellar/lua/5.2.3_1 INSTALL_MAN=/usr/loca
🍺 /usr/local/Cellar/lua/5.2.3_1: 13 files, 312K, built in 6 seconds
패키지를 설치하면 info는 내가 사용하지 않은 옵션을 포함한 모든 옵션을 표시합니다. 이 명령은 패키지가 소스에서 빌드되었고 병에서 쏟아지지 않았 음을 인정합니다.
$ brew info lua
lua: stable 5.2.3 (bottled)
http://www.lua.org/
/usr/local/Cellar/lua/5.2.3_1 (13 files, 312K) *
Built from source with: --with-completion
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/lua.rb
==> Options
--universal
Build a universal binary
--with-completion
Enables advanced readline support
--without-sigaction
Revert to ANSI signal instead of improved POSIX sigaction