| Age | Commit message (Collapse) | Author |
|
Closes #22990.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
|
|
Closes #22581.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
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.
|
|
|
|
Replaced the plethora of ternaries we've used all over the place to
determine whether x86_64 or i386 is called for.
|
|
|
|
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.
|
|
Closes #18206.
Closes #18046.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
|
|
FontForge uses the FlatCarbon headers, which are gone in Mountain
Lion. To fix this, the formula was adjusted to use the 10.7 SDK.
However, this prevents compiling FontForge on a system without the
10.7 SDK. Fix this by replacing the FlatCarbon imports with the
correct imports to the non-flat headers.
Closes #17909.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
|
|
|
|
This commits adds recommended deps on png, jpeg, and libtiff
to FontForge, otherwise it will get various build errors and
runtime problems doing some font conversions. Lilypond for one
needs this. Also add an option to build in Gif support to round
out the image handling.
Closes #16001.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
|
|
The MacOS.version? family of methods (other than "leopard?") are poorly
defined and lead to confusing code. Replace them in formulae with more
explicit comparisons.
"MacOS.version" is a special version object that can be compared to
numerics, symbols, and strings using the standard Ruby comparison
methods.
The old methods were moved to compat when the version comparison code
was merged, and they must remain there "forever", but they should not be
used in new code.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
|
|
fontforge fails to build on 10.8 due to being designed for 10.7
through the use of `<FlatCarbon/Files.h>`. Force the formula
to use 10.7 SDK. Patch the hard-coded paths with the HB variable
`MacOS.sdk_path(10.7)}` as needed. Tested on 10.8 using clang
and from XCode-4.4.1.
Fixes #14421
Closes #14482.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
Closes #14437.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
Closes #14357.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
|
|
Shouldn't break for previous versions. We hope.
Fixes #13635. Fixes #14097.
|
|
Closes #14241.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Closes #13911.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
Build the Python extension by default and install it to the right location.
Fixes #4689.
Closes #12535.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
|
|
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Find the developer prefix and use that, like MaPorts
- @adamv
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Tried this build with Xcode 4.2/LLVM 2336.1.00 - still fails. Builds fine with
Clang.
Fixes #8589.
Closes #9711.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
|
|
Be more specific about the edits we do to the make file.
We only want to change paths in the install section near the bottom.
Also take out `sudo` from the app linking instructions.
|
|
FontForge will compile with newer Homebrew-built versions of Python, but
I have an older one and needed this to work to test Lilypad builds.
|
|
To make it easier to copy and paste multiline scripts from caveats,
no longer use $ as a prompt marker.
|
|
|
|
|
|
Fontforge recently switched to git:
http://sourceforge.net/mailarchive/message.php?msg_id=27054558
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
|
|
|
|
Version bump to 20110222
Add fails_with_llvm
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
|
|
Make formula installable as non-superuser
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
Outline font editor.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|