Commit Graph
3475 Commits
Author SHA1 Message Date
Jack Nagel 49950d390b GitDownloadStrategy: remove redundant use of nostdout 2013-10-11 00:21:25 -05:00
Jack Nagel f206d65afd GitDownloadStrategy: remove redundant use of :quiet_flag 2013-10-11 00:21:25 -05:00
Jack Nagel 9fc795d1ec GitDownloadStrategy: @@git is always a string, so inline it 2013-10-11 00:21:24 -05:00
Jack Nagel bff7beec10 SubversionDownloadStrategy: @@svn is always a string, so inline it 2013-10-11 00:21:24 -05:00
Jack Nagel 49f8531272 VCSDownloadStrategy: pull construction of @clone into superclass 2013-10-11 00:21:23 -05:00
Jack Nagel 460ae7f5ab VCSDownloadStrategy: rename checkout_name to cache_filename 2013-10-11 00:21:23 -05:00
Jack Nagel 4149b8b7b1 Move cached_location up to VCSDownloadStrategy 2013-10-10 11:24:36 -05:00
Jack Nagel fa0adb60eb download_strategy: rename @co to @clone for uniformity 2013-10-10 11:24:35 -05:00
Misty De Meo 6de20cc6ec CxxStdlib: use f.recursive_dependencies in stdlib check 2013-10-10 09:09:53 -07:00
Misty De Meo 7dbfbbd284 formula_installer: pass effective_deps to CxxStdlib 2013-10-10 08:51:38 -07:00
Misty De Meo 7f06631625 CxxStdlib: don't check buildtime deps
Otherwise it's possible that certain buildtime dependencies, that won't
be linked against, will block a build.

See #23115.
2013-10-10 08:51:38 -07:00
Mike McQuaid c1e06c65da git_etc: update based on bottle etc/var changes. 2013-10-10 16:46:47 +01:00
Mike McQuaid 2dc871b3b7 formula_installer: handle etc/var in bottles.
Copy these files/folders to a .bottle directory under the Cellar for installation
elsewhere at pouring time.

