Commit graph

55 commits

Author SHA1 Message Date
Xiyue Deng
bfdd67aa79 Fix option description that only Clang library is built.
* Also fix an annoyance in caveats (llvm3* -> llvm*).

Closes Homebrew/homebrew#22247.
2013-09-01 12:57:42 -07:00
Xiyue Deng
d46a3377b1 More tweaks for llvm.
* Port more changes from llvm formulae of homebrew-versions.
  - Don't install Clang tools.
* Remove all man pages.
  - Currently only clang.1 is available, and we don't ship clang binary
    in core.
2013-08-29 00:46:09 -07:00
Xiyue Deng
10d120b998 Simplify llvm formula.
* Stop shipping most binaries except llvm-config. Now llvm is supposed to be
  used as a library only.
* Add caveat to point user to homebrew-versions for full featured llvms.
2013-08-21 01:11:04 -07:00
Misty De Meo
654e4077e0 Use Hardware::CPU.universal_archs in formulae 2013-08-15 22:46:57 -07:00
Mike McQuaid
bbd913977b llvm 3.3 bottles 2013-06-21 16:34:33 +01:00
Mike McQuaid
0961c55ebe llvm 3.3
Closes Homebrew/homebrew#20593.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-06-21 16:33:58 +01:00
Mike McQuaid
5cb2e72cd3 llvm: update bottle to include dylibs.
Closes Homebrew/homebrew#20652.
2013-06-21 09:56:28 +01:00
Samuel John
f6e80bdea2 Python 2.x and 3.x support
New `depends_on :python` Dependency.
New `depends_on :python3` Dependency.

To avoid having multiple formulae with endings -py2 and -py3,
we will handle support for different pythons (2.x vs. 3.x)
in the same formula.
Further brewed vs. external python will be transparently supported.

The formula also gets a new object `python`, which is false if
no Python is available or the user has disabled it. Otherwise
it is defined and provides several support methods:

python.site_packages # the site-packages in the formula's Cellar
python.global_site_packages
python.binary # the full path to the python binary
python.prefix
python.version
python.version.major
python.version.minor
python.xy # => e.g. "python2.7"
python.incdir # includes of python
python.libdir # the python dylib library
python.pkg_config_path # used internally by brew
python.from_osx?
python.framework?
python.universal?
python.pypy?
python.standard_caveats # Text to set PYTHONPATH for python.from_osx?
python.if3then3 # => "" for 2.x and to "3" for 3.x.

Further, to avoid code duplication, `python` takes an optional
block that is run twice if the formula defines depends_on
:python AND :python3.

python do
  system python, 'setup.py', "--prefix=#{prefix}"
end

Read more in the Homebrew wiki.
2013-06-03 17:29:43 +02:00
Myles Borins
a1bb277e97 llvm: fix universal and enable universal+shared builds
Closes Homebrew/homebrew#19822.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-05-14 18:25:55 -05:00
Mike McQuaid
35a2ba2702 llvm: update bottle 2013-03-03 23:34:07 +00:00
Elliot Saba
1bf78f6793 llvm: option to build without assertions.
Closes Homebrew/homebrew#16449.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-02-02 14:10:43 -08:00
John Wiegley
e902e3c1b4 llvm: add support for building Clang with ASan
Closes Homebrew/homebrew#17039.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-31 10:29:53 -08:00
Mike McQuaid
51d62240bd llvm: update bottles. 2012-12-22 01:22:24 +00:00
Stefan
2adc1af6f5 llvm 3.2
Closes Homebrew/homebrew#16692.
Closes Homebrew/homebrew#16698.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-12-22 01:22:24 +00:00
nibbles 2bits
bad4eaf893 llvm: run make install for clang too
llvm takes a second make install in the clang_dir when clang
is built according to the install instructions in the clang
tarball.  Doing this gets all the clang include files installed
that were otherwise missing.  Add a `make install`.

Fixes Homebrew/homebrew#14924

Closes Homebrew/homebrew#15046.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-09-21 18:14:30 -07:00
Elliot Saba
8a9707d9b7 llvm: fix syntax error from commit 576b9fae0679e2a
Closes Homebrew/homebrew#14183.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-14 13:54:32 -05:00
Jack Nagel
f3e5555c60 llvm: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-13 10:55:17 -05:00
Mike McQuaid
2154d64930 llvm: remove unnecessary option functions. 2012-08-11 10:42:42 +01:00
Robert Lenhardt
f4c4d88654 llvm: update to 3.1 and cleanup options
- remove --jit, enabled by default
- call only make install
- directory with python bindings is copied to share folder
- remove --analyzer option, scan-build and scan-view are copied to
  share/clang/tools folder instead of installing in bin
- remove old patch to Makefile

