22 Commits

Author SHA1 Message Date
Jack Nagel
0357edcf3b Remove unicode from example formula 2014-06-04 16:41:07 -05:00
Jack Nagel
7242365ff3 Remove stray unicode 2014-06-04 16:02:39 -05:00
Jack Nagel
19f9d0aaf1 Remove example that is generally not required 2014-05-19 23:53:12 -05:00
Jack Nagel
6000c0caf9 Suggest current practice for autotools deps 2014-05-08 20:20:27 -05:00
Jack Nagel
fa667dc8d3 Don't advertise using CLT.installed? in the DSL, it's slow 2014-05-08 20:18:31 -05:00
Jack Nagel
f193196f7b Don't advertise :clt dependency, it's a last resort 2014-05-08 20:18:08 -05:00
Mike McQuaid
9a87cb85da example-formula: remove double quotes, cleanup. 2014-03-22 08:23:30 +00:00
Jack Nagel
a105c69214 Stop advertising deprecated symbol dependencies 2014-03-21 11:14:00 -05:00
Jack Nagel
bc6e4a1894 New patch implementation and DSL
This commit introduces a new patch implementation that supports
checksums and caching.

Patches are declared in blocks:

  patch do
    url ...
    sha1 ...
  end

A strip level of -p1 is assumed. It can be overridden using a symbol
argument:

  patch :p0 do
    url ...
    sha1 ...
  end

Patches can be declared in stable, devel, and head blocks. This form is
preferred over using conditionals.

  stable do
    # ...

    patch do
      url ...
      sha1 ...
    end
  end

Embedded (__END__) patches are declared like so:

  patch :DATA
  patch :p0, :DATA

Patches can also be embedded by passing a string. This makes it possible
to provide multiple embedded patches while making only some of them
conditional.

  patch :p0, "..."
2014-03-13 21:35:41 -05:00
Jack Nagel
3b76987fd7 Remove another reference to subformulae 2014-03-03 18:15:21 -06:00
Jack Nagel
75dd75bd24 Replace subformula example with a resource example 2014-03-03 18:14:02 -06:00
Jack Nagel
750b843edc Use Formula[] in example formula 2014-02-27 14:00:42 -06:00
Jack Nagel
03811e6423 Add example using a stable block 2014-02-24 22:44:30 -05:00
Jack Nagel
d6f7bc6446 Remove some bad practices from example formula 2014-02-24 22:41:21 -05:00
Welton Rodrigo
3805df0b44 Include buildpath info into example formula
The example formula had no information about how
to find the current bulding directory. Now it has ;)

Closes Homebrew/homebrew#26554.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-02-09 12:38:02 -08:00
Guillaume Algis
00cba6dc04 Fix comment error in example formula
Closes Homebrew/homebrew#26017.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-01-28 14:10:17 -06:00
Mike McQuaid
4c2e7b1659 Update docs, comment mxcl/homebrew refs. 2013-12-14 18:18:35 +00:00
Mike McQuaid
16aeb7bca4 example-formula: deprecate some Python features.
These will be removed soon so don't recommend them.
2013-12-12 21:07:41 +00:00
Benoit Daloze
ee1d8512bf Fix typo in example formula
Closes Homebrew/homebrew#25028.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-12-07 09:25:47 -08:00
Samyak Bhuta
a785a47452 typo
Closes Homebrew/homebrew#24803.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-11-30 10:55:38 -08:00
Raymie Stata
694a9c2eed add S3DownloadStrategy
downloads tarballs from public and private S3 buckets

Closes Homebrew/homebrew#22779.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-09-24 20:43:34 -07:00
Samuel John
78d436c68e Adding an example-formula.rb to show all features
A huge cheat sheet. Kind of.
2013-08-20 15:20:45 +02:00