Commit graph

48 commits

Author SHA1 Message Date
Adam Vandenberg
a0e24d3280 graphviz: update --devel version 2013-06-08 15:42:16 -07: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
Kevin Moore
24e5fb7805 graphviz --devel 2.31.20130523.0446
Closes Homebrew/homebrew#20028.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-05-24 06:57:23 -07:00
stevenppp
0d89090099 graphviz --devel 2.31.20130502
Closes Homebrew/homebrew#19585.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-05-02 21:25:42 -07:00
Camillo Lugaresi
a864e76a63 graphviz 2.30.1
Closes Homebrew/homebrew#17899.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-02-17 10:17:35 -08:00
Jack Nagel
c31ae07872 graphviz: use test DSL 2013-02-01 23:38:52 -06:00
Janne Peltola
b7771a614a graphviz: optional GTS dependency
Closes Homebrew/homebrew#16015.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-11-26 10:21:06 -08:00
Shaun Jackman
521f9d69c0 graphviz: Use freetype2 if X11 is installed
Do not configure --without-freetype2 if X11 is installed.

Closes Homebrew/homebrew#15583.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-10-21 19:52:32 +01:00
Shaun Jackman
935632998e graphviz: Add build option --with-x
--without-x prevents building useful programs, such as lefty.

Closes Homebrew/homebrew#15555.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-10-21 10:28:57 -07:00
Mike McQuaid
61bc83f206 graphviz: actually depends on freetype rather than gd.
References Homebrew/homebrew#14646.
2012-09-27 20:54:57 +01:00
Adam Vandenberg
8af0e97014 Use env. 2012-09-14 09:14:48 -07:00
Dustin Sallings
d83bafbdab Graphviz depends on gd
Closes Homebrew/homebrew#14646.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-09-02 16:03:01 -07:00
Mike McQuaid
5f869f9aec graphviz: make test non-interactive. 2012-09-02 00:50:45 -07:00
Charlie Sharpsteen
42ce54af54 graphviz: Building GraphViz.app is now optional
Building GraphViz.app requires a full install of XCode.app so building it
by default breaks the installation for users who only install the Command Line
Tools.

Fixes Homebrew/homebrew#14431.
2012-08-24 19:38:18 -07:00
Charlie Sharpsteen
90e9a10021 graphviz: Use options DSL 2012-08-24 19:38:04 -07:00
Mike McQuaid
fb9ed8a63a graphviz: set flag to not depend on X11. 2012-08-23 08:36:48 -07:00
Adam Vandenberg
4fcd5679df graphviz: partially use options dsl 2012-08-09 22:09:29 -07:00
Mike McQuaid
3afffe867f graphviz: no default bindings and no X11 needed
Closes Homebrew/homebrew#13898.
2012-08-08 18:19:22 +01:00
Mike McQuaid
eee7485082 graphviz: remove unexecutable gvmap.sh from bin 2012-08-04 10:36:31 +01:00
nibbles 2bits
816720d633 graphviz: add universal option
Graphviz can build universally if it is built with a universal
pcre, swig, and gettext.  Add a `--universal` option.  Change
to using sha1.  Leave the `fails_with` build version alone because
Graphviz builds on Mountain Lion with clang-4.0.

Tested on ML with clang and llvm from XCode-4.4.

Fixes Homebrew/homebrew#13827

Closes Homebrew/homebrew#13927.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-08-03 19:29:18 -07:00
Sunteya
e380254078 graphviz: must depend x11
Closes Homebrew/homebrew#13357.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-13 02:34:20 -05:00
Jack Nagel
d6e8244287 Update formulae for XQuartz compatibility 2012-07-01 12:41:00 -05:00
Jack Nagel
d7ffd6d35a graphviz: clean up test
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-06 01:07:44 -05:00
Jack Nagel
64afeec6d4 Use new fails_with DSL syntax
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-01 12:39:59 -05:00
Adam Vandenberg
09ea6ead91 graphviz: add fails-with-clang comment 2012-03-14 17:29:05 -07:00
Kevin Moore
cbeae5ea4b graphviz: force build with llvm instead of clang
(Same technique being used for Qt.)

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-03-14 17:27:57 -07:00
Adam Vandenberg
e84698e7aa Add buildpath to Formula 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
Misty De Meo
260c551222 graphviz: fix GraphViz.app => Graphviz.app
graphviz builds its application bundle as Graphviz.app; a typo was
preventing it from installing correctly on case-sensitive systems.

Fixes Homebrew/homebrew#9348.
2011-12-31 00:18:06 -06:00
Charlie Sharpsteen
2c8ad9eaa0 Clean up some Cairo dependencies
Add a comment to Pango explaining why Cairo is required on Lion. Remove Cairo
dependencies from Graphviz as the Pango dependency will include it if needed.

Closes Homebrew/homebrew#8821.
Closes Homebrew/homebrew#9238.
2011-12-24 21:55:31 -08:00
Camillo Lugaresi
dc80846e4f Revamped GraphViz formula
- enable Quartz backend
- Cairo/Pango are now optional; if not enabled, PDF output is done with Quartz
- enable language bindings by default (option to disable)
- build GraphViz.app

Closes Homebrew/homebrew#9100.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2011-12-23 23:50:28 -06:00
Jack Nagel
f365d14b99 graphviz: patch for linking with libltdl
Linking with '-lltdl' fails on Lion and/or with XCode 4.2. The patch is
already in the upstream development version and will be in the next
release.

Closes Homebrew/homebrew#7503.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-18 18:06:05 -05:00
Dominick Ng
d7e1b2916d pango, pixman, graphviz: Fixes for Lion PDF output
Related issue on MacPorts:
  https://trac.macports.org/ticket/30370

Fixes Homebrew/homebrew#6631.
Fixes Homebrew/homebrew#7140.
Fixes Homebrew/homebrew#7463.
Closes Homebrew/homebrew#7523.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-09-14 03:41:36 -07:00
Adam Vandenberg
3e3a193487 Graphviz: add test 2011-09-01 12:04:27 -07:00
Ruben Fonseca
c2b229ef17 graphviz 2.28.0
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-25 09:21:26 -07:00
Adam Vandenberg
121e4f8614 Normalize use of MACOS_VERSION 2011-04-09 09:36:30 -07:00
Wannes Meert
ee101c9181 graphviz: support pdf output with pango/cairo
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-13 12:49:50 -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
238ae2b077 graphviz - disable language bindings 2010-08-13 09:44:20 -07:00
Adam Vandenberg
7bd947eb0b Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00
Adam Vandenberg
0e8ceffd8d graphviz- fix some deps 2010-06-18 10:58:12 -07:00
David Höppner
106b44c391 graphviz: enable python tested on 10.5 and 10.6 64-bit 2010-03-22 12:51:55 +01:00
David Höppner
fc987a67ef graphviz: disable quartz and php 2010-03-06 15:32:32 +01:00
Adam Vandenberg
c03261f4ea Update GraphViz to 2.26.3 2010-02-19 10:38:04 -08:00
Max Howell
61b2307139 s/require 'brewkit'/require 'formula'/g
brewkit.rb changes ENV destructively, so lets not do that everytime a formula
is required. Now it's possible for other tools to require a formula
description without worrying about side-effects.
2009-10-15 16:48:03 +01:00
Leo Franchi
460e62b256 perl bindings fail to build 2009-10-12 22:50:51 +01:00
Tom von Schwerdtner
b8f509f85a Graphviz formula
Disabling python becuase using easy_install is easier, and it was kicking
errors before I disabled it.
2009-09-29 23:52:17 +01:00