Samuel John
c4d7e21df5
brew create: Mention the example-formula
2013-08-20 15:44:12 +02:00
Samuel John
11b49ca28f
man brew: Mention the example-formula.rb
2013-08-20 15:37:31 +02: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
Jack Nagel
865b68de10
Add tests for ENV.{append,prepend}_path
2013-08-19 17:21:14 -05:00
Jack Nagel
4a3dac82ef
Use ENV.prepend_path
2013-08-19 17:21:13 -05:00
Jack Nagel
ea8f51256b
Use ENV.append_path
2013-08-19 17:21:13 -05:00
Jack Nagel
b672b44cf9
Add ENV.append_path
2013-08-19 17:21:13 -05:00
Jack Nagel
b8bac2ba53
Fix typo
2013-08-19 14:07:14 -05:00
Jack Nagel
1ffd40821a
which in requirements always uses ORIGINAL_PATHS now
...
Fixes Homebrew/homebrew#22002 .
2013-08-19 13:54:09 -05:00
Amos Wenger
52ace99f14
Use File::PATH_SEPARATOR globally instead of ':'
...
On Unix, the path separator is ':', whereas on Windows,
it is ';'. This is the first of a series of patch to bring
macbrew's and winbrew's codebases closer together.
The main places the magic constant ':' was being used were:
- the $PATH environment variable
- CMAKE-related environment variables
- pkg-config related environment variables
Closes Homebrew/homebrew#21921 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-08-19 13:35:44 -05:00
Jack Nagel
809a52a6a3
audit: activate ENV extensions
2013-08-19 13:03:41 -05:00
Jack Nagel
cec8d74239
Remove ENV.expand_xcrun
...
This method is currently unused and after inspecting the git history, it
appears it may never have been used at all.
2013-08-19 12:34:14 -05:00
Jack Nagel
a6771cd327
Initial tests for superenv sanity
2013-08-19 12:33:00 -05:00
Jack Nagel
a03120868f
No longer call ENV.userpaths! in requirements
...
Instead we use which with a custom PATH.
2013-08-19 12:33:00 -05:00
Jack Nagel
e0574b854e
More robust implementation of ENV.with_build_environment
2013-08-19 12:32:59 -05:00
Jack Nagel
dd9c269c69
Rename HomebrewEnvExtension to Stdenv
2013-08-19 12:32:59 -05:00
Jack Nagel
9a5b15bb61
Move common ENV methods to a shared module
2013-08-19 12:32:59 -05:00
Jack Nagel
cc18f5e0c4
Move superenv.rb to extend/ENV/super.rb
2013-08-19 12:32:59 -05:00
Jack Nagel
061f8cb35f
Fix superenv ENV[] hack
...
We override ENV[] to always return strings under superenv, because
legacy formulae assume that CFLAGS, etc. are non-nil.
However, the current implementation has a bug. If I simply concatenate
ENV['CFLAGS'] with another string, it mutates ENV['CFLAGS']:
irb> ENV['CFLAGS']
=> ""
irb> ENV['CFLAGS'] + 'a'
=> "a"
irb> ENV['CFLAGS']
=> "a"
Instead, let's simply return an empty string if the key doesn't exist.
This is sufficient because the following are equivalent:
1. ENV['CFLAGS'] += "string"
2. ENV['CFLAGS'] = ENV['CFLAGS'] + "string"
2013-08-19 12:32:58 -05:00
Jack Nagel
9699c0764e
Re-enable superenv ENV[] hack
2013-08-19 12:32:58 -05:00
Jack Nagel
ce31c16a14
Reference self, not ENV, in ENV.fortran
2013-08-19 12:32:58 -05:00
Jack Nagel
06b1668340
Reference self rather than ENV in Superenv module
...
We want to be able to extend this module onto an arbitrary hash and use
it without mutating ENV, for testing purposes.
2013-08-19 12:32:57 -05:00
Jack Nagel
d09e23c8b1
Move extra stdenv setup to extended callback
2013-08-19 12:32:57 -05:00
Jack Nagel
eebc04ec9b
Move common stuff to extend/ENV.rb
2013-08-19 12:32:57 -05:00
Jack Nagel
bf0e329010
Make Superenv activation explicit
2013-08-19 12:32:56 -05:00
Jack Nagel
a04f1ac3d3
Move superbin into Superenv module
2013-08-19 12:32:56 -05:00
Jack Nagel
ab5c6218b1
Move setup into an extended callback
2013-08-19 12:32:56 -05:00
Jack Nagel
21d3402f8e
Extend Superenv onto ENV instead of defining it on the singleton class
2013-08-19 12:32:55 -05:00
Adam Vandenberg
3128931238
update brew search completion
2013-08-17 08:56:20 -07:00
Jason Whittle
2c23e71be3
let inreplace take a symbol
...
As discussed in https://github.com/mxcl/homebrew/pull/21936
Closes Homebrew/homebrew#21942 .
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-08-17 07:40:27 -07:00
Chris Allen
ecb78d54c0
clojure: remove, blacklist in favour of leiningen.
...
Closes Homebrew/homebrew#21733 .
Closes Homebrew/homebrew#21782 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-08-17 12:29:53 +01:00
Jack Nagel
e998132406
This is a backreference, not an embedded NUL
2013-08-16 20:50:20 -05:00
Jack Nagel
1bcd428b8e
Fix superenv arch flag handling
...
Fixes Homebrew/homebrew#21943 .
2013-08-16 20:46:03 -05:00
Misty De Meo
1333b8d666
ENV.universal_binary: use as_arch_flags
2013-08-15 23:04:26 -07:00
Misty De Meo
e6d5e813d4
LinuxCPUs: provide stub methods
2013-08-15 22:46:57 -07:00
Misty De Meo
1586a69879
superenv: use Hardware::CPU.universal_archs
...
This defines the new HOMEBREW_ARCHS environment variable, which is
currently only set during universal builds, so that the tool wrappers
no longer need to hardcode i386/x86_64.
2013-08-15 22:46:57 -07:00
Misty De Meo
a892e52bfc
Add Hardware::CPU.universal_archs
2013-08-15 22:46:56 -07:00
Misty De Meo
0f580953b4
Mach: improve tests
2013-08-15 22:46:56 -07:00
Misty De Meo
b0d45b29bd
Mach: add as_cmake_arch_flags helper
2013-08-15 22:46:56 -07:00
Misty De Meo
ab633864d5
Mach: improve PPC arch detection
...
Also adds some reusable constants into the global Hardware::CPU
namespace, available on both OS X and Linux.
2013-08-15 22:46:56 -07:00
Misty De Meo
fa03fd91b4
Add MacOS.preferred_arch
...
Replaced the plethora of ternaries we've used all over the place to
determine whether x86_64 or i386 is called for.
2013-08-15 22:46:56 -07:00
Misty De Meo
ef1f2b4a79
Add Hardware::CPU.arch_(32|64)_bit
...
This replaces hardcoding of i386/x86_64 all over the code.
2013-08-15 22:46:55 -07:00
Jack Nagel
8bb26ee2d9
SubversionDownloadStrategy: fix reference to removed method
2013-08-15 15:46:03 -05:00
Adam Vandenberg
96175fae20
verbage
2013-08-14 22:24:38 -07:00
Adam Vandenberg
31348c34ae
add ubuntu package search
2013-08-14 22:14:35 -07:00
Adam Vandenberg
124ddce262
audit: show real name for aliases
2013-08-14 21:35:46 -07:00
Jack Nagel
ccbac62677
unpack: don't attempt to chdir into regular files
2013-08-14 22:15:07 -05:00
Jack Nagel
69058bd67f
unpack: don't call realpath on potentially non-existent directory
2013-08-14 22:13:55 -05:00
Jack Nagel
b0073ccdf0
unpack: extract usage
2013-08-14 22:13:26 -05:00
Jack Nagel
262afced5e
unpack: use ARGV.value
2013-08-14 20:11:40 -05:00