-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Homebrew formula #19
Comments
From Homebrew's Acceptable Formulae guide:
We probably can't take action here. |
@jspahrsummers pkg installer is cool but if it's
|
Taps are a lot more work to maintain, from what I understand of them. It'll just suffice to let a third party provide a formula eventually. |
IMO, it's actually harder to maintain an official formula than a tap. We manage our own tap at thoughtbot/homebrew-formulae and it's worked really well for us. It lets us ship on our own schedule without having to wait for the Homebrew folks accepting PRs. I don't see the added |
I agree that dealing with the official homebrew formula process seems like a pain. I'm glad to submit a formula to the official repo if that's the route @jspahrsummers would prefer to go though. |
As it stands right now, I'm very happy with our OS X Installer packages on this repo (via GitHub Releases). I think an official Homebrew formula could be awesome for discoverability and getting started, but I'm not sure who we'd be reaching with a custom tap. Would the benefit be the ability to build from source? |
Speaking personally, I'm lazy and using my mouse seems like a lot of work. 🚎 Arguably: updating would be easier, since it would be managed by Homebrew. So unless you want to integrate Sparkle or something, users would need to come back here, download a new package, install it, vs I guess you could say that building |
Right now this is actually an issue as well. What we would ideally do is download the |
@Keithbsmiley Doesn't Homebrew support “bottled” releases? The |
Yep that could definitely be done. This along with |
Actually I take that back. It looks like you need admin privileges to install packages from the command line like that. Which is against homebrew rules. |
But you don't need the same admin privileges to install frameworks if they're built from source? |
Good point. I hadn't gotten that far since |
I'll merge it for you, this statement was introduced to dissuade people from submitting toy-projects. |
@mxcl Ah, awesome! ✨ I'm still not sure what to do about our need to install |
It looks like formulas, including python's, place the framework in |
Formula that must do this advise it in the caveats. Though I agree the limitation is just a PITA nowadays. If I were to do brew again, I'd rethink this. Is it possible to add framework search paths to the carthage script after the |
@mxcl The problem is that We could perhaps add the default Homebrew location to the Runpath Search Paths, though. |
Often we generate stub scripts during installation that force the tool to add an additional path (to whatever is required) before invoking the unmodified distributed tool. |
I did play around with using a thin script executable with a custom shebang that added a search path at runtime: https://github.com/gfontenot/swiftoff/blob/master/bin/swiftoff There might be some speed issues there. I didn't investigate too much. |
Ah, I see what you mean now. A stub sounds great. |
Here's a starting point for the formula. Right now this doesn't work because of issues mentioned above: require 'formula'
class Xcode62 < Requirement
fatal true
satisfy { MacOS::Xcode.version >= "6.2" }
end
class Carthage < Formula
homepage 'https://github.com/Carthage/Carthage'
head 'https://github.com/Carthage/Carthage.git'
url 'https://github.com/Carthage/Carthage/archive/0.2.tar.gz'
sha1 '6f28a3d821b8ad4d396779dad5239441a5996602'
version '0.2'
depends_on Xcode62
depends_on 'git'
depends_on 'xctool'
def install
system "make install"
end
test do
system "carthage help"
end
end |
Personally, I would install this without thinking twice if it were in homebrew. It gives me a sense of safety knowing exactly what the installation is doing (.rb) and easily being able to remove it with one command (without worrying about package receipts or leftovers). A .pkg feels like too much of a blackbox - yeah I know: Carthage is open source, but it still just feels weird installing like that. /2¢ |
Agreed. |
This was done. ✨ |
Move testing dependencies to private Cartfile
Write and submit a formula to Homebrew, for even easier installation.
Depends on #18.
The text was updated successfully, but these errors were encountered: