Commit Graph
179 Commits
Author SHA1 Message Date
Samuel John 0b50110107 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
Andrey Chizh ec5f331083 node 0.10.9
Closes #20164.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-05-30 20:21:38 -07:00
Andrey Chizh ee9954275d Node.js 0.10.8
Closes #20071.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-05-25 10:12:31 -05:00
Christian Moritz e44f34569e node 0.10.7
Closes #19909.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-05-18 17:58:07 -05:00
Andrey Chizh 858354053a Node 0.10.6
Closes #19850.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-05-15 20:48:58 -05:00
Fredrik Forsmo 3b589c558f node --devel 0.11.2
Closes #19792.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-05-14 09:49:06 -07:00
Adam Vandenberg 1bc3574fcc node: inline npmrc script 2013-05-08 15:02:08 -07:00
Adam Vandenberg eed6c5c2ed Node: remove --with-shared-libs
There's no guarantee that the version of V8 packaged by Homebrew
is compatible with what the current version of Node expects.

Closes #19686.
2013-05-08 15:00:58 -07:00
Misty De Meo 042d4e158c node: patch gyp to remove Xcode dependency
Fixes #19424.
2013-04-28 17:04:10 -05:00
Misty De Meo 36d992d1d1 node: doesn't require Xcode
This reverts commit 10e219de7e.

Multiple users have reported that node builds just fine with a CLT-only
system, and provided build logs to show it. Restoring CLT-only support
until a build failure is demonstrated again by another user.
2013-04-24 15:18:51 -05:00
Chandler Latour dab6a96e3f node 0.10.5 + devel 0.11.1
Closes #19387.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-04-23 20:04:26 -05:00
Misty De Meo 10e219de7e node: requires Xcode 2013-04-22 13:32:21 -05:00
Christian Moritz 8bb1a817be node 0.10.4 + devel 0.11.0
Closes #19138.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-04-11 23:28:30 -05:00
David Björklund 71fd5b1f46 node 0.10.3
Closes #18950.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-04-03 18:18:38 -05:00
Chandler Latour 91636ea914 node 0.10.2
Closes #18803.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-03-28 15:15:23 -07:00
Chongyu Zhu bfb5239890 node 0.10.1
Closes #18644.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-03-21 14:25:51 -05:00
Adam Vandenberg 687062f7f5 node: formatting 2013-03-12 20:31:33 -07:00
Eduard Baun 7ead0c4d90 node 0.10.0
Closes #18402.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-03-11 12:54:34 -05:00
Chongyu Zhu 3c4a714ea6 node 0.8.22, devel 0.9.12
Closes #18321.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-03-07 19:14:28 -08:00
Evan Oxfeld a3ef032505 node devel 0.9.11
Closes #18179.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-03-02 22:54:13 -06:00
Chongyu Zhu 7d956e981f node 0.8.21
Closes #18095.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-02-26 07:48:58 -08:00
Stefan 9f95fff3e4 node: add with-shared-libs option
Closes #17900.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-02-23 08:23:54 +00:00
Evan Oxfeld 6ac94ce41b node --devel 0.9.10
Closes #17972.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-02-20 08:04:09 -08:00
Misty De Meo db0749b3e3 node: fix NpmNotInstalled requirement
With some older versions of node, apparently the npm directory itself
is not a symlink into the node keg but the npm binary is.

Fixes #17668.
2013-02-19 08:43:27 -06:00
Jack Nagel 2c04ee4e04 Remove unused variables 2013-02-18 17:38:57 -06:00
Christian Moritz 5973035e8f node 0.8.20
Closes #17869.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-02-15 13:22:13 -08:00
Evan Oxfeld 4824d7ca4e node --devel 0.9.9
Closes #17679.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-02-08 09:18:19 -08:00
Christian Moritz 26a34a2578 node 0.8.19
Closes #17635.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-02-06 19:47:02 -06:00
Evan Oxfeld 07783c3aa9 node 0.9.8
Closes #17546.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-02-02 15:16:17 -08:00
Adam Vandenberg c82d57eea1 node: fix indent 2013-02-01 18:39:14 -08:00
Etienne Laurin 69efc210b2 node: fix test for external npm
Closes #15315.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-31 15:53:09 -08:00
Adam Vandenberg 92f528dc8f node: style nits 2013-01-27 14:54:51 -08:00
Jack Nagel 3ad7174f7d Use new requirement syntax 2013-01-21 17:36:34 -06:00
damienklinnert da9c8d8bb6 node 0.8.18
Closes #17193.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-19 12:04:30 -08:00
Aria Stewart 59c35b97a3 node devel 0.9.6
Closes #17020.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-01-12 11:55:13 -06:00
Christian Moritz e4fc741c17 node 0.8.17
Closes #16982.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2013-01-10 11:16:22 -08:00
Aria Stewart 8aeaf1510d node --devel 0.9.5
Closes #16794.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-12-29 17:52:42 -08:00
Aria Stewart cdcb1e8bf9 node: Track 0.9.x releses as devel
Closes #16784.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-12-28 21:07:41 -08:00
Christian Moritz 1d816c6eeb node 0.8.16
Closes #16566.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-12-14 09:24:21 -08:00
James Campos fc6441e1cc node 0.8.15
Closes #16315.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-11-29 19:23:43 -08:00
James Campos 11b5459f70 node 0.8.14
Closes #15676.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-10-26 08:24:22 -07:00
James Campos 3ae0e38618 node 0.8.12
Closes #15435.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-10-13 11:48:48 -07:00
Geries Handal f24a5f5687 node.rb 0.8.11
Closes #15191.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-09-28 16:08:52 -07:00
John Earles 4c0b143efa node 0.8.10
Closes #15125.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-09-25 18:58:28 -07:00
Jarrett Cruger fb8447d4c7 Updated node.js formula to v0.8.9
Signed-off-by: Max Howell <mxcl@me.com>
2012-09-21 23:22:36 -04:00
Jack Nagel 52bdfa175d node: use Xcode module method 2012-09-13 20:54:17 -05:00
Charlie Sharpsteen 7dd3e04c37 node: Better workaround for CLT-only systems
Instead of requiring a full XCode install, we can use the `DEVELOPER_PATH`
environment variable to lie to `xcode-select` in a way that should restrict any
consequences to the Node build.
2012-09-13 17:24:45 -07:00
Charlie Sharpsteen eb8b6330d3 node: Depend on full XCode install
Reverts commit bfc71f7.

This is necessary due to an upstream bug with the GYP buildsystem that has no
solid workaround:

  http://code.google.com/p/gyp/issues/detail?id=292

Fixes #14915.
2012-09-13 16:31:29 -07:00
Jack Nagel c6e91d9fb8 node: remove skip_clean :all
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-13 12:55:42 -05: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