Commit graph

36 commits

Author SHA1 Message Date
Jack Nagel
ec11577107 Switch compilers when no build is specified
Given the current state of OS X compilers, the original fails_with
behavior is becoming less useful, mostly resulting in build failures
each time the compiler is updated. So make the following changes:

When a build is specified, we retain the old behavior: switch compilers
if the available compiler is <= the build, don't switch if it is > the
build.

When no build is specified, unconditionally switch compilers, and don't
output the advice message. This allows us to mark formulae as
perpetually failing, avoiding the need to update formulae each time a
new compiler build is made available.

As a bonus, this makes the logic much easier to reason about.

Closes Homebrew/homebrew#18175.
2013-03-12 13:55:15 -05:00
Mike McQuaid
1d4316de4e ghc: update bottle 2013-03-03 23:34:06 +00:00
Adam Vandenberg
987c0f9350 ghc: still fails with clang 425
Closes 17575.
2013-02-04 13:46:39 -08:00
Adam Vandenberg
5089bc4506 ghc: style nits 2013-01-27 14:54:49 -08:00
Jack Nagel
60003eecc3 Use new requirement syntax 2013-01-21 17:36:34 -06:00
nibbles 2bits
d0f2c8d89c ghc: add ENV.m32 for 32bit on x64.
- Add `ENV.m32` to fix build errors on 64bit hardware w/ `--32-bit`

Some users want to force 32bit ghc on 64bit hardware.
Ghc, however, comes with several internal libraries like libgmp
that get configured during the build. By forcing `ENV.m32`,
we force all the internal libs to build 32bit also.

Fixes Homebrew/homebrew#15925.
Closes Homebrew/homebrew#15933.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-11-09 07:44:59 -08:00
Mike McQuaid
53bc73fea4 ghc: add bottle. 2012-10-06 21:18:49 +01:00
nibbles 2bits
e0f39cffb3 ghc: 7.4.2 build from source
Following the discussion in Homebrew/homebrew#13519, ghc gets a major overhaul:

* Add a subformula that installs the ghc binary like before
* Use the ghc binary to build ghc from source
* Force ENV['LD'] = 'ld' to stop an assertion linking with llvm
* Add an option to run the testsuite. 9 unexpected fails atm
* Add a `j1` for an occasional install race
* Remove the patch which was fixed in two commits in Apr 2011.
        47ac5d859493ae0cd8dd02e1b4848f993acc3d5c
        a8d4731456ac3da0a70399e4ab821a763a4c04fb

Fixes Homebrew/homebrew#13519

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-10-06 21:18:49 +01:00
Adam Vandenberg
8af0e97014 Use env. 2012-09-14 09:14:48 -07:00
Jack Nagel
53473b6bf5 Clean up MacOS version method usage
The MacOS.version? family of methods (other than "leopard?") are poorly
defined and lead to confusing code. Replace them in formulae with more
explicit comparisons.

"MacOS.version" is a special version object that can be compared to
numerics, symbols, and strings using the standard Ruby comparison
methods.

The old methods were moved to compat when the version comparison code
was merged, and they must remain there "forever", but they should not be
used in new code.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-10 16:16:54 -05:00
Jack Nagel
a59d5ccec2 ghc: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-12 19:01:40 -05:00
Adam Vandenberg
31dba945f9 ghc: still doesn't work with Clang 421 2012-08-06 10:16:02 -07:00
Aku Kotkavuo
8574e0766a GHC 7.4.2
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-06-11 06:55:59 -07:00
rhysd
1826a6cb9c ghc: Update to 7.4.1
GHC stable release has updated to 7.4.1.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-06-05 15:44:48 -07:00
Jack Nagel
63cde03be4 Fix more quoting issues
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-15 17:08:57 -05:00
Mark A. Matienzo
e14c46a6ad ghc: readd explicit version numbers
Fixes Homebrew/homebrew#11719.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-04-18 07:06:02 -07:00
Charlie Sharpsteen
04d4ac373a GHC: Install 64bit version by default
The 64bit version of GHC became officially supported with the 7.0.2 release.
This is now used as the default unless the user does not have the required
hardware or invokes the `--32-bit` flag.