Temporarily disable HOMEBREW_GIT_ETC methods until fixed.
2013-10-10 16:46:47 +01:00
Mike McQuaid ecdbd424e8 formula: add bottle_prefix method. 2013-10-10 16:46:47 +01:00
Mike McQuaid f4d29a0494 Pathname: add cp_path_sub method.
This method allows copying a file to a new location by performing a
substitution on the pathname.
2013-10-10 16:46:47 +01:00
Mike McQuaid 8db4a6c18d InstallRenamed: don't overwrite etc files; rename.
If an etc file exists on installation instead of overwriting it (or
requiring all the manual checks in formula) simply copy it with the
extension `.default` appended.
2013-10-10 16:46:47 +01:00
Jack Nagel e39703be8e MercurialDownloadStrategy: avoid creating Formula object just for opt_prefix 2013-10-10 10:31:08 -05:00
Jack Nagel 6a944c5f1d S3DownloadStrategy: use temporary_path accessor 2013-10-09 21:55:58 -05:00
Jack Nagel 940fd79ef7 Move checkout_name from AbstractDownloadStrategy to VCSDownloadStrategy 2013-10-09 21:41:15 -05:00
Jack Nagel 0233def545 VCSDownloadStrategy: destructure spec hash more efficiently 2013-10-09 21:41:15 -05:00
Jack Nagel 0588dea2d3 Extract a new superclass for VCS-based download strategies 2013-10-09 21:41:15 -05:00
Jack Nagel 9da55d087c SubversionDownloadStrategy: stop mutating revisions hash 2013-10-09 21:41:14 -05:00
Jack Nagel 93ffcb3e83 download_strategy: style nits 2013-10-09 21:41:14 -05:00
Jack Nagel fd1addb656 download_strategy: rename @spec to @ref_type 2013-10-09 21:41:14 -05:00
Jack Nagel 6059703508 Remove unused variable 2013-10-08 23:58:48 -05:00
Jack Nagel 1391171a0c Remove outdated comment 2013-10-08 23:47:35 -05:00
Jack Nagel 4870e2183e Prefer interpolation to concatenation 2013-10-08 23:44:23 -05:00
Jack Nagel 1c27bcdaec doctor: avoid using MACOS_VERSION 2013-10-08 23:32:22 -05:00
Misty De Meo 895ac81720 detect_cxx_stdlibs: Only detect for dylibs
Fixes #23115.
2013-10-08 09:04:21 -07:00
Mike McQuaid aa76e07011 BuildOptions: detect if building a bottle. 2013-10-08 10:13:03 +01:00
Jack Nagel b4ba775003 Use MacOS.locate to find otool
Fixes #23111.
2013-10-07 21:32:18 -05:00
Xiyue Deng 122ac08b1f Fix test failure for C++ stdlib. 2013-10-07 03:40:41 -07:00
Misty De Meo f40af36f90 Tab#cxxstdlib: don't try to convert nil to_sym 2013-10-07 00:25:26 -07:00
Misty De Meo f05865ba9b Tab#cxxstdlib: remove default stdlib
Fixes #23089.
2013-10-07 00:15:03 -07:00
Misty De Meo 5c0c378574 formula_installer: change default bottle CxxStdlib 2013-10-07 00:02:46 -07:00
Misty De Meo 7da592ca12 Tab.dummy_tab: don't provide default stdlib value 2013-10-07 00:00:43 -07:00
Misty De Meo 6f7de3568c build: fix typo 2013-10-06 19:34:39 -07:00
Misty De Meo 4ed26b20f4 Track the OS's default C++ stdlib 2013-10-06 19:26:06 -07:00
Misty De Meo 77b678cea9 CxxStdlib: allow for nil stdlibs
A nil stdlib value represents non-C++ code.
2013-10-06 19:26:06 -07:00
Misty De Meo 52af93123a Only track C++ stdlibs for C++ code
After a formula is built, scan all mach-o files for dynamic links
to see if any of them point to a C++ stdlib (libc++ or libstdc++).
If one of them is linked, record that information in the formula's tab.

This replaces the old behaviour where all files were assumed to be C++
code, and stdlibs were always tracked regardless of whether they were
actually linked against.

This also modifies the way that tabs are written - now tabs are written
with the stdlib field null, and values are only written if an stdlib
is detected.
2013-10-06 19:26:06 -07:00
Jack Nagel 12cdd4d702 Recommend Xcode 5.0.1 GM on 10.9 2013-10-06 17:24:22 -05:00
Misty De Meo d53c9659fc FileUtils#copy_metadata: update comment, version 2013-10-06 14:06:25 -07:00
Alex Malinovich ef25a25ecd Fix typo in Keg#fixed_name invocation
Closes #23079.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-10-06 14:20:06 -05:00
Jack Nagel 86e6ff5e80 Check types in Formula#==
Comparing two objects should not raise an exception, even if they have
different types.

The semantics of #== are now the same as #eql?, so make one an alias.
2013-10-04 21:19:15 -05:00
Jack Nagel 1f973c3084 superenv: fix hardcoded X11 aclocal path 2013-10-04 21:06:19 -05:00
Jack Nagel 97858c672c ENV.x11: only use SDK when CLT is missing and X11 is from Apple 2013-10-04 21:06:18 -05:00
Jack Nagel 6d4dc72a23 ENV.x11: always add include/freetype2 to CPPFLAGS 2013-10-04 21:06:18 -05:00
Jack Nagel a6b885f0eb config: squelch stderr when invoking git 2013-10-04 13:08:13 -05:00
Jack Nagel d2386f07b0 Fetch yields the key, use it 2013-10-04 12:44:05 -05:00
Jack Nagel 3a098ad8fc MacOS: remove unnecessary begin block 2013-10-04 12:42:31 -05:00