aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/create.rb
AgeCommit message (Collapse)Author
2015-10-30create: deprecate --macports and --finkBaptiste Fontaine
Closes Homebrew/homebrew#45465. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-28create: accept HEAD urlsBaptiste Fontaine
Fixes Homebrew/homebrew#45310. Closes Homebrew/homebrew#45336. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-27The Formula API is no longer work-in-progress.Mike McQuaid
Feature it a bit more prominently in the documentation as a result. Closes Homebrew/homebrew#45374. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-29More API documentation.Mike McQuaid
And remove the documented stuff from the `example-formula.rb`. Closes Homebrew/homebrew#43241. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-05-25`brew create` adds a `desc` field to the new formulaNikolaus Wittenstein
2015-05-08add Formulary::path methodXu Cheng
This is a little code refactoring splited from Homebrew/homebrew#36753 The idea is to eliminate `Formula#path` outside of `formulary.rb`. And I indent to deprecate `Formula#path` method when I reimplement symlink free tap function. Closes Homebrew/homebrew#39313.
2015-03-05checksums: switch to sha256 for bottles and new formulaeDominyk Tiller
Closes Homebrew/homebrew#37164. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-01-08Remove another use of the direct url writerJack Nagel
masgn is hard to grep for :/
2015-01-04Use more https in urls and updated some lost linksViktor Szakats
Closes Homebrew/homebrew#35531. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-12-27create: recommend `brew audit --strict`.Mike McQuaid
2014-12-15create: remove formula include.Mike McQuaid
2014-10-26Import docs from wiki.Mike McQuaid
Closes Homebrew/homebrew#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 Homebrew/homebrew#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 Homebrew/homebrew#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 Homebrew/homebrew#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 Homebrew/homebrew#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 Homebrew/homebrew#10873. Closes Homebrew/homebrew#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