Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 690584
Collapse All | Expand All

(-)file_not_specified_in_diff (-24 / +25 lines)
Line  Link Here
0
-- mapnik-3.0.18.ebuild
0
++ mapnik-3.0.23.ebuild
Lines 1-19 Link Here
1
# Copyright 1999-2019 Gentoo Authors
1
# Copyright 1999-2020 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
3
4
EAPI=6
4
EAPI=7
5
5
6
inherit eutils scons-utils toolchain-funcs
6
PYTHON_COMPAT=( python3_7 )
7
8
inherit python-any-r1 toolchain-funcs
7
9
8
DESCRIPTION="A Free Toolkit for developing mapping applications"
10
DESCRIPTION="A Free Toolkit for developing mapping applications"
9
HOMEPAGE="http://www.mapnik.org/"
11
HOMEPAGE="https://mapnik.org/"
10
SRC_URI="https://github.com/mapnik/mapnik/releases/download/v${PV}/mapnik-v${PV}.tar.bz2 -> ${P}.tar.bz2"
12
SRC_URI="
11
S="${WORKDIR}/mapnik-v${PV}"
13
	https://github.com/mapnik/mapnik/releases/download/v${PV}/mapnik-v${PV}.tar.bz2 -> ${P}.tar.bz2
14
	test? ( https://github.com/mapnik/test-data/archive/v${PV}.tar.gz -> ${PN}-test-data-${PV}.tar.gz )"
12
15
13
LICENSE="LGPL-3"
16
LICENSE="LGPL-3"
14
SLOT="0"
17
SLOT="0"
15
KEYWORDS="~amd64 ~x86"
18
KEYWORDS="~amd64 ~x86"
16
IUSE="cairo debug doc gdal osmfonts postgres sqlite"
19
IUSE="cairo debug doc gdal osmfonts postgres sqlite test"
20
21
RESTRICT="!test? ( test )"
17
22
18
RDEPEND="
23
RDEPEND="
19
	>=dev-libs/boost-1.48:=[threads]
24
	>=dev-libs/boost-1.48:=[threads]
Lines 47-60 Link Here
47
PATCHES=(
52
PATCHES=(
48
	"${FILESDIR}/${PN}-2.2.0-configure-only-once.patch"
53
	"${FILESDIR}/${PN}-2.2.0-configure-only-once.patch"
49
	"${FILESDIR}/${PN}-2.2.0-dont-run-ldconfig.patch"
54
	"${FILESDIR}/${PN}-2.2.0-dont-run-ldconfig.patch"
50
	"${FILESDIR}/${PN}-3.0.18-scons.patch"
51
	"${FILESDIR}/${PN}-3.0.18-icu-61.patch"
52
)
55
)
53
56
57
S="${WORKDIR}/mapnik-v${PV}"
58
54
src_prepare() {
59
src_prepare() {
55
	default
60
	default
61
	
62
	if use test; then
63
		rmdir ${S}/test/data/  || die
64
		mv "${WORKDIR}"/test-data-${PV}/ ${S}/test/data/ || die
65
	fi
56
66
57
	# do not version epidoc data
67
	# do not version epydoc data
58
	sed -i \
68
	sed -i \
59
		-e 's:-`mapnik-config --version`::g' \
69
		-e 's:-`mapnik-config --version`::g' \
60
		utils/epydoc_config/build_epydoc.sh || die
70
		utils/epydoc_config/build_epydoc.sh || die
Lines 66-72 Link Here
66
}
76
}
67
77
68
src_configure() {
78
src_configure() {
69
#	local PYTHONCMD="$(which python2.7)"
70
	local PLUGINS=shape,csv,raster,geojson
79
	local PLUGINS=shape,csv,raster,geojson
71
	use gdal && PLUGINS+=,gdal,ogr
80
	use gdal && PLUGINS+=,gdal,ogr
72
	use postgres && PLUGINS+=,postgis
81
	use postgres && PLUGINS+=,postgis
Lines 86-118 Link Here
86
		"LIBDIR_SCHEMA=$(get_libdir)"
95
		"LIBDIR_SCHEMA=$(get_libdir)"
87
		"FREETYPE_INCLUDES=/usr/include/freetype2"
96
		"FREETYPE_INCLUDES=/usr/include/freetype2"
88
		"FREETYPE_LIBS=/usr/$(get_libdir)"
97
		"FREETYPE_LIBS=/usr/$(get_libdir)"
89
		"XML2_INCLUDES=/usr/include/libxml2"
90
		"XML2_LIBS=/usr/$(get_libdir)"
91
		"SYSTEM_FONTS=/usr/share/fonts"
98
		"SYSTEM_FONTS=/usr/share/fonts"
92
		CAIRO="$(usex cairo 1 0)"
99
		CAIRO="$(usex cairo 1 0)"
93
		DEBUG="$(usex debug 1 0)"
100
		DEBUG="$(usex debug 1 0)"
94
		XML_DEBUG="$(usex debug 1 0)"
101
		XML_DEBUG="$(usex debug 1 0)"
95
		DEMO="$(usex doc 1 0)"
102
		DEMO="$(usex doc 1 0)"
96
		SAMPLE_INPUT_PLUGINS="$(usex doc 1 0)"
103
		SAMPLE_INPUT_PLUGINS="$(usex doc 1 0)"
104
		"CUSTOM_DEFINES=-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1"
97
		"CUSTOM_LDFLAGS=${LDFLAGS}"
105
		"CUSTOM_LDFLAGS=${LDFLAGS}"
98
		"CUSTOM_LDFLAGS+=-L${ED}/usr/$(get_libdir)"
106
		"CUSTOM_LDFLAGS+=-L${ED}/usr/$(get_libdir)"
99
	)
107
	)
100
	escons "${MYSCONS[@]}" configure
108
	"${EPYTHON}" scons/scons.py "${MYSCONS[@]}" configure
101
}
109
}
102
110
103
src_compile() {
111
src_compile() {
104
	escons "${MYSCONS[@]}"
112
	"${EPYTHON}" scons/scons.py "${MYSCONS[@]}"
105
}
113
}
106
114
107
src_install() {
115
src_install() {
108
	escons "${MYSCONS[@]}" DESTDIR="${D}" install
116
	"${EPYTHON}" scons/scons.py "${MYSCONS[@]}" install
109
117
110
	dodoc AUTHORS.md README.md CHANGELOG.md
118
	dodoc AUTHORS.md README.md CHANGELOG.md
111
}
119
}
112
113
pkg_postinst() {
114
	elog ""
115
	elog "See the home page or wiki (https://github.com/mapnik/mapnik/wiki) for more info"
116
	elog "or the installed examples for the default mapnik ogcserver config."
117
	elog ""
118
}

Return to bug 690584