Gentoo Archives: gentoo-commits

From: Amy Liffey <amynka@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/mapnik/, sci-geosciences/mapnik/files/
Date: Sat, 04 Aug 2018 09:38:58
Message-Id: 1533375455.91c24d2c4cddfcdafa9c7e8f7d4722ce7c04e8ac.amynka@gentoo
1 commit: 91c24d2c4cddfcdafa9c7e8f7d4722ce7c04e8ac
2 Author: Amy Liffey <amynka <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 4 09:35:21 2018 +0000
4 Commit: Amy Liffey <amynka <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 4 09:37:35 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91c24d2c
7
8 sci-geosciences/mapnik: version bump 3.0.18
9
10 Suggested-by: LW <g2du-mail <AT> duboulder.com>
11 Closes: https://bugs.gentoo.org/659312
12 Package-Manager: Portage-2.3.40, Repoman-2.3.9
13
14 sci-geosciences/mapnik/Manifest | 1 +
15 .../mapnik/files/mapnik-3.0.18-scons.patch | 39 +++++++
16 sci-geosciences/mapnik/mapnik-3.0.18.ebuild | 117 +++++++++++++++++++++
17 sci-geosciences/mapnik/metadata.xml | 1 +
18 4 files changed, 158 insertions(+)
19
20 diff --git a/sci-geosciences/mapnik/Manifest b/sci-geosciences/mapnik/Manifest
21 index b887a1cf845..814739a065b 100644
22 --- a/sci-geosciences/mapnik/Manifest
23 +++ b/sci-geosciences/mapnik/Manifest
24 @@ -1 +1,2 @@
25 +DIST mapnik-3.0.18.tar.bz2 10103474 BLAKE2B de914ffe31940b74114cdf07a9ff13f36c7210d27b84cecd16fda7c429f0c4be7ffb9e677cf1bc8d156298b5f10ed2a41adcbf4f7727bbf85d2f0099950f5c4f SHA512 7af04b9437c83cddedf2b43f7da0622e44178b4ecce80c0349bacf551bf747698d9ec9e4d6eee68c0265feeae5833281215a759de5a1394abbdfdd39eef39661
26 DIST mapnik-3.0.9.tar.gz 13434729 BLAKE2B 49cf90089b34cfc706f85950d090609d5f9a5a6e9cfb56f6e1f1a6279f864b35f3f8d456caa2365787261affc4acb85ad93621d6471efed85f560c808dc0535a SHA512 ad45ecbb2661e860b7057e0a235542a390ae5790f401ef2c04f1517b6487e83cdb8e307072681847cb72a3abc242e0114bc15d48f504dec1f92df970dd1556e1
27
28 diff --git a/sci-geosciences/mapnik/files/mapnik-3.0.18-scons.patch b/sci-geosciences/mapnik/files/mapnik-3.0.18-scons.patch
29 new file mode 100644
30 index 00000000000..2414bf95fed
31 --- /dev/null
32 +++ b/sci-geosciences/mapnik/files/mapnik-3.0.18-scons.patch
33 @@ -0,0 +1,39 @@
34 +--- a/SConstruct
35 ++++ b/SConstruct
36 +@@ -317,7 +317,7 @@
37 + ('LINK_PRIORITY','Priority list in which to sort library and include paths (default order is internal, other, frameworks, user, then system - see source of `sort_paths` function for more detail)',','.join(DEFAULT_LINK_PRIORITY)),
38 +
39 + # Install Variables
40 +- ('PREFIX', 'The install path "prefix"', '/usr/local'),
41 ++ ('PREFIX', 'The install path "prefix"', '/usr'),
42 + ('LIBDIR_SCHEMA', 'The library sub-directory appended to the "prefix", sometimes lib64 on 64bit linux systems', LIBDIR_SCHEMA_DEFAULT),
43 + ('DESTDIR', 'The root directory to install into. Useful mainly for binary package building', '/'),
44 + ('PATH', 'A custom path (or multiple paths divided by ":") to append to the $PATH env to prioritize usage of command line programs (if multiple are present on the system)', ''),
45 +@@ -1222,6 +1222,8 @@
46 +
47 + color_print(4,'Configuring build environment...')
48 +
49 ++ OPTIONAL_LIBSHEADERS = []
50 ++
51 + if not env['FAST']:
52 + SetCacheMode('force')
53 +
54 +@@ -1410,7 +1412,8 @@
55 + # https://github.com/mapnik/mapnik/issues/913
56 + if env.get('XMLPARSER') and env['XMLPARSER'] == 'libxml2':
57 + if env.get('XML2_LIBS') or env.get('XML2_INCLUDES'):
58 +- OPTIONAL_LIBSHEADERS.insert(0,['libxml2','libxml/parser.h',True,'C'])
59 ++ # code doesn't actually use HAVE_XMML2 but set just to have a fifth value
60 ++ OPTIONAL_LIBSHEADERS.append(['libxml2','libxml/parser.h',True,'C','-DHAVE_XML2'])
61 + if env.get('XML2_INCLUDES'):
62 + inc_path = env['XML2_INCLUDES']
63 + env.AppendUnique(CPPPATH = fix_path(inc_path))
64 +@@ -1428,8 +1431,6 @@
65 + else:
66 + env['SKIPPED_DEPS'].extend(['dlfcn'])
67 +
68 +- OPTIONAL_LIBSHEADERS = []
69 +-
70 + if env['JPEG']:
71 + OPTIONAL_LIBSHEADERS.append(['jpeg', ['stdio.h', 'jpeglib.h'], False,'C','-DHAVE_JPEG'])
72 + inc_path = env['%s_INCLUDES' % 'JPEG']
73
74 diff --git a/sci-geosciences/mapnik/mapnik-3.0.18.ebuild b/sci-geosciences/mapnik/mapnik-3.0.18.ebuild
75 new file mode 100644
76 index 00000000000..46c348fc71e
77 --- /dev/null
78 +++ b/sci-geosciences/mapnik/mapnik-3.0.18.ebuild
79 @@ -0,0 +1,117 @@
80 +# Copyright 1999-2018 Gentoo Foundation
81 +# Distributed under the terms of the GNU General Public License v2
82 +
83 +EAPI=6
84 +
85 +inherit eutils scons-utils toolchain-funcs
86 +
87 +DESCRIPTION="A Free Toolkit for developing mapping applications"
88 +HOMEPAGE="http://www.mapnik.org/"
89 +SRC_URI="https://github.com/mapnik/mapnik/releases/download/v${PV}/mapnik-v${PV}.tar.bz2 -> ${P}.tar.bz2"
90 +S="${WORKDIR}/mapnik-v${PV}"
91 +
92 +LICENSE="LGPL-3"
93 +SLOT="0"
94 +KEYWORDS="~amd64 ~x86"
95 +IUSE="cairo debug doc gdal osmfonts postgres sqlite"
96 +
97 +RDEPEND="
98 + >=dev-libs/boost-1.48[threads]
99 + dev-libs/icu:=
100 + sys-libs/zlib
101 + media-libs/freetype
102 + media-libs/harfbuzz
103 + dev-libs/libxml2
104 + media-libs/libpng:0=
105 + media-libs/tiff:0=
106 + virtual/jpeg:0=
107 + media-libs/libwebp
108 + sci-libs/proj
109 + media-fonts/dejavu
110 + x11-libs/agg[truetype]
111 + cairo? (
112 + x11-libs/cairo
113 + dev-cpp/cairomm
114 + )
115 + osmfonts? (
116 + media-fonts/dejavu
117 + media-fonts/noto
118 + media-fonts/noto-cjk
119 + media-fonts/unifont
120 + )
121 + postgres? ( >=dev-db/postgresql-8.3:* )
122 + gdal? ( sci-libs/gdal )
123 + sqlite? ( dev-db/sqlite:3 )"
124 +DEPEND="${RDEPEND}"
125 +
126 +PATCHES=(
127 + "${FILESDIR}/${PN}-2.2.0-configure-only-once.patch"
128 + "${FILESDIR}/${PN}-2.2.0-dont-run-ldconfig.patch"
129 + "${FILESDIR}/${PN}-3.0.18-scons.patch"
130 +)
131 +
132 +src_prepare() {
133 + default
134 +
135 + # do not version epidoc data
136 + sed -i \
137 + -e 's:-`mapnik-config --version`::g' \
138 + utils/epydoc_config/build_epydoc.sh || die
139 +
140 + # force user flags, optimization level
141 + sed -i -e "s:\-O%s:%s:" \
142 + -i -e "s:env\['OPTIMIZATION'\]:'${CXXFLAGS}':" \
143 + SConstruct || die
144 +}
145 +
146 +src_configure() {
147 +# local PYTHONCMD="$(which python2.7)"
148 + local PLUGINS=shape,csv,raster,geojson
149 + use gdal && PLUGINS+=,gdal,ogr
150 + use postgres && PLUGINS+=,postgis
151 + use sqlite && PLUGINS+=,sqlite
152 +
153 + MYSCONS=(
154 + "CC=$(tc-getCC)"
155 + "CXX=$(tc-getCXX)"
156 + "INPUT_PLUGINS=${PLUGINS}"
157 + "PREFIX=/usr"
158 + "DESTDIR=${D}"
159 + "XMLPARSER=libxml2"
160 + "LINKING=shared"
161 + "RUNTIME_LINK=shared"
162 + "PROJ_INCLUDES=/usr/include"
163 + "PROJ_LIBS=/usr/$(get_libdir)"
164 + "LIBDIR_SCHEMA=$(get_libdir)"
165 + "FREETYPE_INCLUDES=/usr/include/freetype2"
166 + "FREETYPE_LIBS=/usr/$(get_libdir)"
167 + "XML2_INCLUDES=/usr/include/libxml2"
168 + "XML2_LIBS=/usr/$(get_libdir)"
169 + "SYSTEM_FONTS=/usr/share/fonts"
170 + CAIRO="$(usex cairo 1 0)"
171 + DEBUG="$(usex debug 1 0)"
172 + XML_DEBUG="$(usex debug 1 0)"
173 + DEMO="$(usex doc 1 0)"
174 + SAMPLE_INPUT_PLUGINS="$(usex doc 1 0)"
175 + "CUSTOM_LDFLAGS=${LDFLAGS}"
176 + "CUSTOM_LDFLAGS+=-L${ED}/usr/$(get_libdir)"
177 + )
178 + escons "${MYSCONS[@]}" configure
179 +}
180 +
181 +src_compile() {
182 + escons "${MYSCONS[@]}"
183 +}
184 +
185 +src_install() {
186 + escons "${MYSCONS[@]}" DESTDIR="${D}" install
187 +
188 + dodoc AUTHORS.md README.md CHANGELOG.md
189 +}
190 +
191 +pkg_postinst() {
192 + elog ""
193 + elog "See the home page or wiki (https://github.com/mapnik/mapnik/wiki) for more info"
194 + elog "or the installed examples for the default mapnik ogcserver config."
195 + elog ""
196 +}
197
198 diff --git a/sci-geosciences/mapnik/metadata.xml b/sci-geosciences/mapnik/metadata.xml
199 index bbbaaa7e4d1..7f8d2fd981b 100644
200 --- a/sci-geosciences/mapnik/metadata.xml
201 +++ b/sci-geosciences/mapnik/metadata.xml
202 @@ -11,6 +11,7 @@
203 </longdescription>
204 <use>
205 <flag name="gdal">Enable <pkg>sci-libs/gdal</pkg> library support</flag>
206 + <flag name="osmfonts">Enable openstreetmaps font styles</flag>
207 </use>
208 <upstream>
209 <remote-id type="github">downloads/mapnik</remote-id>