Commit Graph

29 Commits (368ffbc8ea31d6d94122038b20ea933c616317bf)

Author SHA1 Message Date
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
Charlie Sharpsteen a5e90212dd Revert SHA updates 5f4603b, 8320aca
GitHub had a hiccough---SHA checksums really didn't change.

This reverts commit 5f4603b230c90d7ccc875f9ffe1e93900cf057b5.
This reverts commit 8320aca3f014f3b87b77fcd4316534f03a1a0475.

Ref Homebrew/homebrew#18501.
2013-03-15 17:19:07 -07:00
Ruben Laguna 0ee3178e10 io: Update SHA
IO recieved a stealth update.

Closes Homebrew/homebrew#18508.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2013-03-15 12:05:43 -07:00
Adam Vandenberg 97856138f9 io: depends on xz
Closes Homebrew/homebrew#16482.
2013-01-15 09:26:48 -08:00
Adam Vandenberg 2d829b36f5 IO: fix deps
Closes Homebrew/homebrew#15183.
2012-10-15 11:40:55 -07:00
Kyle Marek-Spartz 75a3166692 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 Homebrew/homebrew#14951.

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

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-08-22 09:35:42 -07:00
Adam Vandenberg 1780c8d43f 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 c7630f5ff4 Use new std_cmake_args method
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-22 22:22:00 -05:00
Fernando Ortiz 0496f3bec3 io no longer depends_on libsgml
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-03-29 07:40:26 -07:00
Adam Vandenberg 83b371fba5 Introduce block form of mkdir 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
Jack Nagel 83fcafb5aa Add mirrors for GNU formulae
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-30 12:56:07 -06:00
Susan Potter c41ae9085d io 2011.09.12
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-10-22 09:41:13 -07:00
Max Howell 16c4192c48 Restore io --HEAD
This shouldn't have been removed, apologies.

Refs Homebrew/homebrew#7460.
2011-09-20 04:46:24 +01:00
Gabe Berke-Williams eac639b819 Use latest stable version of Io
Closes Homebrew/homebrew#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 b3ccbe8427 Warn user that IO fails to build often
Refs Homebrew/homebrew#7399
2011-09-05 09:44:53 +01:00
Max Howell 691a8b5310 Make IO build again; Fixes Homebrew/homebrew#7192 2011-08-26 13:36:34 +01:00
Adam Vandenberg 243bc743ea Use https for github repos. 2011-05-26 22:02:55 -07:00
Tom Rix 328d5f3366 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 c1d572932b 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 4147b05c57 Use ruby style for inheritance. 2011-03-12 11:55:09 -08:00
Adam Vandenberg 19e5e6e64a Mark scons, cmake & pkg-config as build-time deps 2010-10-12 07:13:29 -07:00
Adam Vandenberg 46244623fd io - install license file 2010-06-17 16:53:17 -07:00
Martin Kuehl 29893aabcd 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 c3bf096162 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 193a78de04 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 13f4edebf4 Force IO to install into the prefix of our choosing 2009-12-05 15:59:37 +00:00
Jordan Bracco fc83afbff1 io language 2009-12-05 15:58:20 +00:00