Commit Graph

22 Commits (3ece02f3c3b5548f01140edc44d7ee8177c84463)

Author SHA1 Message Date
Mike McQuaid 8737f13b69 shiboken: cleanup python usage. 2014-01-04 13:35:47 +00:00
Brian Jensen 7b4c1441f6 shiboken 1.2.1, fix build issue with Mavericks
Closes Homebrew/homebrew#23867.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-11-17 00:19:20 -06:00
Samuel John 030793c988 Improve python tests for brew bots
Allow `build.with?` and similar methods to be used during the test
phase. The BuildOptions (`build`) are initialized with the
`Tab.used_options` unless explicitly overwritten on the command line.

So basically `build.with?` works in `def install` and in `test do` as
one would naively expect. (For the test, gramatically it should be
`built.with?` but who cares)

If a formula was installed `--with-python`, now the tests are also
run `--with-python`. This enables us to use the `python do ... end` in
a meaningful manner.

Using `python do ... end` blocks for the tests, because the bot.brew.sh has
system python per default and we need to set the PYTHONPATH for the test.
Potentially to different values for Python 2.x and 3.x.
2013-09-05 15:26:57 +02:00
Mike McQuaid 211ea2e7ef Fix various Python import tests. 2013-09-02 22:32:02 +01:00
Samuel John 5f1d112c7f shiboken: 1.2.0, fix tests, run tests, add --HEAD 2013-08-08 12:22:49 +02:00
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
Jack Nagel 68917d0bae shiboken: use qt-project URL 2013-01-10 20:19:07 -06:00
Jack Nagel e5af64467c Update references to compat methods 2012-12-25 15:35:27 -06:00
Jack Nagel d9e2942ce5 shiboken 1.1.2
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-13 13:26:35 -05:00
Jack Nagel 445a1c5270 shiboken: use temporary MacPorts mirror
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-13 13:21:32 -05:00
nibbles 2bits f08b6918ef shiboken: fix python
Shiboken uses CMake and needs the same help as OpenCV and VTK in
finding the Python Libraries and Headers.

Add code to find them.  Tested on Lion with clang and llvm from
XCode-4.3.3 using System Python, Homebrew Framework and loose
Python.

Fixes Homebrew/homebrew#13563

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-08-07 10:43:02 -07:00
William Woodall 47a552cf57 shiboken: fixed missing dependency on qt
Closes Homebrew/homebrew#13377.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-07-13 11:41:51 -08:00
nibbles 2bits 930d5f3712 shiboken 1.1.1
Upgrade shiboken to version 1.1.1.
Remove the unneeded deps on generatorrunner and apiextractor.
Switch to an out of tree build with `mkdir 'macbuild' do` because
it will not compile otherwise when it tries to overwrite a
directory named `shiboken` with a binary named `shiboken`.
This results in an `error=21` which is defined in
`/usr/include/sys/errno.h` as `EISDIR`, is a directory.

Tested on Lion with clang and llvm from XCode-4.3.3.
Tested by building pyside-1.1.1 with shiboken-1.1.1.

Closes Homebrew/homebrew#13330.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-12 02:43:19 -05: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
Charlie Sharpsteen a33127cf09 Revert "ENV.rb: Always return integers from make_jobs"
This reverts commit ea1a9e603abe3dab90bf5b157d2614cf58e2cc8e.

Argh. Unrelated PySide changes slipped in.
2012-05-03 15:48:51 -07:00
Charlie Sharpsteen f118b859d4 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 Homebrew/homebrew#12033.
2012-05-03 15:45:31 -07:00
Adam Vandenberg 7c5720e36f Put source path last in cmake args 2012-02-24 21:35:51 -08:00
Charlie Sharpsteen 31645357a9 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 c713103965 PySide: Update to 1.0.9
Also updates dependencies:

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

  - apiextractor
  - generatorrunner
  - shiboken
2011-11-09 14:06:13 -08:00
Charlie Sharpsteen 3dc3ae111b PySide: Update to 1.0.7
Also updates apiextractor, generatorrunner and shiboken.
2011-09-22 00:27:41 -07:00
Charlie Sharpsteen a804e053ab New formula for Shiboken
Shiboken is a plugin for GeneratorRunner that handles the generation of CPython
bindings to C++ libraries. Shiboken is used to compile PySide.
2011-08-25 17:47:22 -07:00