Gentoo Archives: gentoo-commits

From: "Markos Chandras (hwoarang)" <hwoarang@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-geosciences/mapnik: mapnik-2.0.0.ebuild mapnik-0.7.1-r2.ebuild mapnik-0.7.1-r1.ebuild ChangeLog
Date: Mon, 30 Jan 2012 21:59:25
Message-Id: 20120130215915.0688220033@flycatcher.gentoo.org
1 hwoarang 12/01/30 21:59:15
2
3 Modified: mapnik-2.0.0.ebuild mapnik-0.7.1-r1.ebuild
4 ChangeLog
5 Added: mapnik-0.7.1-r2.ebuild
6 Log:
7 New revision for boost-1.48 compatibility. Thanks to Arfrever. Fixes bug #401395
8
9 (Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.4 sci-geosciences/mapnik/mapnik-2.0.0.ebuild
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapnik/mapnik-2.0.0.ebuild?rev=1.4&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapnik/mapnik-2.0.0.ebuild?rev=1.4&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapnik/mapnik-2.0.0.ebuild?r1=1.3&r2=1.4
17
18 Index: mapnik-2.0.0.ebuild
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/mapnik-2.0.0.ebuild,v
21 retrieving revision 1.3
22 retrieving revision 1.4
23 diff -u -r1.3 -r1.4
24 --- mapnik-2.0.0.ebuild 30 Jan 2012 04:46:52 -0000 1.3
25 +++ mapnik-2.0.0.ebuild 30 Jan 2012 21:59:14 -0000 1.4
26 @@ -1,6 +1,6 @@
27 # Copyright 1999-2012 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29 -# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/mapnik-2.0.0.ebuild,v 1.3 2012/01/30 04:46:52 nerdboy Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/mapnik-2.0.0.ebuild,v 1.4 2012/01/30 21:59:14 hwoarang Exp $
31
32 EAPI=3
33
34 @@ -27,7 +27,7 @@
35 dev-libs/libxml2
36 dev-libs/icu
37 x11-libs/agg[truetype]
38 - dev-libs/boost[python?]
39 + >=dev-libs/boost-1.48[python?]
40 postgres? ( >=dev-db/postgresql-base-8.3 )
41 gdal? ( sci-libs/gdal )
42 geos? ( sci-libs/geos )
43 @@ -46,6 +46,13 @@
44
45 #EPATCH_OPTS="-F 3"
46
47 +pkg_setup() {
48 + if use python; then
49 + python_set_active_version 2
50 + python_pkg_setup
51 + fi
52 +}
53 +
54 src_prepare() {
55 epatch "${FILESDIR}"/${P}-gentoo.patch
56 }
57 @@ -66,6 +73,7 @@
58 PROJ_LIBS=/usr/lib
59 $(use_scons nobfonts SYSTEM_FONTS /usr/share/fonts '')
60 $(use_scons python BINDINGS all none)
61 + $(use_scons python BOOST_PYTHON_LIB boost_python-${PYTHON_ABI})
62 $(use_scons bidi BIDI)
63 $(use_scons cairo CAIRO)
64 $(use_scons debug DEBUG)
65
66
67
68 1.10 sci-geosciences/mapnik/mapnik-0.7.1-r1.ebuild
69
70 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapnik/mapnik-0.7.1-r1.ebuild?rev=1.10&view=markup
71 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapnik/mapnik-0.7.1-r1.ebuild?rev=1.10&content-type=text/plain
72 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapnik/mapnik-0.7.1-r1.ebuild?r1=1.9&r2=1.10
73
74 Index: mapnik-0.7.1-r1.ebuild
75 ===================================================================
76 RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/mapnik-0.7.1-r1.ebuild,v
77 retrieving revision 1.9
78 retrieving revision 1.10
79 diff -u -r1.9 -r1.10
80 --- mapnik-0.7.1-r1.ebuild 27 Nov 2011 16:05:08 -0000 1.9
81 +++ mapnik-0.7.1-r1.ebuild 30 Jan 2012 21:59:14 -0000 1.10
82 @@ -1,6 +1,6 @@
83 -# Copyright 1999-2011 Gentoo Foundation
84 +# Copyright 1999-2012 Gentoo Foundation
85 # Distributed under the terms of the GNU General Public License v2
86 -# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/mapnik-0.7.1-r1.ebuild,v 1.9 2011/11/27 16:05:08 swegener Exp $
87 +# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/mapnik-0.7.1-r1.ebuild,v 1.10 2012/01/30 21:59:14 hwoarang Exp $
88
89 EAPI=3
90
91 @@ -36,13 +36,20 @@
92 postgres? (
93 >=dev-db/postgresql-base-8.3
94 )
95 - python? ( dev-libs/boost[python] )
96 + python? ( <dev-libs/boost-1.48[python] )
97 sqlite? ( dev-db/sqlite:3 )"
98
99 DEPEND="${RDEPEND}
100 doc? ( dev-python/epydoc )
101 dev-util/scons"
102
103 +pkg_setup() {
104 + if use python; then
105 + python_set_active_version 2
106 + python_pkg_setup
107 + fi
108 +}
109 +
110 src_prepare() {
111 sed -i \
112 -e "s|/usr/local|/usr|g" \
113
114
115
116 1.31 sci-geosciences/mapnik/ChangeLog
117
118 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapnik/ChangeLog?rev=1.31&view=markup
119 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapnik/ChangeLog?rev=1.31&content-type=text/plain
120 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapnik/ChangeLog?r1=1.30&r2=1.31
121
122 Index: ChangeLog
123 ===================================================================
124 RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/ChangeLog,v
125 retrieving revision 1.30
126 retrieving revision 1.31
127 diff -u -r1.30 -r1.31
128 --- ChangeLog 30 Jan 2012 04:46:52 -0000 1.30
129 +++ ChangeLog 30 Jan 2012 21:59:14 -0000 1.31
130 @@ -1,6 +1,13 @@
131 # ChangeLog for sci-geosciences/mapnik
132 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
133 -# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/ChangeLog,v 1.30 2012/01/30 04:46:52 nerdboy Exp $
134 +# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/ChangeLog,v 1.31 2012/01/30 21:59:14 hwoarang Exp $
135 +
136 +*mapnik-0.7.1-r2 (30 Jan 2012)
137 +
138 + 30 Jan 2012; Markos Chandras <hwoarang@g.o> +mapnik-0.7.1-r2.ebuild,
139 + mapnik-0.7.1-r1.ebuild, mapnik-2.0.0.ebuild:
140 + New revision for boost-1.48 compatibility. Thanks to Arfrever. Fixes bug
141 + #401395
142
143 30 Jan 2012; Steve Arnold <nerdboy@g.o> mapnik-2.0.0.ebuild:
144 Updated python and boost deps.
145
146
147
148 1.1 sci-geosciences/mapnik/mapnik-0.7.1-r2.ebuild
149
150 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapnik/mapnik-0.7.1-r2.ebuild?rev=1.1&view=markup
151 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapnik/mapnik-0.7.1-r2.ebuild?rev=1.1&content-type=text/plain
152
153 Index: mapnik-0.7.1-r2.ebuild
154 ===================================================================
155 # Copyright 1999-2012 Gentoo Foundation
156 # Distributed under the terms of the GNU General Public License v2
157 # $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/mapnik-0.7.1-r2.ebuild,v 1.1 2012/01/30 21:59:14 hwoarang Exp $
158
159 EAPI=3
160
161 PYTHON_DEPEND="python? 2"
162 inherit eutils flag-o-matic python toolchain-funcs versionator
163
164 DESCRIPTION="A Free Toolkit for developing mapping applications."
165 HOMEPAGE="http://www.mapnik.org/"
166 SRC_URI="mirror://berlios/${PN}/${P}.tar.bz2"
167
168 LICENSE="LGPL-2.1"
169 SLOT="0"
170 KEYWORDS="~amd64 ~ppc ~x86"
171 IUSE="-doc cairo curl debug +gdal postgres python sqlite"
172
173 RDEPEND="dev-libs/boost
174 dev-libs/icu
175 dev-libs/libxml2:2
176 media-fonts/dejavu
177 media-libs/freetype:2
178 virtual/jpeg
179 media-libs/libpng
180 media-libs/tiff
181 sci-libs/proj
182 x11-libs/agg[truetype]
183 cairo? (
184 x11-libs/cairo
185 dev-cpp/cairomm
186 python? ( dev-python/pycairo )
187 )
188 curl? ( net-misc/curl )
189 gdal? ( sci-libs/gdal )
190 postgres? (
191 >=dev-db/postgresql-base-8.3
192 )
193 python? ( >=dev-libs/boost-1.48[python] )
194 sqlite? ( dev-db/sqlite:3 )"
195
196 DEPEND="${RDEPEND}
197 doc? ( dev-python/epydoc )
198 dev-util/scons"
199
200 pkg_setup() {
201 if use python; then
202 python_set_active_version 2
203 python_pkg_setup
204 fi
205 }
206
207 src_prepare() {
208 sed -i \
209 -e "s|/usr/local|/usr|g" \
210 -e "s|Action(env\[config\]|Action('%s --help' % env\[config\]|" \
211 SConstruct || die "sed 1 failed"
212
213 sed -i \
214 -e "s:mapniklibpath + '/fonts':'/usr/share/fonts/dejavu/':g" \
215 bindings/python/SConscript || die "sed 2 failed"
216 rm -rf agg || die
217 epatch "${FILESDIR}"/${P}-libagg.patch
218
219 # update for libpng 1.5 changes (see bug #)
220 epatch "${FILESDIR}"/${P}-libpng1.5.4.patch
221 }
222
223 src_configure() {
224 EMAKEOPTS="SYSTEM_FONTS=/usr/share/fonts/dejavu"
225
226 EMAKEOPTS="${EMAKEOPTS} INPUT_PLUGINS="
227 use postgres && EMAKEOPTS="${EMAKEOPTS}postgis,"
228 use gdal && EMAKEOPTS="${EMAKEOPTS}gdal,ogr,"
229 use sqlite && EMAKEOPTS="${EMAKEOPTS}sqlite,"
230 use curl && EMAKEOPTS="${EMAKEOPTS}osm,"
231 EMAKEOPTS="${EMAKEOPTS}shape,raster"
232
233 use cairo || EMAKEOPTS="${EMAKEOPTS} CAIRO=false"
234 use python || EMAKEOPTS="${EMAKEOPTS} BINDINGS=none"
235 use python && EMAKEOPTS="${EMAKEOPTS} BOOST_PYTHON_LIB=boost_python-${PYTHON_ABI}"
236 use debug && EMAKEOPTS="${EMAKEOPTS} DEBUG=yes"
237 EMAKEOPTS="${EMAKEOPTS} DESTDIR=${D}"
238
239 use postgres && use sqlite && EMAKEOPTS="${EMAKEOPTS} PGSQL2SQLITE=yes"
240
241 BOOST_PKG="$(best_version "dev-libs/boost")"
242 BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")"
243 export BOOST_VERSION="$(replace_all_version_separators _ "${BOOST_VER}")"
244 elog "${P} BOOST_VERSION is ${BOOST_VERSION}"
245 export BOOST_INC="/usr/include/boost-${BOOST_VERSION}"
246 elog "${P} BOOST_INC is ${BOOST_INC}"
247 BOOST_LIBDIR_SCHEMA="$(get_libdir)/boost-${BOOST_VERSION}"
248 export BOOST_LIB="/usr/${BOOST_LIBDIR_SCHEMA}"
249 elog "${P} BOOST_LIB is ${BOOST_LIB}"
250
251 # force older boost filesystem version until upstream migrates
252 if version_is_at_least "1.46" "${BOOST_VER}"; then
253 append-flags -DBOOST_FILESYSTEM_VERSION=2
254 fi
255
256 # Passing things doesn't seem to hit all the right paths; another
257 # poster-child for just a bit too much complexity for its own good.
258 # See bug #301674 for more info.
259 sed -i -e "s|searchDir, LIBDIR_SCHEMA|searchDir, \'${BOOST_LIBDIR_SCHEMA}\'|" \
260 -i -e "s|include/boost*|include/boost-${BOOST_VERSION}|" \
261 "${S}"/SConstruct || die "sed boost paths failed..."
262
263 # this seems to be the only way to force user-flags, since nothing
264 # gets through the scons configure except the nuclear sed option.
265 sed -i -e "s:\-O%s:${CXXFLAGS}:" \
266 -i -e "s:env\['OPTIMIZATION'\]\,::" \
267 SConstruct || die "sed 3 failed"
268 sed -i -e "s:LINKFLAGS=linkflags:LINKFLAGS=linkflags + \" ${LDFLAGS}\":" \
269 src/SConscript || die "sed 4 failed"
270
271 scons CC="$(tc-getCC)" CXX="$(tc-getCXX)" ${EMAKEOPTS} configure \
272 || die "scons configure failed"
273 }
274
275 src_compile() {
276 # note passing CXXFLAGS to scons does *not* work
277 scons CC="$(tc-getCC)" CXX="$(tc-getCXX)" \
278 shared=1 || die "scons make failed"
279
280 # this is known to depend on mod_python and should not have a
281 # "die" after the epydoc script (see bug #370575)
282 if use doc; then
283 export PYTHONPATH="${S}/bindings/python:$(python_get_sitedir)"
284 cd docs/epydoc_config
285 ./build_epydoc.sh
286 cd -
287 fi
288 }
289
290 src_install() {
291 scons DESTDIR="${D}" install || die "scons install failed"
292
293 if use python ; then
294 fperms 0755 "$(python_get_sitedir)"/mapnik/paths.py
295 dobin utils/stats/mapdef_stats.py
296 insinto /usr/share/doc/${PF}/examples
297 doins utils/ogcserver/*
298 fi
299
300 dodoc AUTHORS CHANGELOG README || die
301 use doc && { dohtml -r docs/api_docs/python/* || die "API doc install failed"; }
302 }
303
304 pkg_postinst() {
305 elog ""
306 elog "See the home page or wiki (http://trac.mapnik.org/) for more info"
307 elog "or the installed examples for the default mapnik ogcserver config."
308 elog ""
309 }