aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/create.rb
AgeCommit message (Collapse)Author
2014-10-26Import docs from wiki.Mike McQuaid
Closes #33211.
2014-07-17Only ask for the stem onceJack Nagel
2014-06-22Move deprecated Formula class methods to compatJack Nagel
These have all been moved to Formulary.
2014-06-19Only "extend self" once on the Homebrew moduleJack Nagel
2014-06-03test: improve docs for when using HEAD or similar flagsDave Cottlehuber
Closes #29791. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-02-22create: make conditional more obviousJack Nagel
2014-02-22create: pull requires out of methodJack Nagel
2014-02-22Update method callJack Nagel
2014-02-21Move Formula.class_s to FormularyJack Nagel
2014-01-07create: fix typosChristian Moritz
Closes #25709. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-01-07create: always use double quotes.Mike McQuaid
2013-12-27Replace template’s `j1` with `deparallelize`Josh Tilles
Solely because I think `ENV.deparallelize` is *way* clearer than `ENV.j1`, at least to the uninitiated. Also, updating the template will reduce the number of `ENV.j1`s that persist because the Homebrew maintainers want clean histories of formulae. Ideally, this change should prevent any more cases from being introduced! Closes #25431. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-12-14Update docs, comment mxcl/homebrew refs.Mike McQuaid
2013-10-30Cleanup use of some global constants.Mike McQuaid
2013-10-26create: escape example interpolationJack Nagel
Fixes #23643.
2013-10-26add note about test path to create templateAdam Vandenberg
2013-10-25create: detect name from GitHub archives.Mike McQuaid
2013-09-23Clean up SoftwareSpec and Resource initializersJack Nagel
2013-09-17create: use resource for checksum detectionJack Nagel
2013-09-16Rephrase conditionalJack Nagel
2013-09-06Enable verbose compile command in create template.Xiyue Deng
* Add "--disable-silent-rules" option to autotools-based configure options. - Also add comments to notify user removing unrecognized configure options. * Add "-DCMAKE_VERBOSE_MAKEFILE=ON" to cmake-based configure options.
2013-08-20brew create: Mention the example-formulaSamuel John
2013-08-03brew-create: don't break when given --set-versionChes Martin
Since 9f2782812cbaf2, specifying a version breaks with: Error: undefined method `detected_from_url?' for "1.2.2":String Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-06-26Don't use 'obj == nil'Jack Nagel
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.