4653 Commits

Author SHA1 Message Date
Mike McQuaid
a6e2245732 git_etc: update based on bottle etc/var changes. 2013-10-10 16:46:47 +01:00
Mike McQuaid
a9764503b2 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
af4247429b formula: add bottle_prefix method. 2013-10-10 16:46:47 +01:00
Mike McQuaid
19852bc47c 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
caa2f87728 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
05a2261877 MercurialDownloadStrategy: avoid creating Formula object just for opt_prefix 2013-10-10 10:31:08 -05:00
Jack Nagel
4a2fc89c46 S3DownloadStrategy: use temporary_path accessor 2013-10-09 21:55:58 -05:00
Jack Nagel
bf1d04f039 Move checkout_name from AbstractDownloadStrategy to VCSDownloadStrategy 2013-10-09 21:41:15 -05:00
Jack Nagel
3cda215881 VCSDownloadStrategy: destructure spec hash more efficiently 2013-10-09 21:41:15 -05:00
Jack Nagel
6c5a9ae0fb Extract a new superclass for VCS-based download strategies 2013-10-09 21:41:15 -05:00
Jack Nagel
e27574b27b SubversionDownloadStrategy: stop mutating revisions hash 2013-10-09 21:41:14 -05:00
Jack Nagel
3d7de0065b download_strategy: style nits 2013-10-09 21:41:14 -05:00
Jack Nagel
c790a4f45e download_strategy: rename @spec to @ref_type 2013-10-09 21:41:14 -05:00
Mike McQuaid
88e5c4c333 brew-test-bot: remove escape characters. 2013-10-09 09:04:39 +01:00
Jack Nagel
9bd507b7be Remove unused variable 2013-10-08 23:58:48 -05:00
Jack Nagel
051061827c Remove outdated comment 2013-10-08 23:47:35 -05:00
Jack Nagel
424187fc15 Prefer interpolation to concatenation 2013-10-08 23:44:23 -05:00
Jack Nagel
b2516f9989 doctor: avoid using MACOS_VERSION 2013-10-08 23:32:22 -05:00
Misty De Meo
a5f68bb874 detect_cxx_stdlibs: Only detect for dylibs
Fixes Homebrew/homebrew#23115.
2013-10-08 09:04:21 -07:00
Mike McQuaid
01901314e9 brew-test-bot: use REXML to write JUnit file. 2013-10-08 16:45:22 +01:00
Mike McQuaid
85c1e5d02e Revert "brew-test-bot: cleanup junit file with iconv."
This reverts commit 5e26584736b310c365d4b9cce99d0dced9a2d309.
2013-10-08 13:00:27 +01:00
Mike McQuaid
90b7cfb507 brew-test-bot: cleanup junit file with iconv. 2013-10-08 12:13:06 +01:00
Mike McQuaid
8ec2d4594e BuildOptions: detect if building a bottle. 2013-10-08 10:13:03 +01:00
Jack Nagel
fe31e8ddb4 Use MacOS.locate to find otool
Fixes Homebrew/homebrew#23111.
2013-10-07 21:32:18 -05:00
Xiyue Deng
022f1225e6 Fix test failure for C++ stdlib. 2013-10-07 03:40:41 -07:00
Misty De Meo
15963322fd Tab#cxxstdlib: don't try to convert nil to_sym 2013-10-07 00:25:26 -07:00
Misty De Meo
d5ac2deefb Tab#cxxstdlib: remove default stdlib
Fixes Homebrew/homebrew#23089.
2013-10-07 00:15:03 -07:00
Misty De Meo
8e7fcaab1e formula_installer: change default bottle CxxStdlib 2013-10-07 00:02:46 -07:00
Misty De Meo
61ca8721fb Tab.dummy_tab: don't provide default stdlib value 2013-10-07 00:00:43 -07:00
Misty De Meo
80c77e6113 build: fix typo 2013-10-06 19:34:39 -07:00
Misty De Meo
8427e71368 Track the OS's default C++ stdlib 2013-10-06 19:26:06 -07:00
Misty De Meo
87b0137198 CxxStdlib: allow for nil stdlibs
A nil stdlib value represents non-C++ code.
2013-10-06 19:26:06 -07:00
Misty De Meo
74ab023422 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
9c53a1b8b7 Recommend Xcode 5.0.1 GM on 10.9 2013-10-06 17:24:22 -05:00
Misty De Meo
25ab8212a0 FileUtils#copy_metadata: update comment, version 2013-10-06 14:06:25 -07:00
Alex Malinovich
fb929f429f Fix typo in Keg#fixed_name invocation
Closes Homebrew/homebrew#23079.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-10-06 14:20:06 -05:00
Jack Nagel
50c7c6bbd6 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
43f0c63135 superenv: fix hardcoded X11 aclocal path 2013-10-04 21:06:19 -05:00
Jack Nagel
2bbe2dba16 ENV.x11: only use SDK when CLT is missing and X11 is from Apple 2013-10-04 21:06:18 -05:00
Jack Nagel
b2bb0e22f4 ENV.x11: always add include/freetype2 to CPPFLAGS 2013-10-04 21:06:18 -05:00
Jack Nagel
5b0e0c2570 config: squelch stderr when invoking git 2013-10-04 13:08:13 -05:00
Jack Nagel
7bb90c992a Fetch yields the key, use it 2013-10-04 12:44:05 -05:00
Jack Nagel
e887232b7e MacOS: remove unnecessary begin block 2013-10-04 12:42:31 -05:00
Xiyue Deng
592b5d91a0 Fix install_name_tool path for keg_only formulae
* When a versioned keg_only formula installs the same set of executables
  or libraries as a unversioned formula that links to $HOMEBREW_PREFIX,
  install_name_tool will prefer to use the linked paths for files in
  keg_only formula.  This breaks software that should link to the
  keg_only formula but links to the unversioned one instead.
* Add an additional "options" parameter with keg_only field to specify
  the correct install path for keg_only formulae.
2013-10-04 02:03:03 -07:00
Mike McQuaid
535c02674c Add Xcode 5.0.1.
Closes Homebrew/homebrew#23040.
2013-10-04 09:56:02 +01:00
Mike McQuaid
ee79f31516 xcode: Xcode 5.0 is the latest on 10.8. 2013-10-04 09:55:26 +01:00
Mike McQuaid
929a9f8b4c macos: cleanup whitespace. 2013-10-04 09:53:59 +01:00
Misty De Meo
b4f5be46d2 MacCPUs: distinguish between G5 32-bit and 64-bit 2013-10-03 20:05:32 -07:00
Jack Nagel
b35d9906e5 Pass the mktemp prefix as an argument 2013-10-02 22:01:31 -05:00
Jack Nagel
02a0e4e2e0 Fix mktemp directory naming 2013-10-02 19:41:05 -05:00