Commit graph

21 commits

Author SHA1 Message Date
Dane Springmeyer
c1c05f17b3 Mapnik 2.2.0
Closes Homebrew/homebrew#20238.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-06-04 10:54:17 -07:00
Adam Vandenberg
e66700009e mapnik: remove unused opt_prefix 2013-06-04 10:54:00 -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
Dane Springmeyer
3dbf389fad mapnik: link to correct Postgres lib
Without this change Mapnik's postgis.input plugin will end up linking to the
apple provided `/usr/lib/libpg.5.dylib`, which will cause all sorts of odd and
broken behavior at runtime.

Closes Homebrew/homebrew#20003.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-05-23 09:29:01 -07:00
Dane Springmeyer
956f06348e mapnik: fix broken compile against cairo/cairomm after Homebrew/homebrew#17032
Fixes https://github.com/mapnik/mapnik/issues/1753

Closes Homebrew/homebrew#18458.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-03-13 12:26:32 -07:00
Adam Vandenberg
7031fb4376 mapnik: patch for boost > 1.52
Closes Homebrew/homebrew#18092.
2013-03-10 12:32:57 -07:00
Jack Nagel
0bc513234f mapnik: use optional deps 2013-02-02 16:20:45 -06:00
Jack Nagel
f328ed6d66 mapnik: autotools are build deps by default 2013-02-01 23:49:55 -06:00
Samuel John
270b18e1f5 mapnik: Harden build. New: --with-gdal --with-geos
- Mapnik searches for py2cairo -> added dep if --with-cairo
- Explicitly give includes and libs for icu, boost, proj,
  jpeg, libtif, and cairo
- pkg-config is not only used for cairo -> moved it out
  of the `if build.include? 'with-cairo'` block

Closes Homebrew/homebrew#17032.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-12 11:21:34 -08:00
royhodgman
a14f063bbf mapnik: add libtool dependency
According to [the mac homebrew installation wiki page for mapnik][1],
libtool needs to be installed before mapnik when installing on
mountain lion.

[1] https://github.com/mapnik/mapnik/wiki/MacInstallation_Homebrew

Closes Homebrew/homebrew#15542.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-10-23 15:57:32 -07:00
Mike McQuaid
f545bec3c4 mapnik: X11 dependency. 2012-09-04 19:44:43 -07:00
Dane Springmeyer
433878bf28 mapnik 2.1.0
Closes Homebrew/homebrew#14439.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-08-24 10:44:41 -07:00
Jack Nagel
d6e8244287 Update formulae for XQuartz compatibility 2012-07-01 12:41:00 -05:00
nibbles 2bits
13549dbb10 mapnik: only apply patch to stable
The patch has been merged upstream.
Add `unless ARGV.build_head?` to the patch block.
Note in the comments to remove the patch at version 2.0.2.
Mapnik HEAD builds well again.

Fixes Homebrew/homebrew#12683

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-06-09 07:36:35 -07:00
nibbles 2bits
b1efcd3f38 mapnik: fix relative path in paths.py
Add patch to mapnik.rb to use an absolute path into site-packages
rather than a relative path in the file `paths.py`.  The upstream
bug report is noted in the formula comments and is where the patch
offered by the developer came from.

Fixes Homebrew/homebrew#12026.
Closes Homebrew/homebrew#12043.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-05-04 11:53:58 -07:00
Dane Springmeyer
b685a7b70f mapnik: limit concurrent make jobs
mapnik compiles can take ~1.5 GB per job for some .cpp files
so lets be cautious by limiting to CPUS/2

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-04-28 10:19:13 -07:00
nibbles 2bits
2c745f0622 mapnik: fix compile error with system Python
Mapnik by default tries to install to the site-packages in /System
when brewed against system Python.  This causes a build error
because that directory is not writeable.  Mapnik correctly
determines the versioned site-packages name without modification,
but for Homebrew it needs the proper prefix.

* Add the standard `which_python` function to the formula.
* Add a scons argument for `PYTHON_PREFIX`
* Add the standard caveat for `PYTHONPATH`.

Discussed upstream: https://github.com/mapnik/mapnik/issues/1155
and tested on Lion against the system Python.

Fixes Homebrew/homebrew#11389

Closes Homebrew/homebrew#11407.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-11 01:03:22 -05:00
Dane Springmeyer
ad9a1cebca mapnik 2.0.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-04-10 06:16:00 -07:00
Dane Springmeyer
e555869ec8 mapnik updates
- new download link for mapnik 2.0.0 - and tweaks to avoid needing
   external scons and to properly set the CC/CXX/JOBS so that the mapnik
   build scripts will pick them up

Closes Homebrew/homebrew#8177.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-01 19:01:45 -06:00
Kashif Rasul
e6f886cd12 mapnik 2.0.0
Closes Homebrew/homebrew#7847.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-03 16:20:34 -05:00
Aleksandar Topuzovic
23ac8e4124 mapnik 0.7.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-22 09:55:53 -07:00