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-2.0.0.ebuild metadata.xml ChangeLog
Date: Sun, 13 Nov 2011 02:20:00
Message-Id: 20111113021949.11FCD2004C@flycatcher.gentoo.org
1 nerdboy 11/11/13 02:19:49
2
3 Modified: metadata.xml ChangeLog
4 Added: mapnik-2.0.0.ebuild
5 Log:
6 Added mapnik2 ebuild (currently masked due to gpsdrive breakage).
7
8 (Portage version: 2.1.10.32/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.4 sci-geosciences/mapnik/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapnik/metadata.xml?rev=1.4&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapnik/metadata.xml?rev=1.4&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapnik/metadata.xml?r1=1.3&r2=1.4
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/metadata.xml,v
20 retrieving revision 1.3
21 retrieving revision 1.4
22 diff -u -r1.3 -r1.4
23 --- metadata.xml 12 Jun 2009 08:18:37 -0000 1.3
24 +++ metadata.xml 13 Nov 2011 02:19:46 -0000 1.4
25 @@ -12,5 +12,6 @@
26 </longdescription>
27 <use>
28 <flag name='gdal'>Enable <pkg>sci-libs/gdal</pkg> library support</flag>
29 + <flag name='nobfonts'>Enable Dejavu fonts instead of built-in fonts</flag>
30 </use>
31 </pkgmetadata>
32
33
34
35 1.28 sci-geosciences/mapnik/ChangeLog
36
37 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapnik/ChangeLog?rev=1.28&view=markup
38 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapnik/ChangeLog?rev=1.28&content-type=text/plain
39 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapnik/ChangeLog?r1=1.27&r2=1.28
40
41 Index: ChangeLog
42 ===================================================================
43 RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/ChangeLog,v
44 retrieving revision 1.27
45 retrieving revision 1.28
46 diff -u -r1.27 -r1.28
47 --- ChangeLog 26 Sep 2011 07:45:56 -0000 1.27
48 +++ ChangeLog 13 Nov 2011 02:19:47 -0000 1.28
49 @@ -1,6 +1,13 @@
50 # ChangeLog for sci-geosciences/mapnik
51 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
52 -# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/ChangeLog,v 1.27 2011/09/26 07:45:56 nerdboy Exp $
53 +# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/ChangeLog,v 1.28 2011/11/13 02:19:47 nerdboy Exp $
54 +
55 +*mapnik-2.0.0 (13 Nov 2011)
56 +
57 + 13 Nov 2011; Steve Arnold <nerdboy@g.o> +mapnik-2.0.0.ebuild,
58 + +files/mapnik-2.0.0-gentoo.patch:
59 + Added mapnik2 ebuild, however, it breaks current gpsdrive, so it will be
60 + package.amsked for the time being. Unmask if you want to try it.
61
62 26 Sep 2011; Steve Arnold <nerdboy@g.o> mapnik-0.7.1-r1.ebuild,
63 +files/mapnik-0.7.1-libpng1.5.4.patch:
64
65
66
67 1.1 sci-geosciences/mapnik/mapnik-2.0.0.ebuild
68
69 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapnik/mapnik-2.0.0.ebuild?rev=1.1&view=markup
70 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapnik/mapnik-2.0.0.ebuild?rev=1.1&content-type=text/plain
71
72 Index: mapnik-2.0.0.ebuild
73 ===================================================================
74 # Copyright 1999-2011 Gentoo Foundation
75 # Distributed under the terms of the GNU General Public License v2
76 # $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/mapnik-2.0.0.ebuild,v 1.1 2011/11/13 02:19:45 nerdboy Exp $
77
78 EAPI=3
79
80 PYTHON_DEPEND="python? 2"
81 inherit eutils python scons-utils toolchain-funcs
82
83 DESCRIPTION="A Free Toolkit for developing mapping applications."
84 HOMEPAGE="http://www.mapnik.org/"
85 SRC_URI="mirror://berlios/${PN}/${P}.tar.bz2"
86
87 LICENSE="LGPL-3"
88 SLOT="0"
89 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
90 IUSE="bidi cairo debug doc gdal nobfonts postgres python sqlite"
91
92 RDEPEND="dev-libs/boost
93 net-misc/curl
94 media-libs/libpng
95 media-libs/jpeg
96 media-libs/tiff
97 sys-libs/zlib
98 media-libs/freetype
99 dev-lang/python
100 sci-libs/proj
101 dev-libs/libxml2
102 dev-libs/icu
103 x11-libs/agg[truetype]
104 postgres? (
105 >=dev-db/postgresql-base-8.3
106 >=dev-db/postgis-1.5.2
107 sci-libs/geos
108 )
109 python? ( dev-libs/boost[python] )
110 gdal? ( sci-libs/gdal )
111 python? ( dev-lang/python )
112 bidi? ( dev-libs/fribidi )
113 cairo? (
114 x11-libs/cairo
115 dev-cpp/cairomm
116 python? ( dev-python/pycairo )
117 )
118 sqlite? ( dev-db/sqlite:3 )
119 nobfonts? ( media-fonts/dejavu )"
120
121 DEPEND="${RDEPEND}
122 doc? ( dev-python/epydoc )
123 dev-util/scons"
124
125 #EPATCH_OPTS="-F 3"
126
127 src_prepare() {
128 epatch "${FILESDIR}"/${P}-gentoo.patch
129 }
130
131 src_configure() {
132 local PLUGINS=shape,raster,postgis,osm
133 use sqlite && PLUGINS+=,sqlite
134
135 SCONOPTS="
136 CC=$(tc-getCC)
137 CXX=$(tc-getCXX)
138 INPUT_PLUGINS=${PLUGINS}
139 PREFIX=/usr
140 XMLPARSER=libxml2
141 PROJ_INCLUDES=/usr/include
142 PROJ_LIBS=/usr/lib
143 $(use_scons nobfonts SYSTEM_FONTS /usr/share/fonts '')
144 $(use_scons python BINDINGS all none)
145 $(use_scons bidi BIDI)
146 $(use_scons cairo CAIRO)
147 $(use_scons debug DEBUG)
148 $(use_scons debug XML_DEBUG)
149 $(use_scons doc DEMO)
150 $(use_scons doc SAMPLE_INPUT_PLUGINS)
151 CUSTOM_LDFLAGS=${LDFLAGS}
152 CUSTOM_LDFLAGS+=-L${D}/usr/$(get_libdir)"
153
154 # force user flags, optimization level
155 sed -i -e "s:\-O%s:${CXXFLAGS}:" \
156 -i -e "s:env\['OPTIMIZATION'\]\,::" \
157 SConstruct || die "sed 3 failed"
158
159 scons $SCONOPTS configure || die "scons configure failed"
160 }
161
162 src_compile() {
163 scons ${MAKEOPTS} shared=1 || die "scons compile failed"
164 }
165
166 src_install() {
167 #the lib itself still seems to need a DESTDIR definition
168 scons DESTDIR="${D}" install || die "scons install failed"
169
170 if use python ; then
171 fperms 0644 "$(python_get_sitedir)"/mapnik2/paths.py
172 dobin utils/stats/mapdef_stats.py
173 insinto /usr/share/doc/${PF}/examples
174 doins utils/ogcserver/*
175 fi
176
177 dodoc AUTHORS README || die
178
179 # this is known to depend on mod_python and should not have a
180 # "die" after the epydoc script (see bug #370575)
181 if use doc; then
182 export PYTHONPATH="${D}$(python_get_sitedir):$(python_get_sitedir)"
183 pushd docs/epydoc_config > /dev/null
184 ./build_epydoc.sh
185 popd > /dev/null
186 dohtml -r docs/api_docs/python/* || die "API doc install failed"
187 fi
188 }
189
190 pkg_postinst() {
191 elog ""
192 elog "See the home page or wiki (http://trac.mapnik.org/) for more info"
193 elog "or the installed examples for the default mapnik ogcserver config."
194 elog ""
195 }