Closes Homebrew/homebrew#11490.
Closes Homebrew/homebrew#11491.
Closes Homebrew/homebrew#11708.
2012-04-17 12:08:58 -07:00
Adam Vandenberg
0a0bd67dc5 GHC: use a Requirement 2012-04-17 06:50:31 -07:00
Charlie Sharpsteen
186861b63e GHC: Refuse to install on Leopard
The binary releases of the GHC compiler are no longer compatible with OS X
10.5.

Fixes Homebrew/homebrew#11671.
2012-04-17 06:44:31 -07:00
Adam Vandenberg
3ec1c966d9 fix audit warnings 2012-04-05 20:30:45 -07:00
Jack Nagel
64afeec6d4 Use new fails_with DSL syntax
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-01 12:39:59 -05:00
Adam Vandenberg
9df30a139b ghc: fix audit warning 2012-02-03 22:29:48 -08:00
John Harrison
a93272bd57 GHC: Update devel to 7.4.1
Updating the formula to install GHC 7.4.1 for --devel, despite the fact thats
the current stable release. But, for haskell-platform I am leaving GHC 7.0.4 as
the current default GHC version.

Closes Homebrew/homebrew#9945.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-02-02 22:15:11 -08:00
Misty De Meo
2f03f781da Add devel to the DSL, + stable and bottle blocks
This commit adds a `devel` entry to the DSL, allowing formulae to
specify an unstable branch.

`devel` takes a block, which should contain standard `url` and `md5`
fields (and `version`, if necessary). This must come after the standard
DSL fields.

This commit also migrates over all formulae currently using `devel` to
the new syntax, as well as formulae which used `head` for non-VCS urls.

The new syntax is also available for `stable` and `bottle`. `stable` is
an option alongside the old syntax. `bottle` replaces the old syntax.

Note that the @stable ivar in Formula has been renamed to @standard,
and the @bottle ivar has been renamed to @bottle_url.

Closes Homebrew/homebrew#9735.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-01-25 21:45:19 -06:00
Aku Kotkavuo
e0155361f4 GHC: add 7.2.2 as --devel
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-11-26 19:47:40 -08:00
Jack Nagel
fdc33fa24f ghc: use a warning when installing 64-bit
Closes Homebrew/homebrew#7200.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-08-25 09:30:16 -05:00
Sudish Joseph
957332dfef GHC 7.0.4
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-19 14:52:17 -07:00
Aku
d8f5eab637 Update GHC to v7.0.3.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-03 11:07:12 -07:00
Adam Vandenberg
4147b05c57 Use ruby style for inheritance. 2011-03-12 11:55:09 -08:00
Adam Vandenberg
7bd947eb0b Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00
Adam Vandenberg
8d6e82f457 ghc - remove custom .pkg support 2010-06-30 10:14:33 -07:00
Sudish Joseph
c989041690 Update to ghc-6.12.3.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-06-14 16:50:47 -07:00
Adam Vandenberg
364258a8d0 Fix perl path for ghc-asm
Fixes Homebrew/homebrew#1433.
2010-06-01 20:32:15 -07:00
Sudish Joseph
559ea72d8d Updated ghc to 6.12.2.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-05-01 13:27:07 -07:00
Miëtek Bak
0c8680874e Fix GHC formula 2010-03-10 12:17:52 +00:00
Miëtek Bak
0f11fe6372 GHC 6.12.1
GHC is a state-of-the-art open source compiler and interactive environment for the
functional language Haskell.

This formula uses the official GHC binary package for Mac OS X.

Signed Off By: Max Howell <max@methylblue.com>

I adapted the system calls to use full paths to tools.

FileUtils is included into Formula, so I neatened that stuff up too.
2010-02-24 15:13:16 +00:00