Gentoo Archives: gentoo-commits

From: "Steve Arnold (nerdboy)" <nerdboy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-geosciences/mapnik: ChangeLog mapnik-0.7.1-r1.ebuild mapnik-0.7.1.ebuild
Date: Sat, 30 Oct 2010 01:20:44
Message-Id: 20101030012040.2468520051@flycatcher.gentoo.org
1 nerdboy 10/10/30 01:20:40
2
3 Modified: ChangeLog
4 Added: mapnik-0.7.1-r1.ebuild
5 Removed: mapnik-0.7.1.ebuild
6 Log:
7 Updated for latest gpsdrive updates (mostly bug 341693).
8
9 (Portage version: 2.2_rc99/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.20 sci-geosciences/mapnik/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapnik/ChangeLog?rev=1.20&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapnik/ChangeLog?rev=1.20&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapnik/ChangeLog?r1=1.19&r2=1.20
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/ChangeLog,v
21 retrieving revision 1.19
22 retrieving revision 1.20
23 diff -u -r1.19 -r1.20
24 --- ChangeLog 29 Oct 2010 23:01:54 -0000 1.19
25 +++ ChangeLog 30 Oct 2010 01:20:39 -0000 1.20
26 @@ -1,6 +1,13 @@
27 # ChangeLog for sci-geosciences/mapnik
28 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/ChangeLog,v 1.19 2010/10/29 23:01:54 arfrever Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/ChangeLog,v 1.20 2010/10/30 01:20:39 nerdboy Exp $
31 +
32 +*mapnik-0.7.1-r1 (30 Oct 2010)
33 +
34 + 30 Oct 2010; Steve Arnold <nerdboy@g.o> -mapnik-0.7.1.ebuild,
35 + +mapnik-0.7.1-r1.ebuild:
36 + Updated for latest gpsdrive (currently open mapnik bugs are OBE or not
37 + repreducible).
38
39 29 Oct 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
40 -mapnik-0.5.1.ebuild, -files/mapnik-0.5.1-include-fix.patch,
41
42
43
44 1.1 sci-geosciences/mapnik/mapnik-0.7.1-r1.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapnik/mapnik-0.7.1-r1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapnik/mapnik-0.7.1-r1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: mapnik-0.7.1-r1.ebuild
50 ===================================================================
51 # Copyright 1999-2010 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/mapnik-0.7.1-r1.ebuild,v 1.1 2010/10/30 01:20:40 nerdboy Exp $
54
55 EAPI=2
56
57 PYTHON_DEPEND="python? 2"
58 inherit eutils python distutils toolchain-funcs versionator
59
60 DESCRIPTION="A Free Toolkit for developing mapping applications."
61 HOMEPAGE="http://www.mapnik.org/"
62 SRC_URI="mirror://berlios/${PN}/${P}.tar.bz2"
63
64 LICENSE="LGPL-2.1"
65 SLOT="0"
66 KEYWORDS="~amd64 ~ppc ~x86"
67 IUSE="cairo curl debug doc +gdal postgres python sqlite"
68
69 RDEPEND="dev-libs/boost
70 dev-libs/icu
71 dev-libs/libxml2
72 media-fonts/dejavu
73 media-libs/freetype:2
74 media-libs/jpeg
75 media-libs/libpng
76 media-libs/tiff
77 sci-libs/proj
78 x11-libs/agg[truetype]
79 cairo? (
80 x11-libs/cairo
81 dev-cpp/cairomm
82 )
83 curl? ( net-misc/curl )
84 gdal? ( sci-libs/gdal )
85 postgres? (
86 >=dev-db/postgresql-base-8.3
87 >=dev-db/postgis-1.5.2
88 )
89 python? ( dev-libs/boost[python] )
90 sqlite? ( dev-db/sqlite:3 )
91 "
92 DEPEND="${RDEPEND}
93 >=dev-util/scons-1.0.0
94 doc? ( dev-python/epydoc )
95 "
96
97 src_prepare() {
98 sed -i \
99 -e "s|/usr/local|/usr|g" \
100 -e "s|Action(env\[config\]|Action('%s --help' % env\[config\]|" \
101 SConstruct || die
102
103 sed -i \
104 -e "s:mapniklibpath + '/fonts':'/usr/share/fonts/dejavu/':g" \
105 bindings/python/SConscript || die "sed 1 failed"
106 rm -rf agg || die
107 epatch "${FILESDIR}"/${P}-libagg.patch
108 }
109
110 src_configure() {
111 MAKEOPTS="SYSTEM_FONTS=/usr/share/fonts/dejavu"
112
113 MAKEOPTS="${MAKEOPTS} INPUT_PLUGINS="
114 use postgres && MAKEOPTS="${MAKEOPTS}postgis,"
115 use gdal && MAKEOPTS="${MAKEOPTS}gdal,ogr,"
116 use sqlite && MAKEOPTS="${MAKEOPTS}sqlite,"
117 use curl && MAKEOPTS="${MAKEOPTS}osm,"
118 MAKEOPTS="${MAKEOPTS}shape,raster"
119
120 use cairo || MAKEOPTS="${MAKEOPTS} CAIRO=false"
121 use python || MAKEOPTS="${MAKEOPTS} BINDINGS=none"
122 use debug && MAKEOPTS="${MAKEOPTS} DEBUG=yes"
123
124 use postgres && use sqlite && MAKEOPTS="${MAKEOPTS} PGSQL2SQLITE=yes"
125
126 BOOST_PKG="$(best_version "dev-libs/boost")"
127 BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")"
128 export BOOST_VERSION="$(replace_all_version_separators _ "${BOOST_VER}")"
129 elog "${P} BOOST_VERSION is ${BOOST_VERSION}"
130 export BOOST_INC="/usr/include/boost-${BOOST_VERSION}"
131 elog "${P} BOOST_INC is ${BOOST_INC}"
132 BOOST_LIBDIR_SCHEMA="$(get_libdir)/boost-${BOOST_VERSION}"
133 export BOOST_LIB="/usr/${BOOST_LIBDIR_SCHEMA}"
134 elog "${P} BOOST_LIB is ${BOOST_LIB}"
135
136 # Passing things doesn't seem to hit all the right paths; another
137 # poster-child for just a bit too much complexity for its own good.
138 # See bug #301674 for more info.
139 # sed -i -e "s|BOOST_INCLUDE_DIR = None|BOOST_INCLUDE_DIR = \'${BOOST_INC}\'|" \
140 # -i -e "s|BOOST_LIB_DIR = None|BOOST_LIB_DIR = \'${BOOST_LIB}\'|" \
141 sed -i -e "s|searchDir, LIBDIR_SCHEMA|searchDir, \'${BOOST_LIBDIR_SCHEMA}\'|" \
142 -i -e "s|include/boost*|include/boost-${BOOST_VERSION}|" \
143 "${S}"/SConstruct || die "sed boost paths failed..."
144
145 scons CXX="$(tc-getCXX)" ${MAKEOPTS} DESTDIR="${D}" configure \
146 || die "scons configure failed"
147 }
148
149 src_compile() {
150 scons BOOST_INCLUDES=${BOOST_INC} BOOST_LIBS=${BOOST_LIB} \
151 BOOST_VERSION=${BOOST_VERSION} || die "scons make failed"
152 if use doc; then
153 export PYTHONPATH="${S}/bindings/python:$(python_get_sitedir)"
154 cd docs/epydoc_config
155 ./build_epydoc.sh || die "API doc generation failed"
156 cd -
157 fi
158 }
159
160 src_install() {
161 scons BOOST_INCLUDES=${BOOST_INC} BOOST_LIBS=${BOOST_LIB} \
162 BOOST_VERSION=${BOOST_VERSION} install || die "scons install failed"
163
164 if use python ; then
165 fperms 0755 "$(python_get_sitedir)"/mapnik/paths.py
166 dobin utils/stats/mapdef_stats.py
167 insinto /usr/share/doc/${PF}/examples
168 doins utils/ogcserver/*
169 fi
170
171 dodoc AUTHORS CHANGELOG README || die
172 use doc && { dohtml -r docs/api_docs/python/* || die "API doc install failed"; }
173 }
174
175 pkg_postinst() {
176 elog ""
177 elog "See the home page or the OpenStreetMap wiki for more info, and"
178 elog "the installed examples for the default mapnik ogcserver config."
179 elog ""
180 }