Closes Homebrew/homebrew#13895.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-08-11 10:42:20 +01:00
Jack Nagel
63cde03be4 Fix more quoting issues
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-15 17:08:57 -05:00
Adam Vandenberg
16abc347cc Remove redundant :using specs 2012-04-19 21:06:00 -07:00
Mike McQuaid
84922ebc16 Add LLVM Snow Leopard bottle.
Requested in Homebrew/homebrew#10848.
2012-03-23 06:59:49 +13:00
Mike McQuaid
7e45f2d4a1 Add LLVM test. 2012-03-23 06:19:39 +13:00
Mike McQuaid
a709fdc76b Add LLVM bottle.
Requested in Homebrew/homebrew#10848.
2012-03-23 06:04:54 +13:00
Jeremy Voorhis
4e371187d4 Fix LLVM recipe
Fixed a regression where the definition of clang_dir was removed.

Closes Homebrew/homebrew#10515.

Signed-off-by: Max Howell <max@methylblue.com>

Modified patch so clang_dir is a function rather than a variable.
2012-02-28 20:13:16 +00:00
Adam Vandenberg
e84698e7aa Add buildpath to Formula 2012-02-24 21:35:51 -08:00
Adam Vandenberg
da3fdbd0cf Use "cd" instead of "Dir.chdir"
* And "mkdir" isntead of "Dir.mkdir"
* And "Dir[]" instead of "Dir.glob"
* Also style fixes and nitpicks
2012-02-24 21:35:50 -08:00
Charlie Sharpsteen
80c3f4fb36 LLVM: Disable OCaml bindings by default
The build attempts, and fails, to compile the OCaml bindings by default if
OCaml is installed.

Fixes Homebrew/homebrew#8947.
2011-12-03 14:57:49 -08:00
Sepher Liu
704b7fce93 LLVM: Update to 3.0
Closes Homebrew/homebrew#8942.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-12-02 11:34:09 -08:00
Trevor Fancher
2005c33257 LLVM: Add --jit option
Add --enable-jit to configure_options if --jit is used as an option when
installing LLVM.

Closes Homebrew/homebrew#7426.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-09-12 11:05:57 -07:00
Nathan de Vries
372f24ae8a LLVM: Add HEAD and don't force use of GCC 4.2.
Closes Homebrew/homebrew#6887.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-08-30 19:17:22 -07:00
ujihisa
08ab8095ad llvm caveats message fix
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-07 16:46:34 -07:00
Adam Vandenberg
e4f24b0c63 llvm: fix audit warnings 2011-06-23 10:15:10 -07:00
Kevin Y. Kim
740a7045c6 llvm: add --analyzer flag for Clang Static Analyzer
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-20 10:30:20 -07:00
Jonathan Ragan-Kelley
b2d9b77aff Added --all-targets option to LLVM recipe.
Optionally builds LLVM with support for all available targets,
not just the host target backend. (Most relevant: arm.)

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-05-19 08:07:21 -07:00
Adam Vandenberg
1f31751977 Use ARGV.build_universal? 2011-04-23 08:36:47 -07:00
Birger J. Nordølum
6e867b7275 Fixed building LLVM with --shared option.
Fixes Homebrew/homebrew#5114.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-14 11:40:03 -07:00
Nathan de Vries
6d8ea37ab8 llvm: set-xcode-analyzer
Install the set-xcode-analyzer script for configuring Xcode to use a
non-standard Clang path for static analysis.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-14 11:36:12 -07:00
Mike McQuaid
edd1150c9a Update to LLVM 2.9 2011-04-07 15:12:35 +01:00
Adam Vandenberg
edfb67d937 Rewrite caveats to new style.
To make it easier to copy and paste multiline scripts from caveats,
no longer use $ as a prompt marker.
2011-04-04 16:56:47 -07:00
Adam Vandenberg
4147b05c57 Use ruby style for inheritance. 2011-03-12 11:55:09 -08:00
Ronaldo M. Ferraz
e9a7e8d562 Added a patch to fix load errors in LLVM's shared library for 10.6
LLVM tries to build its shared library using a flat namespace, and
that runs contrary to current practice when building Mac OS X libraries.
This patch fixes the Makefile.rules to use proper libtool/link options.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2011-01-20 20:45:56 +00:00
Ronaldo M. Ferraz
8245fcf9a0 Add shared and rtti options to LLVM.
* Added a --shared option to build LLVM as a shared library.
  (Shouldn't be used with --universal as it will cause the build to fail)

* Added a --rtti option to build LLVM with RTTI information.
  (Can be used, for example, to build LLVM for use with Rubinius)

Closes Homebrew/homebrew#3847.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2011-01-09 19:06:10 +00:00
Joshua Ballanco
67bef04d19 Added a --universal option to LLVM
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2010-12-27 21:02:27 +00:00
Adam Vandenberg
e88def8fa3 llvm - add upgrade caveat 2010-10-07 10:13:59 -07:00
Adam Vandenberg
ca407263c2 llvm - fix md5 2010-10-06 18:52:50 -07:00
Michael Dippery
1a66432b14 llvm: Update to v2.8
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-06 07:36:51 -07: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
a06d603441 llvm - style tweaks 2010-06-05 10:27:11 -07:00
David Höppner
ff91c4ed51 llvm: update version to 2.7 2010-04-28 22:19:05 +02:00