Commit Graph
39 Commits
Author SHA1 Message Date
Adam Vandenberg ddcc481102 ghc: use :macos 2013-06-18 08:03:32 -07:00
Jack Nagel 946e9a0306 ghc: fix testsuite download
Fixes #20194.
2013-06-01 10:22:21 -05:00
Mike McQuaid 8c8ee5901a ghc 7.6.3
Closes #14820.
Closes #18362.
Closes #18779.
2013-05-29 10:20:03 +01:00
Jack Nagel 5ddd40b844 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 #18175.
2013-03-12 13:55:15 -05:00
Mike McQuaid 6e4cf1dc5d ghc: update bottle 2013-03-03 23:34:06 +00:00
Adam Vandenberg cde77be078 ghc: still fails with clang 425
Closes 17575.
2013-02-04 13:46:39 -08:00
Adam Vandenberg 9e821fa3b7 ghc: style nits 2013-01-27 14:54:49 -08:00
Jack Nagel 3ad7174f7d Use new requirement syntax 2013-01-21 17:36:34 -06:00
nibbles 2bits facfe083b6 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 #15925.
Closes #15933.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-11-09 07:44:59 -08:00
Mike McQuaid 13953f519e ghc: add bottle. 2012-10-06 21:18:49 +01:00
nibbles 2bits 3cf0db7ed2 ghc: 7.4.2 build from source
Following the discussion in #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 #13519

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-10-06 21:18:49 +01:00
Adam Vandenberg 83b377167b Use env. 2012-09-14 09:14:48 -07:00
Jack Nagel 6b8d25f2d2 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 b826defd36 ghc: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-12 19:01:40 -05:00
Adam Vandenberg 9142e1d451 ghc: still doesn't work with Clang 421 2012-08-06 10:16:02 -07:00
Aku Kotkavuo 1a31902a27 GHC 7.4.2
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-06-11 06:55:59 -07:00
rhysd 3384702ff7 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 8022bf4dc0 Fix more quoting issues
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-15 17:08:57 -05:00
Mark A. Matienzo 506e48d7c5 ghc: readd explicit version numbers
Fixes #11719.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-04-18 07:06:02 -07:00
Charlie Sharpsteen bf0c3cb854 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 #11490.
Closes #11491.
Closes #11708.
2012-04-17 12:08:58 -07:00
Adam Vandenberg 67827eec9b GHC: use a Requirement 2012-04-17 06:50:31 -07:00
Charlie Sharpsteen 2e14216c69 GHC: Refuse to install on Leopard
The binary releases of the GHC compiler are no longer compatible with OS X
10.5.

Fixes #11671.
2012-04-17 06:44:31 -07:00
Adam Vandenberg 7e6123609a fix audit warnings 2012-04-05 20:30:45 -07:00
Jack Nagel 497b13ac9e Use new fails_with DSL syntax
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-01 12:39:59 -05:00
Adam Vandenberg 54117ad268 ghc: fix audit warning 2012-02-03 22:29:48 -08:00
John Harrison b8e6fc00ec 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 #9945.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-02-02 22:15:11 -08:00
Misty De Meo aedacdf209 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 #9735.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-01-25 21:45:19 -06:00
Aku Kotkavuo 7a73ae6752 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 83b099bf27 ghc: use a warning when installing 64-bit
Closes #7200.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-08-25 09:30:16 -05:00
Sudish Joseph 70c6ca0bbc GHC 7.0.4
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-19 14:52:17 -07:00
Aku 9a5398d181 Update GHC to v7.0.3.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-03 11:07:12 -07:00
Adam Vandenberg 0476235ce0 Use ruby style for inheritance. 2011-03-12 11:55:09 -08:00
Adam Vandenberg d0efd9ee94 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 17a63e004e ghc - remove custom .pkg support 2010-06-30 10:14:33 -07:00
Sudish Joseph c71ec7361a Update to ghc-6.12.3.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-06-14 16:50:47 -07:00
Adam Vandenberg aa0918eebc Fix perl path for ghc-asm
Fixes #1433.
2010-06-01 20:32:15 -07:00
Sudish Joseph abfa30808b 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 824fdfa16a Fix GHC formula 2010-03-10 12:17:52 +00:00
Miëtek Bak 076d5428c4 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