自制程序的公式依赖性

时间:2018-09-17 14:51:39

标签: homebrew

类似于示例here中的X11,我想确保已安装Inkscape。

我的公式中有depends_on :inkscape会抛出

Error: kws: Unsupported special dependency :inkscape

这是不可能的还是错误?

1 个答案:

答案 0 :(得分:1)

X11 is a special kind of dependency in Homebrew and Inkscape is not a standard formula but a cask.

If you want to depends on the cask Inkscape, you have to use the following syntax:

depends_on cask: 'inkscape'

Read Brew Formula: How can I define cask and external dependencies? for a complete answer.