Commit Graph
26 Commits
Author SHA1 Message Date
Mike McQuaid 1e898237a3 mapnik: cleanup python usage. 2014-01-04 13:35:43 +00:00
Dane Springmeyer 282dc564ab mapnik: no longer requires geos
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-12-14 13:47:41 -08:00
Jack Nagel 6119ff5c1f mapnik: use existing variable 2013-12-02 17:28:18 -06:00
Dane Springmeyer ccba32ab57 mapnik: freetype & png are required so configure them properly
Closes #24006.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-11-29 19:16:33 -08:00
Dane Springmeyer c6612238da mapnik: fix build against Boost 1.55 and libc++
Avoids these issue for Mavericks users until Mapnik provides new upstream version:

 - https://github.com/mapnik/mapnik/issues/2082
 - https://github.com/mapnik/mapnik/issues/1973

Closes #24411.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-11-17 17:43:25 -08:00
Dane Springmeyer 5d60cfd76e Mapnik 2.2.0
Closes #20238.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-06-04 10:54:17 -07:00
Adam Vandenberg 27cef61fce mapnik: remove unused opt_prefix 2013-06-04 10:54:00 -07:00
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
Dane Springmeyer 418d31c6e3 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 #20003.

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

Closes #18458.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-03-13 12:26:32 -07:00
Adam Vandenberg b507fa87c2 mapnik: patch for boost > 1.52
Closes #18092.
2013-03-10 12:32:57 -07:00
Jack Nagel ed95d413c9 mapnik: use optional deps 2013-02-02 16:20:45 -06:00
Jack Nagel 08a645139e mapnik: autotools are build deps by default 2013-02-01 23:49:55 -06:00
Samuel John a20fb1b0fd 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 #17032.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-12 11:21:34 -08:00
royhodgman 76f0f22076 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 #15542.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-10-23 15:57:32 -07:00
Mike McQuaid 42c7518d64 mapnik: X11 dependency. 2012-09-04 19:44:43 -07:00
Dane Springmeyer 0d115ce857 mapnik 2.1.0
Closes #14439.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-08-24 10:44:41 -07:00
Jack Nagel a2d4d9d832 Update formulae for XQuartz compatibility 2012-07-01 12:41:00 -05:00
nibbles 2bits b77c0bd441 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 #12683

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-06-09 07:36:35 -07:00
nibbles 2bits 579ca13946 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 #12026.
Closes #12043.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-05-04 11:53:58 -07:00
Dane Springmeyer a78e14f70f 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 124cdb6995 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 #11389

Closes #11407.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-11 01:03:22 -05:00
Dane Springmeyer 79645a31da mapnik 2.0.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-04-10 06:16:00 -07:00
Dane Springmeyer 38dbdd91e5 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 #8177.

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

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