Commit Graph
10 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
Jack Nagel e8ad1765d4 qscintilla 2.7.1 2013-05-18 19:35:10 -05:00
Houtan Bastani 75d6c55cfd qscintilla2: update url
Closes #15997.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-11-12 07:48:09 -08:00
Iuri Diniz 90566ca750 qscintilla2: Fix source code directory name
The directory was renamed from `Qt4` to `Qt4Qt5`.

Closes #14264.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-08-18 17:39:22 -07:00
Demiko af5a810df8 qscintilla2 2.6.2
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-07-02 21:36:54 -07:00
Jack Nagel 6e06ddf7d4 qscintilla: use versioned python lib directory
Fixes #10366.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-25 17:27:30 -05:00
Adam Vandenberg d3f3554299 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
Nibbles 2bits 5f14d0a269 qscintilla2 2.6.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-02-12 18:21:56 -08:00
Alex Crown 0baa3645c8 qscintilla2 2.6
Closes #9637.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-17 17:49:44 -06:00
ms4py ac66058f32 qscintilla 2.5.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-01-08 10:21:45 -08:00