Commit graph

11 commits

Author SHA1 Message Date
Misty De Meo
04a536ce26 ldns: fix installing Python bindings
Fixes Homebrew/homebrew#20695.
2013-06-22 17:19:28 -05: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
Anand Buddhdev
3d19ffce06 ldns 1.6.16
Closes Homebrew/homebrew#16074.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-11-15 12:00:25 -06:00
Adam Vandenberg
67f4b8ec19 ldns: use new dsl 2012-08-31 14:02:14 -07:00
Adam Vandenberg
45c8760b26 ldns 1.6.13 2012-06-18 20:16:43 -07:00
Anil Madhavapeddy
04824979ce ldns: add a --python option to build bindings
These are optional due to the Swig dependency only being needed for the bindings

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-03-18 17:28:01 -07:00
Anand Buddhdev
99f2660051 ldns 1.6.12
Fixes a major date-related bug.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-01-11 20:18:52 -08:00
Anand Buddhdev
e962664f7b ldns 1.6.11
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-11-25 17:47:20 -08:00
Anand Buddhdev
9954c996fa ldns 1.6.10
This update bumps up the version number of ldns to 1.6.10. I also added
"--disable-gost", as the openssl shipping with OSX doesn't support this.
Finally, I also added a few lines to build and install the ldns example
tools.

Closes Homebrew/homebrew#7695.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-18 16:31:52 -05:00
Adam Vandenberg
4147b05c57 Use ruby style for inheritance. 2011-03-12 11:55:09 -08:00
Holger Just
674fb422c9 Added ldns 1.6.5
Signed-off-by: David Höppner <0xffea@gmail.com>
2010-08-09 11:58:19 +02:00