aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/create.rb
AgeCommit message (Collapse)Author
2013-04-03use separate args in brew createAdam Vandenberg
2013-02-23brew create: use test DSLMike McQuaid
2013-02-18Don't use deprecated form of attrJack Nagel
The form "attr :name, true" is deprecated and causes Ruby to emit a warning in verbose mode. Using attr_{reader,writer,accessor} is more clear anyway, so do so.
2013-02-18brew-create: don't insert autodetected versions.Mike McQuaid
2012-12-27Respect BROWSER environment variableJack Nagel
2012-08-26create: allow --set-name and --set-versionAdam Vandenberg
Closes #10873. Closes #14401. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-08-09create: Fix indentation for :x11 depMisty De Meo
2012-07-04Give SoftwareSpec an initializerJack Nagel
Tools like `brew create` need to create and manipulate SoftwareSpec objects. It is useful to be able to do this directly, rather than by proxy through the special methods that serve the main formula DSL. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04Teach download strategies to take a SoftwareSpecJack Nagel
Now that a URL, version, and the (for lack of a better term) "specs" associated with said URL (e.g. the VCS revision, or a download strategy hint) are neatly bundled up in a SoftwareSpec object, it doesn't make sense to pass them individually to download strategy constructors. These constructors now take only the formula name and a SoftwareSpec as parameters. This allows us to move mirror handling out out of Formula#fetch and into the download strategies themselves. While doing so, we adjust the mirror implementation a bit; mirrors now assume the same "specs" as their owner's URL. They are still only useable by the CurlDownloadStrategy, but this provides a basis for extending mirror support to other strategies. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04Refactor download strategy detectionJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-01Update formula template for new X11 dependencyJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-06Use sha1 as the default checksum for new formulaeAdam Vandenberg
See: https://github.com/mxcl/homebrew/pull/12587
2012-05-22create: update cmake calls in templateJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-01Assist more in the template from `brew create`Max Howell
2012-02-29Some additional aid for `brew create`Max Howell
2012-02-06create: homepage comes before url and checksumJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-31create: punt on bad URLsJack Nagel
When we can't detect a name from the URL, just ask the user. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-29Correct cmake syntax in formula templateMisty De Meo
Closes #8879. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-09-20More docs for `brew create` generated formula testsMax Howell
To assist those new to stuff.
2011-08-25Force contributors to define a test by adding it to the create templateMax Howell
A little cheeky but it should help us to maintain higher quality.
2011-05-07Fix misspelled method name: Formula.canonical_nameJack Nagel
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-09Fix formula paths for manually specified names.Martin Kühl
When the name of a new formula can't be autodetected, it defaults to the empty string. When it then gets read from user input later on, the new name is used but the formula path, based on the name, stays empty. This change sets the path after a new name was read. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-05brew create: remind people to 'brew audit'Adam Vandenberg
2011-04-05brew create: ensure CACHE folder existsAdam Vandenberg
2011-03-13Remove unused exception; Closes #4652Max Howell
If version cannot be determined, then instruct the user to add one.
2011-03-13Replace create --cache with create --no-fetchMax Howell
Because since 0.8 we do the opposite, ie. download by default.
2011-03-12Use ruby style for inheritance.Adam Vandenberg
2011-03-12Refactor the blacklistsMax Howell
Also don't abort searches if the query matches a blacklist. Eg. `brew search vim` should return macvim and the information that vim itself is not packaged.
2011-03-12Refactor the brew command into one file per commandMax Howell
The code was sucking. To the extent that maintenance was hard. It's a lot easier to work with code that is sensibly split at sensible boundaries. So now it is more like that. But the refactor is minimal. Because we don't want you to have more merge hell than absolutely necessary. If you merge you will need to pay attention to brew.h.rb (as it is deleted) and bin/brew (as command logic is gone). It will be painful, but you will just have to help git out by moving any changes around manually. Note compatibility.rb. It ensures that any function renames or removals don't break anything. We're pretty serious about backwards compatibility. And that's because we encourage you to hack around with the innards. And we couldn't do that if we would then just make stuff disappear behind your back.