Commit Graph
29 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
Charlie Sharpsteen 729563ab8a Revert SHA updates 5f4603b, 8320aca
GitHub had a hiccough---SHA checksums really didn't change.

This reverts commit 5f4603b230.
This reverts commit 8320aca3f0.

Ref #18501.
2013-03-15 17:19:07 -07:00
Ruben Laguna 8320aca3f0 io: Update SHA
IO recieved a stealth update.

Closes #18508.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2013-03-15 12:05:43 -07:00
Adam Vandenberg 6d61fcae40 io: depends on xz
Closes #16482.
2013-01-15 09:26:48 -08:00
Adam Vandenberg cc0206dfa4 IO: fix deps
Closes #15183.
2012-10-15 11:40:55 -07:00
Kyle Marek-Spartz c3c4496158 io fails_with :clang
make never completes. see: https://github.com/stevedekorte/io/issues/223

I've never put in a fails_with before, so this could be wrong.

Closes #14951.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-09-15 13:16:11 -07:00
fal4 3338fbefa3 io: options for disabling addons
Closes #14142.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-08-22 09:35:42 -07:00
Adam Vandenberg 43bb360ce3 io: fix build break
* Fix a build break on GCC
* Add some optional but useful dependencies
* Remove a no-op install
2012-07-18 21:10:05 -07:00
Jack Nagel 071c3eb3f4 Use new std_cmake_args method
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-22 22:22:00 -05:00
Fernando Ortiz eefa3132e2 io no longer depends_on libsgml
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-03-29 07:40:26 -07:00
Adam Vandenberg 55f3c49a9e Introduce block form of mkdir 2012-02-24 21:35:51 -08: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
Jack Nagel 164c57f284 Add mirrors for GNU formulae
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-30 12:56:07 -06:00
Susan Potter e0f18055b1 io 2011.09.12
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-10-22 09:41:13 -07:00
Max Howell 1da2043d4d Restore io --HEAD
This shouldn't have been removed, apologies.

Refs #7460.
2011-09-20 04:46:24 +01:00
Gabe Berke-Williams 335383549e Use latest stable version of Io
Closes #7460.

This is the last known stable version of Io. However it is very old. If you
can find a newer stable version, please add it!

Signed-off-by: Max Howell <max@methylblue.com>
2011-09-20 02:27:45 +01:00
Max Howell d2d7cad268 Warn user that IO fails to build often
Refs #7399
2011-09-05 09:44:53 +01:00
Max Howell 164a980426 Make IO build again; Fixes #7192 2011-08-26 13:36:34 +01:00
Adam Vandenberg 4e7c332a48 Use https for github repos. 2011-05-26 22:02:55 -07:00
Tom Rix 1f350c22f8 io: add uuid dependency
Recent HEAD builds of io now use this dependency.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-05-24 21:20:36 -07:00
Adam Vandenberg 5481b4cda7 io: Force location of PNG include.
CMake seems to not be picking up the /usr/X11/include folder for libpng,
so hard-code it to allow compilation to work.
2011-05-10 22:02:35 -07:00
Adam Vandenberg 0476235ce0 Use ruby style for inheritance. 2011-03-12 11:55:09 -08:00
Adam Vandenberg d56367c1ac Mark scons, cmake & pkg-config as build-time deps 2010-10-12 07:13:29 -07:00
Adam Vandenberg 0c1f68a8af io - install license file 2010-06-17 16:53:17 -07:00
Martin Kuehl 5b5e62f545 Updated formula: Io.
* Io switched its build system to `cmake`; adapt to that.
* Extract the `libsgml` formula.
* Install documentation.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-06-17 16:53:17 -07:00
Stephen Dekorte e6494622ce fix for io.rb - removed reference to IoReference.html
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-03-14 21:32:05 -07:00
Adam Vandenberg aad4dc23ec Use more inreplace features.
Update formulas to make more idiomatic use of "inreplace", including
its new ability to take a list of files to act on.
2010-02-21 23:37:49 -08:00
Max Howell bbfc3bfb1a Force IO to install into the prefix of our choosing 2009-12-05 15:59:37 +00:00
Jordan Bracco d114f39e99 io language 2009-12-05 15:58:20 +00:00