Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#25346 closed defect (fixed)

mapnik: mapnik.has_pycairo is False

Reported by: macfreek (Freek Dijkstra) Owned by: dbsgeo@…
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: haspatch Cc:
Port: py26-mapnik

Description (last modified by ryandesign (Ryan Carsten Schmidt))

The portfile of py26-mapnik contains a small bug.

I've installed mapnik with cairo support:

port install py26-mapnik +cairo

This only partly works:

$ python
>>> import mapnik
>>> mapnik.has_cairo()
True
>>> mapnik.has_pycairo()
False

pycairo is Falso, because the headers for cairo were not found while installing mapnik:

$ port -v configure + py26-mapnik cairo
[...]
Checking for pycairo... no

Attsched is a fix for the Portfile, so that the cairo headers are correctly found.

Attachments (1)

mapnik-cairo.patch (851 bytes) - added by macfreek (Freek Dijkstra) 14 years ago.
Patch for py26-mapnik Portfile

Download all attachments as: .zip

Change History (7)

Changed 14 years ago by macfreek (Freek Dijkstra)

Attachment: mapnik-cairo.patch added

Patch for py26-mapnik Portfile

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Keywords: haspatch added
Owner: changed from macports-tickets@… to dbsgeo@…

Please remember to cc the maintainer.

comment:2 Changed 14 years ago by dbsgeo@…

Patch looks great. I've never gotten the 'configure.pkg_config_path' usage to work, hence I added to Mapnik proper the ability to supply the PKG_CONFIG_PATH variable to SCons, which this patch leverages and is available in the latest Mapnik release.

I'm not a macports committed, but +1 to this patch going in.

  • dane

comment:3 Changed 14 years ago by nerdling (Jeremy Lavergne)

Resolution: fixed
Status: newclosed

Committed in r69148.

comment:4 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

Don't forget to use WikiFormatting, please.

comment:5 Changed 14 years ago by macfreek (Freek Dijkstra)

Could someone bump the revision number by adding the following line to the Portfile (sorry I forgot that).

revision            1

comment:6 Changed 14 years ago by mf2k (Frank Schima)

Done in r69473.

Note: See TracTickets for help on using tickets.