Commit Graph
21 Commits
Author SHA1 Message Date
Jack Nagel 2d15b1ae6e pyside: fix shiboken dep 2013-06-03 17:28:57 -05:00
Jack Nagel a9b6929a69 pyside: style 2013-06-03 17:03:09 -05:00
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
Adam Vandenberg 11bf38b2b1 Add frameworks helper to formula 2013-05-03 11:41:55 -07:00
Simon Sigurdhsson d6a2964eab Remove global methods from formulae
Removes any global methods from formulae, and moves #kext_prefix (which
seems to be at least somewhat abstractable) into the Formula class. The
only formula with global methods is now aspell; it (and its generating
script in contrib) has been changed to prefix that method with
`aspell_`, to minimize the risk of name collisions.

Closes #19331.
Closes #19343.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-04-21 23:48:50 -05:00
Jack Nagel 1a335103ed pyside: use qt-project URL 2013-01-10 20:19:39 -06:00
Jack Nagel d49bf44f93 pyside 1.1.2
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-13 13:26:49 -05:00
Jack Nagel ae10ccaef2 pyside: use temporary MacPorts mirror
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-13 13:21:33 -05:00
nibbles 2bits f681883ed9 pyside 1.1.1
Upgrade pyside to version 1.1.1, which supports Qt-4.8.
Add and out of source build to match shiboken, seeing as shiboken
is also from the same developers.

Tested on Lion with clang and llvm from XCode-4.3.3.
Tested with and it needs shiboken >= 1.1.1.

Closes #13331.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-12 02:48:16 -05: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
Jack Nagel e459d51d0b Break long lines
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-15 16:15:46 -05:00
Jack Nagel 417d788070 Shore up a number of shell quoting issues
When interpolating in strings passed to Formula#system, it should be
done in such a way that if any interpolated variables contain spaces,
they are either (a) passed as part of a list or (b) protected by quotes
if they are part of a long string (which is subject to shell expansion).
Otherwise, they will be split on the space when expanded by the shell
and passed as multiple arguments to whatever process is being executed.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-15 14:03:11 -05:00
Charlie Sharpsteen 859db25522 Revert "ENV.rb: Always return integers from make_jobs"
This reverts commit ea1a9e603a.

Argh. Unrelated PySide changes slipped in.
2012-05-03 15:48:51 -07:00
Charlie Sharpsteen ea1a9e603a ENV.rb: Always return integers from make_jobs
When referencing `Hardware.processor_count`, `ENV.make_jobs` will return an
integer. If referencing the environment variable `HOMEBREW_MAKE_JOBS`, it
returned a string.

Now, the function always returns an integer.

Fixes #12033.
2012-05-03 15:45:31 -07:00
Adam Vandenberg 531a576509 Put source path last in cmake args 2012-02-24 21:35:51 -08:00
Charlie Sharpsteen 0db99616f8 PySide: Update to 1.1.0
Also updates the following dependencies:

  - ApiExtractor
  - GeneratorRunner
  - Shiboken

Also clean up dependency statements.
2012-01-08 15:35:57 -08:00
Charlie Sharpsteen d2e2d9ec04 PySide: Update to 1.0.9
Also updates dependencies:

  - apiextractor
  - generatorrunner
  - shiboken
2011-12-02 11:41:13 -08:00
Charlie Sharpsteen 65cb02daef PySide: Update to 1.0.8
Also updates dependencies:

  - apiextractor
  - generatorrunner
  - shiboken
2011-11-09 14:06:13 -08:00
Charlie Sharpsteen 74b13b8514 PySide: Update to 1.0.7
Also updates apiextractor, generatorrunner and shiboken.
2011-09-22 00:27:41 -07:00
John Harrison 10dcc69325 Pyside: Fix path to site-packages
Corrected the site-packages paths for pyside and pyside-tools to agree with
python's formula.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-08-26 11:47:49 -07:00
Charlie Sharpsteen 05d3a7e9c7 New formula for PySide
PySide is a set of LGPL-licensed Python bindings for the Qt libraries that is
mostly compatible with PyQt.

This formula builds the Python run-time modules. For development tools such as
Qt UI and Resource compilers, see the PySideTools formula.
2011-08-25 17:47:22 -07:00