Commit Graph
20 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
Alexis Hildebrandt 0afd04245b ledger: Clean-up dependencies, use ninja for build
Change urls to point to ledger organization on github

Closes #19777.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-05-13 11:45:37 -07:00
Alexis Hildebrandt 0334ddf8f2 ledger: switch --HEAD to master branch
Closes #19769.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-05-13 09:40:13 -07:00
Adam Vandenberg 9998ba2223 ledger: change download location
Closes #18772.
2013-04-13 08:46:22 -07:00
Gert Van Gool 27d5277230 ledger: remove upstreamed patch
This removes the time-colon patch since it was included in upstream on
January 29th 2013 (https://github.com/ledger/ledger/pull/107/)

Closes #17926.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-02-18 13:23:04 -06:00
Andrew Childs 43560a75d1 ledger: ofx support
Closes #17354.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-29 13:50:55 -08:00
Andrew Childs 32fd2cf335 ledger: Use http. ftp appears to be down.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-29 13:50:55 -08:00
Alexis Hildebrandt acb1f7f78e ledger: update HEAD build to acprep and cmake
The upstream repository switched to acprep and cmake and made
several changes to the build process when building ledger 3.0 (HEAD).

This commit includes:
  Change option to enable python support (disabled by default in acprep)
  Add option to enable debug build
  Add option to apply time-colon patch

Closes #14730.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-09-13 07:09:11 -07:00
Adam Vandenberg f00e34416e ledger: use new dsl 2012-09-03 14:00:00 -07:00
Mike McQuaid 3c5ca25cad Batch convert MD5 formula to SHA1.
Closes #14653.
2012-09-03 11:36:42 -07: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
Jack Nagel a65e482b8b Use Homebrew's pcre where appropriate
We provide a pcre formula as OS X does not provide libpcre headers.
However, it does provide the library itself and so occasionally things
will use Homebrew's pcre headers and link against the system library.
This should be avoided to prevent incompatibilities, so explicitly tell
the build system where to look for the library where necessary.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-24 16:51:33 -06:00
Guan Yang 8c0ab9d87f ledger: option to disable Python support
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-01-29 21:49:47 -08:00
Jack Nagel 57665ff9dd Use ENV.make_jobs in formulae
Some formulae are still calling Hardware.processor_count; replace those
instances with ENV.make_jobs.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-15 00:05:15 -05:00
Adam Gibbins e26e4f8efa ledger: Update to 2.6.3
Also update new homepage.

Closes #7575.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-09-12 10:33:15 -07:00
Adam Vandenberg 4e7c332a48 Use https for github repos. 2011-05-26 22:02:55 -07:00
Adam Vandenberg 0476235ce0 Use ruby style for inheritance. 2011-03-12 11:55:09 -08:00
Alexis Hildebrandt e9aebb3b1d Update Formula: ledger
Use next branch when installing head, which works with brew's boost
1.44 formula

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-09-20 13:56:20 -07:00
Alexis Hildebrandt de12161b87 Update Formula: ledger
Remove obsolete utfcpp sub-formula for ledger head builds,
since it's now being referenced as a git submodule.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-07-27 16:02:51 -07:00
Alexis Hildebrandt e9cc19ac79 Ledger 2.6.2
Double-entry accounting system with a command-line reporting interface.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-06-28 08:52:57 -07:00