Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Formula #6

Open
TheGamer1002 opened this issue Feb 3, 2021 · 4 comments
Open

Invalid Formula #6

TheGamer1002 opened this issue Feb 3, 2021 · 4 comments

Comments

@TheGamer1002
Copy link

Hi,

When tapping into the formulae, brew throws 2 invalid syntax errors, and proceeds to give up. I have XQuartz and all dependencies.

$ brew tap Conky-for-macOS/homebrew-formulae
some updates and stuff

Error: Invalid formula: /usr/local/Homebrew/Library/Taps/conky-for-macos/homebrew-formulae/Formula/imlib2-xlib.rb
imlib2-xlib: Calling depends_on :x11 is disabled! Use depends_on specific X11 formula(e) instead.
Please report this issue to the conky-for-macos/formulae tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/conky-for-macos/homebrew-formulae/Formula/imlib2-xlib.rb:13

Error: Invalid formula: /usr/local/Homebrew/Library/Taps/conky-for-macos/homebrew-formulae/Formula/cairo-xlib.rb
cairo-xlib: Calling depends_on :x11 is disabled! Use depends_on specific X11 formula(e) instead.
Please report this issue to the conky-for-macos/formulae tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/conky-for-macos/homebrew-formulae/Formula/cairo-xlib.rb:20
@npyl
Copy link
Member

npyl commented Feb 3, 2021

Hi @TheGamer1002 ,
Does your PR fix this problem? Are there any problems with the Homebrew formulae?

@TheGamer1002
Copy link
Author

Unfortunately, no. I tried but it appears that XQuartz is a cask and not a formula, along with other problems I found down the rabbit hole, so I closed it. Nothing I tried fixed it.

@npyl
Copy link
Member

npyl commented Feb 3, 2021

There could be a way to efficiently check if XQuartz is present (like check if XQuartz.app exists in /Applications) and if yes continue, otherwise install the cask.
I guess this would need a bit of ruby code.

Unfortunately I'm currently nearly 2 years away from working on this project.
Could you give it a look?

(Thanks a lot for the PR btw.)

@TheGamer1002
Copy link
Author

I'll try, but I also know next to nothing about Ruby. I can pull things off of the ol' Google, and toy around with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants