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: mapnik-0.5.1.ebuild ChangeLog
Date: Sun, 02 Nov 2008 02:33:53
Message-Id: E1KwSmj-0006CM-JL@stork.gentoo.org
1 nerdboy 08/11/02 02:33:49
2
3 Modified: mapnik-0.5.1.ebuild ChangeLog
4 Log:
5 fixed PGSQL linkage issues and other whacked build stuff
6 (Portage version: 2.2_rc12/cvs/Linux 2.6.26.5 x86_64)
7
8 Revision Changes Path
9 1.4 sci-geosciences/mapnik/mapnik-0.5.1.ebuild
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/mapnik/mapnik-0.5.1.ebuild?rev=1.4&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/mapnik/mapnik-0.5.1.ebuild?rev=1.4&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/mapnik/mapnik-0.5.1.ebuild?r1=1.3&r2=1.4
14
15 Index: mapnik-0.5.1.ebuild
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/mapnik-0.5.1.ebuild,v
18 retrieving revision 1.3
19 retrieving revision 1.4
20 diff -u -r1.3 -r1.4
21 --- mapnik-0.5.1.ebuild 25 Sep 2008 06:01:47 -0000 1.3
22 +++ mapnik-0.5.1.ebuild 2 Nov 2008 02:33:49 -0000 1.4
23 @@ -1,8 +1,8 @@
24 # Copyright 1999-2008 Gentoo Foundation
25 # Distributed under the terms of the GNU General Public License v2
26 -# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/mapnik-0.5.1.ebuild,v 1.3 2008/09/25 06:01:47 nerdboy Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/mapnik-0.5.1.ebuild,v 1.4 2008/11/02 02:33:49 nerdboy Exp $
28
29 -inherit eutils autotools
30 +inherit eutils toolchain-funcs
31
32 DESCRIPTION="A Free Toolkit for developing mapping applications."
33 HOMEPAGE="http://www.mapnik.org/"
34 @@ -10,7 +10,7 @@
35 LICENSE="LGPL-3"
36 SLOT="0"
37 KEYWORDS="~amd64 ~ppc ~x86"
38 -IUSE="debug doc postgres python bidi"
39 +IUSE="bidi debug doc postgres python"
40
41 RDEPEND=">=dev-libs/boost-1.33.0
42 >=media-libs/libpng-1.2.12
43 @@ -18,10 +18,12 @@
44 >=media-libs/tiff-3.8.2
45 >=sys-libs/zlib-1.2.3
46 >=media-libs/freetype-2.1.10
47 + media-fonts/dejavu
48 >=sci-libs/proj-4.4.9
49 - dev-libs/libxml2
50 sci-libs/gdal
51 - postgres? ( >=dev-db/postgis-1.1.2 )
52 + xml? ( dev-libs/libxml2 )
53 + postgres? ( >=dev-db/postgresql-base-8.3
54 + >=dev-db/postgis-1.1.2 )
55 python? ( >=dev-lang/python-2.4 )
56 bidi? ( dev-libs/fribidi )"
57
58 @@ -32,36 +34,67 @@
59 src_unpack() {
60 unpack ${A}
61 cd "${S}"
62 +
63 epatch "${FILESDIR}"/${P}-include-fix.patch
64 - sed -i -e "s:/usr/local:/usr:g" SConstruct || die "sed failed"
65 - eautoreconf
66 +
67 + sed -i -e "s:mapniklibpath + '/fonts':/usr/share/fonts/dejavu/:g" \
68 + bindings/python/SConscript || die "sed 1 failed"
69 + sed -i -e "s:/usr/local:/usr:g" SConstruct \
70 + || die "sed 2 failed"
71 + sed -i -e "s:SConscript('fonts/SConscript')::g" SConstruct \
72 + || die "sed 3 failed"
73 + rm -rf fonts
74 + find . -type d -perm /g+s -exec chmod -s '{}' \;
75 +
76 + sed -i -e "s:libraries \= \[:libraries \= \[\'mapnik\',:g" \
77 + plugins/input/{gdal,postgis,shape,raster}/SConscript \
78 + || die "sed 4 failed"
79 }
80
81 src_compile() {
82 - MAKEOPTS="${MAKEOPTS} INPUT_PLUGINS=shape,raster,postgis"
83 + MAKEOPTS="INPUT_PLUGINS=all"
84 MAKEOPTS="${MAKEOPTS} PROJ_INCLUDES=/usr/include"
85 MAKEOPTS="${MAKEOPTS} PROJ_LIBS=/usr/$(get_libdir)"
86 - MAKEOPTS="${MAKEOPTS} XMLPARSER=libxml2"
87 + MAKEOPTS="${MAKEOPTS} XML2_CONFIG=/usr/bin/xml2-config \
88 + XMLPARSER=libxml2"
89
90 if ! use python ; then
91 - MAKEOPTS="${MAKEOPTS} BINDINGS=none"
92 + MAKEOPTS="${MAKEOPTS} BINDINGS=none"
93 fi
94 if use debug ; then
95 - MAKEOPTS="${MAKEOPTS} DEBUG=1"
96 + MAKEOPTS="${MAKEOPTS} DEBUG=yes"
97 fi
98 if use bidi ; then
99 - MAKEOPTS="${MAKEOPTS} BIDI=1"
100 + MAKEOPTS="${MAKEOPTS} BIDI=yes"
101 fi
102 if use postgres ; then
103 - MAKEOPTS="${MAKEOPTS} PGSQL_INCLUDES=/usr/include/postgresql"
104 + MAKEOPTS="${MAKEOPTS} \
105 + PGSQL_INCLUDES=$(pg_config --includedir)
106 + PGSQL_LIBS=$(pg_config --libdir)"
107 fi
108
109 - scons ${MAKEOPTS} || die "scons make failed"
110 + scons CXX="$(tc-getCXX)" ${MAKEOPTS} \
111 + || die "scons make failed"
112 }
113
114 src_install() {
115 - scons ${MAKEOPTS} DESTDIR="${D}" install || die "Unable to install Mapnik"
116 + scons DESTDIR="${D}" install \
117 + || die "scons install failed"
118 +
119 + if use python ; then
120 + dobin utils/stats/mapdef_stats.py
121 + insinto /usr/share/doc/${P}/examples
122 + doins utils/ogcserver/{ogcserver,ogcserver.conf}
123 + fi
124 +
125 if use doc ; then
126 - dohtml -r docs/epydocs/*
127 + dohtml -r docs/epydocs/*
128 fi
129 }
130 +
131 +pkg_postinst() {
132 + elog ""
133 + elog "See the home page or the OpenStreetMap wiki for more info, and"
134 + elog "the installed examples for the default mapnik ogcserver config."
135 + elog ""
136 +}
137 \ No newline at end of file
138
139
140
141 1.4 sci-geosciences/mapnik/ChangeLog
142
143 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/mapnik/ChangeLog?rev=1.4&view=markup
144 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/mapnik/ChangeLog?rev=1.4&content-type=text/plain
145 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/mapnik/ChangeLog?r1=1.3&r2=1.4
146
147 Index: ChangeLog
148 ===================================================================
149 RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/ChangeLog,v
150 retrieving revision 1.3
151 retrieving revision 1.4
152 diff -u -r1.3 -r1.4
153 --- ChangeLog 25 Sep 2008 06:01:47 -0000 1.3
154 +++ ChangeLog 2 Nov 2008 02:33:49 -0000 1.4
155 @@ -1,6 +1,12 @@
156 # ChangeLog for sci-geosciences/mapnik
157 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
158 -# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/ChangeLog,v 1.3 2008/09/25 06:01:47 nerdboy Exp $
159 +# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/ChangeLog,v 1.4 2008/11/02 02:33:49 nerdboy Exp $
160 +
161 + 02 Nov 2008; Steve Arnold <nerdboy@g.o> mapnik-0.5.1.ebuild:
162 + Fixed PGSQL linkage issues and other whacked build stuff; added
163 + ogcserver example config. All input plugins build now. Postgres
164 + dep should be changed to a virtual when ready (postgresql plugin
165 + won't build against libpq package).
166
167 25 Sep 2008; Steve Arnold <nerdboy@g.o> mapnik-0.5.1.ebuild:
168 just forestalling Mr_Bones with a QA fix...