| Age | Commit message (Collapse) | Author |
|
|
|
This developer-oriented command lets you ask Homebrew what the cached
filename will be for a brew's tarball.
|
|
|
|
* Instantiate DownloadStrategy instance when creating a formula.
* Rename CurlDownloadStrategy member to clarify what it is for.
* Generate downloaded tarball name in initialize.
|
|
The -Wno-dev CMake parameter suppresses warnings
meant for the developer, not the user.
|
|
|
|
So far we only added python, but we can add more.
Fixes Homebrew/homebrew#401
|
|
|
|
|
|
|
|
Linking "Library" under prefix is optional, but Library will always
exist relative to the REPOSITORY folder, so use that instead of prefix
for formula paths.
|
|
|
|
|
|
|
|
|
|
Updated comments to match new default patch level from revision 4fe374d
|
|
Thus mv, rm etc, functions are almost as handy as pure shell scripting, without issues related to spaces in filenames.
|
|
|
|
Where brew info will show the next-level-down dependencies, brew deps
will show all of the formulae that a given formula depends on.
|
|
* brew install will find an aliased formula
* aliases are searched against
* warn when creating a new formula that has an existing alias.
If Subversion has an alias "svn", then warn when the user tries to
create a new formula "svn". The formula can still be created, though
the user should make sure it's not a duplicate of the existing
aliased one.
Subversion and Objective-Caml formulas get some alises here, so we have
something to test against.
|
|
'uses' shows the formulas that depend on a formula given on the
command-line.
|
|
These methods could be static on Formula, but splitting them out makes
it clear to formular authors that these functions don't have anything
to do with writing new formulas.
|
|
Rather than showing a backtrace that says "couldn't find command blah". Admittedly it's possible that the error will be something else, but unlikely. And this is neater.
Ideally we'd push the bt through an error pipe like we do with install.rb. And I guess we'll do this eventually.
|
|
As I understand it (I tested too), signal propogation is handled by the parent Ruby process. However this was working mostly anyway. So I don't fully understand what is going on. However this seems to not hang in Process.wait where it was before for one test case.
|
|
|
|
The rationale here is that the --verbose mode had a bug where it didn't escape its parameters properly. Which caused ocassionally cryptic issues.
|
|
|
|
More sensible, and fixes brew
|
|
|
|
Eg. shell.fm -> ShellFm
|
|
|
|
GitDownloadStrategy and MercurialDownloadStrategy
now can be used like this:
head 'git://server/repo.git', :branch => 'stable'
head 'hg://server/repo/', :tag => '1.0.4'
|
|
HFS+ handles the + fine. However the Ruby class name needs a s/+/x/g.
I acknowledge that supporting + will make it harder to port to certain other
filesystems. However that's your challenge! :D
|
|
brewkit.rb changes ENV destructively, so lets not do that everytime a formula
is required. Now it's possible for other tools to require a formula
description without worrying about side-effects.
|
|
This was one of the first ones I wrote, so it lacks some of our more recent touches.
|
|
Because people didn't realise it was actually curl and thus supports eg. ftp too.
|
|
You generally don't want to have to copy the configuration to a new directory when you upgrade.
|
|
|
|
|
|
|
|
I'm not sure about this still, as if you uninstall mysql do you want to lose
all the var stuff it created? Maybe. Probably not.
But there were issues unresolved having it in the unversioned-keg. So I'd
rather look at this again later, and fix the bugs without hacks for now.
|
|
|
|
Pass in a list of any files that you don't want cleaned
with a path relative to the cellar. e.g. `strip_paths ['bin/znc']`
It's backwards compatible with def strip_clean?, at least for now.
The znc formula is updated as an example.
|
|
|
|
|
|
That'll teach you!
|
|
|
|
Otherwise you run the risk of not running the exact version / make of the utility you planned.
Fixes Homebrew/homebrew#48
Really we need to do this formula too, so I guess a make and cmake function are on the way…
|
|
Using the example from the existing code:
CHECKSUM_TYPES.each do |type|
if !instance_variable_defined?("@#{type}")
class_value = self.class.send(type)
instance_variable_set("@#{type}", class_value) if class_value
end
end
I extracted that block into a method 'set_instance_variable' which I
then used in all places where this behavior was being used.
|
|
You can now use "url", "version", "homepage", and any checksums as
class methods, like so:
class Dos2unix <Formula
url 'http://www.sfr-fresh.com/linux/misc/old/dos2unix-3.1.tar.gz'
md5 '25ff56bab202de63ea6f6c211c416e96'
homepage 'http://www.sfr-fresh.com/linux/misc/'
end
The previous usage ("@url = 'http://example.com/tarball.tgz'") still
works, maintaining compatibility with previous formulas.
"dos2unix.rb" is translated into the new format as an example.
|