aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
AgeCommit message (Collapse)Author
2011-12-14Remove Clang-specific cflags when switching compilersOleg Oshmyan
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-12-13ENV: update and clean up optimization flagsOleg Oshmyan
- Fix ENV.libxml2 to update CPPFLAGS rather than CFLAGS - Methods ENV.{gcc*,llvm,clang} now reset CPU-specific optimization flags on every call. Closes Homebrew/homebrew#8105. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-09Add support for xz-compressed tarballsJack Nagel
Rationale: some software (e.g. GNU Coreutils, GnuTLS 3.x), have started distributing _only_ xz-compressed tarballs. There is no system XZ utility provided by OS X, but it is necessary so that we can continue to provide formulae for this software. If XZUtils isn't installed, we abort and prompt the user to `brew install xz`. The `xz` command itself doesn't do any untarring, so we write the decompressed archive to stdout and pipe it to tar.
2011-12-01ENV: fix llvm-gcc regexpMisty De Meo
Fixes: Homebrew/homebrew#8890. Closes Homebrew/homebrew#8893. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-11-27Fix array concatenation in ARGV.filter_for_dependenciesCharlie Sharpsteen
Gah. This was supposed to be in the last commit, but I forgot to `--amend` it.
2011-11-27Don't suppress `--verbose` while installing depsCharlie Sharpsteen
Unless the `--quieter` flag is passed. Closes Homebrew/homebrew#8723.
2011-11-27Suppress `--devel` while installing dependenciesCharlie Sharpsteen
Unless the dependency is explicitly passed to `brew install --devel`.
2011-11-27Re-work ARGV filtering to properly handle --HEADCharlie Sharpsteen
Previously, stripping arguments like `--HEAD` for dependencies failed because that flag affects the installation prefix encoded into formula objects. The previous implementation of `ARGV` filtering tried to contain all changes to a single method call before the `FormulaInstaller` forks. This update spreads things out a bit: - The Homebrew `ARGV` extension adds a new method, `filter_for_dependencies` which strips flags like `--HEAD`, yields to a block, then restores the original contents of ARGV. - The `explicitly_requested?` test, which returns true or false depending on if a formula object is a member of `ARGV.formulae`, is now a method of `Formula` objects. - `FormulaInstaller` objects now execute the installation of dependencies inside an `ARGV.filter_for_dependencies` block if the dependency was `explicitly_requested?`. Fixes Homebrew/homebrew#8668. Closes Homebrew/homebrew#7724.
2011-11-23ENV.rb: Fix typo in Fortran environment variablesCharlie Sharpsteen
`FFFLAGS` should be `FFLAGS`.
2011-11-21Define and use ARGV.build_devel?Jack Nagel
Often it is useful to provide a development build in addition to the stable release or HEAD download. Signed-off-by: Jack Nagel <jacknagel@gmail.com> Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-10-04pathname.rb: Fix spelling for permssionsDustin Koupal
Closes Homebrew/homebrew#7970. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-09-21Correctly parse ImageMagick bottle versionJack Nagel
Commit 2695821e98 ("Only use the bottle if its version is up-to-date") essentially broke the ImageMagick bottle, because the version parsing logic returns "1" as the bottle version. Fixing this requires only a slight modification to the bottle URL regex; includes a test. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-10With xcodebuild don't set CC, CXX, etc.Max Howell
The compiler setting in the xcodeproj is overridden by the CC setting in the environment. This is a bit insane IMO since the xcodeproj itself has detailed decisions about what tools to use. Fixes Homebrew/homebrew#6406.
2011-09-09Tune optimisations for sandybridgeMax Howell
2011-09-06Allow :force for ENV.gccMax Howell
This is used with fails_with_llvm so that if GCC cannot be found (and we suspect this is the case with Xcode 4.2) the build will fail. Quite possibly it should be the default.
2011-09-06Remember compiler setting when it is changed via eg. ENV.gccMax Howell
Thus it will be correct after the setting is changed.
2011-09-02Allow 'brew link' to work with URL-based formulaeJustin Hileman
Closes Homebrew/homebrew#7373. Signed-off-by: Max Howell <max@methylblue.com> I added some comments.
2011-09-02Remove Xcode dependence from ENV.rbMax Howell
Fixes Homebrew/homebrew#7329. Fixes Homebrew/homebrew#7269. Fixes Homebrew/homebrew#7236. Also quite a lot of tidy. This should all work fine. I think we only started referring into xcode_prefix because LLVM used to not be linked into /usr/bin. But for sure this is no longer true. If someone out there doesn't link cc etc. into /usr/bin then I guess we can revise this patch but it's not something we officially supported before, it was just an accident. I added a test step in the init code so that a working compiler will always be selected. This is mainly a fallback for old Xcodes. Though a comment in another area of the code suggested Xcode 3 on 10.5 doesn't have LLVM so…
2011-09-01Actually obey --use-gcc flagMax Howell
Schoolboy error.
2011-08-31Default to LLVM for Xcodes that default to LLVMMax Howell
2011-08-31Fix Xcode 4.2 cc compilesEugene Ray
It seems like latest build of Xcode 4.2 doesn't create "-4.2" links in /usr/bin. Because of this recipes fail with "configure: error: C compiler cannot create executables" error. Closes Homebrew/homebrew#7254. Closes Homebrew/homebrew#7276. Signed-off-by: Max Howell <max@methylblue.com> Amended to work as intended, since /usr/bin/cc is actually since Xcode 4. Amended commit message. First line must be less than 72 characters! :P
2011-08-31fix version parser for upcoming erlang bottleJan Lehnardt
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2011-08-26Some more sanity with ENV.compilerMax Howell
Deprecated use_clang? etc. since the logic was such that multiple states could be set, when in reality only one compiler can be set. Changed fails_with_llvm handling so if HOMEBREW_USE_LLVM is set then it tries to build even if the formula has fails_with_llvm set. Rationale: mostly they will no longer fail and we need to catch these cases.
2011-08-26Add ENV.clang; Fixes Homebrew/homebrew#6580Max Howell
Also tidied it up a little, reducing duplication as per original patch.
2011-08-25-march=native doesn't work at all. Gee.Max Howell
Fixes Homebrew/homebrew#7185.
2011-08-25add arrandale to list of core2 CPUsChip Turner
2011-08-24ENV: allow a user-configurable number of make jobsJack Nagel
Let an environment variable, HOMEBREW_MAKE_JOBS, override the default '-j<cores>' make flag. Now we can more easily debug formula that normally build in parallel, or (potentially) speed up lengthy builds.
2011-08-24Use -march=native when we don't otherwise knowMax Howell
I believe this works nowadays. When I created Homebrew originally, it did nothing. Hence all the other logic.
2011-08-24Tidy ENV.rbMax Howell
2011-08-04Fix Xcode 4 compiler paths for --use-gccCharlieRoot
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-31Don't install bottles in non-default HOMEBREW_PREFIX.Mike McQuaid
2011-07-29Build from source (for now) unless on Lion.Mike McQuaid
Longer-term we'll try and use install_name_tool to fix Lion bottles so they run fine on 10.5 and/or 10.6. Closes Homebrew/homebrew#6699.
2011-07-27Coerce flags to an array in `remove_make_var!`Trevor Wennblom
This is needed for Ruby 1.9.x compatibility, but we still don't support running Homebrew with anything other than a system provided 1.8.[67]. Fixes Homebrew/homebrew#6546 Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-22Build from source when we've options or 10.5.Mike McQuaid
2011-06-21Remove redeclared method.Mike McQuaid
2011-06-21Fix bad pathname indentation.Mike McQuaid
2011-06-21Fix brew bottle versioning.Mike McQuaid
2011-06-19Pathname: remove unused method starts_with?Adam Vandenberg
2011-06-19back-port start_with? from 1.8.7Adam Vandenberg
This allows its use in Leopard, which has Ruby 1.8.6.
2011-06-17Actually reset the permissionsMax Howell
2011-06-17Fix make_relative_symlink when names differMax Howell
Before we would always make the symlink itself have a basename the same as what it pointed to. I don’t think this breaks any of the other usages as they were working by coincidence.
2011-06-16Make these methods on ENV.Adam Vandenberg
2011-06-16Allow HOMEBREW_USE_CLANG env varAdam Vandenberg
2011-06-16Add clang compiler optionJosé Martínez
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-16Allow underscore with these suffixes for version detectionAdam Vandenberg
2011-06-08Add changes to Homebrew internals for bottling.Mike McQuaid
2011-06-05Edit universal_binary commentAdam Vandenberg
2011-06-04Also find versions in zipballsAdam Vandenberg
2011-05-26Add method to ENV for setting up a debug buildCharlie Sharpsteen
`ENV.Og` clears all optimization flags and adds `-g -O0`. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-05-07Fix misspelled method name: Formula.canonical_nameJack Nagel
Signed-off-by: Adam Vandenberg <flangy@gmail.com>