12 Commits

Author SHA1 Message Date
Jack Nagel
b63fb8d086 GithubGistFormula doesn't need to know the exact signature of initialize 2014-04-07 18:50:42 -05:00
Tung Nguyen
c8478e8ce3 formula_specialties: fix AWS standard_instructions
Closes Homebrew/homebrew#27398.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-03-11 08:03:04 +00:00
sowawa
21b2fdface Fix the bad value of EC2_HOME in the standard_instructions
Change EC2_HOME's value from 'export EC2_HOME="/usr/local/Cellar/ec2-api-tools/1.6.12.0/"'
to 'export EC2_HOME="/usr/local/Cellar/ec2-api-tools/1.6.12.0/libexec"'

Avoide the wrong value of EC_HOME caused by
024208466bfb4ffb479d48709caecc6a1e85ba4d

Closes Homebrew/homebrew#25918.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-03-04 20:27:34 -08:00
Adam Vandenberg
d1cfd02e27 AWS tools: always install to libexec
Don't link jars into lib or service into bin.
2013-11-15 23:57:07 -08:00
Adam Vandenberg
313134fbe3 ScriptFileFormula: remove override warning
Closes Homebrew/homebrew#20445.
2013-06-13 09:34:43 -07:00
Adam Vandenberg
e7838bdebb Warn when overriding ScriptFileFormula#install
ScriptFileFormula's use is that it installs whatever was downloaded
to bin; if the install is overridden, there's no benefit over deriving
directly from Formula.
2013-06-06 16:55:12 -07:00
Adam Vandenberg
6c6bbc702c specialties: point to valid examples 2013-06-06 16:41:27 -07:00
Jack Nagel
2e26afe556 Improved formula attribute validation
The initializer for Formula does a number of validations, but it does
them in a weird order, and some attributes aren't validated under
certain circumstances. This became even more of a mess when most
software package attributes were moved into the SoftwareSpec class.

This commit removes the last vestiges of storing these attributes as
instance variables. In particular, it eliminates #set_instance_variable
and #validate_variable, replacing them with methods that operate on
SoftwareSpec instances, and generate more useful errors.

Doing these validations unconditionally in the initializer means we bail
out much earlier if the formula has invalid attributes or is not fully
specified, and no longer need to validate in #prefix.

Technically we don't need to validate in #brew either, but we continue
to do so anyway as a safety measure, and because we cannot enforce calls
to super in subclasses.
2013-04-13 17:40:12 -05:00
Jack Nagel
98a11b8e57 Introduce new formula specs 2012-07-04 22:47:32 -05:00
Karsten Sperling
9158f68561 Point AWS environment variables at LinkedKeg
(rather than the version being installed)

This avoids having to change the variable when a different version is linked.
Also ensure the private key / cert variables point to only 1 file.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-06-07 21:39:42 -07:00
Adam Vandenberg
09d23d91ef Move AmazonWebServicesFormula to formula_specialties
Enough formulae in core depend on this, pull it in here.
When multi-repo support lands, perhaps we could set up Homebrew-AWS.
2012-03-05 21:14:39 -08:00
Adam Vandenberg
6af1aae50b Move specialized formulae base classes into a new file 2012-03-05 21:14:39 -08:00