Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 554892 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-31 / +13 lines)
Line  Link Here
0
-- mapnik-2.2.0.ebuild
0
++ mapnik-3.0.5.ebuild
Lines 4-13 Link Here
4
4
5
EAPI=5
5
EAPI=5
6
6
7
PYTHON_COMPAT=( python{2_7,3_3} )
8
MY_P="${PN}-v${PV}"
7
MY_P="${PN}-v${PV}"
9
8
10
inherit eutils python-single-r1 scons-utils toolchain-funcs
9
inherit eutils scons-utils toolchain-funcs
11
10
12
DESCRIPTION="A Free Toolkit for developing mapping applications"
11
DESCRIPTION="A Free Toolkit for developing mapping applications"
13
HOMEPAGE="http://www.mapnik.org/"
12
HOMEPAGE="http://www.mapnik.org/"
Lines 16-28 Link Here
16
LICENSE="LGPL-3"
15
LICENSE="LGPL-3"
17
SLOT="0"
16
SLOT="0"
18
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
17
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
19
IUSE="cairo debug doc gdal postgres python sqlite"
18
IUSE="cairo debug doc gdal postgres sqlite"
19
20
RESTRICT="nomirror"
20
21
21
RDEPEND="
22
RDEPEND="
22
	>=dev-libs/boost-1.48[threads,python?]
23
	>=dev-libs/boost-1.48[threads]
23
	dev-libs/icu:=
24
	dev-libs/icu:=
24
	sys-libs/zlib
25
	sys-libs/zlib
25
	media-libs/freetype
26
	media-libs/freetype
27
	media-libs/harfbuzz
26
	dev-libs/libxml2
28
	dev-libs/libxml2
27
	media-libs/libpng
29
	media-libs/libpng
28
	media-libs/tiff
30
	media-libs/tiff
Lines 31-64 Link Here
31
	sci-libs/proj
33
	sci-libs/proj
32
	media-fonts/dejavu
34
	media-fonts/dejavu
33
	x11-libs/agg[truetype]
35
	x11-libs/agg[truetype]
34
	net-misc/curl
35
	cairo? (
36
	cairo? (
36
		x11-libs/cairo
37
		x11-libs/cairo
37
		dev-cpp/cairomm
38
		dev-cpp/cairomm
38
		python? ( dev-python/pycairo[${PYTHON_USEDEP}] )
39
	)
39
	)
40
	postgres? ( >=dev-db/postgresql-8.3 )
40
	postgres? ( >=dev-db/postgresql-8.3 )
41
	gdal? ( sci-libs/gdal )
41
	gdal? ( sci-libs/gdal )
42
	sqlite? ( dev-db/sqlite:3 )
42
	sqlite? ( dev-db/sqlite:3 )
43
	python_single_target_python3_3? ( >=dev-libs/boost-1.53[${PYTHON_USEDEP}] )
44
"
43
"
45
44
46
DEPEND="${RDEPEND}"
45
DEPEND="${RDEPEND}"
47
46
48
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
49
50
S="${WORKDIR}/${MY_P}"
47
S="${WORKDIR}/${MY_P}"
51
48
52
pkg_setup() {
53
	use python && python-single-r1_pkg_setup
54
}
55
56
src_prepare() {
49
src_prepare() {
57
	epatch \
50
	epatch \
58
		"${FILESDIR}"/${P}-configure-only-once.patch \
51
		"${FILESDIR}"/${PN}-2.2.0-configure-only-once.patch \
59
		"${FILESDIR}"/${P}-dont-run-ldconfig.patch \
52
		"${FILESDIR}"/${PN}-2.2.0-dont-run-ldconfig.patch \
60
		"${FILESDIR}"/${P}-scons.patch \
53
		"${FILESDIR}"/${PN}-2.2.0-scons.patch
61
		"${FILESDIR}"/${P}-python3.patch
62
54
63
	# do not version epidoc data
55
	# do not version epidoc data
64
	sed -i \
56
	sed -i \
Lines 74-84 Link Here
74
}
66
}
75
67
76
src_configure() {
68
src_configure() {
77
	local PLUGINS=shape,csv,raster,geojson,osm
69
	local PLUGINS=shape,csv,raster,geojson
78
	use gdal && PLUGINS+=,gdal,ogr
70
	use gdal && PLUGINS+=,gdal,ogr
79
	use postgres && PLUGINS+=,postgis
71
	use postgres && PLUGINS+=,postgis
80
	use sqlite && PLUGINS+=,sqlite
72
	use sqlite && PLUGINS+=,sqlite
81
	use python && PLUGINS+=,python
82
73
83
	myesconsargs=(
74
	myesconsargs=(
84
		"CC=$(tc-getCC)"
75
		"CC=$(tc-getCC)"
Lines 92-100 Link Here
92
		"PROJ_INCLUDES=/usr/include"
83
		"PROJ_INCLUDES=/usr/include"
93
		"PROJ_LIBS=/usr/$(get_libdir)"
84
		"PROJ_LIBS=/usr/$(get_libdir)"
94
		"SYSTEM_FONTS=/usr/share/fonts"
85
		"SYSTEM_FONTS=/usr/share/fonts"
95
		$(use_scons python BINDINGS all none)
96
		$(use python && use_scons python PYTHON $PYTHON)
97
		$(use_scons python BOOST_PYTHON_LIB boost_python-$(echo $EPYTHON | sed 's/python//'))
98
		$(use_scons cairo CAIRO)
86
		$(use_scons cairo CAIRO)
99
		$(use_scons debug DEBUG)
87
		$(use_scons debug DEBUG)
100
		$(use_scons debug XML_DEBUG)
88
		$(use_scons debug XML_DEBUG)
Lines 108-131 Link Here
108
}
96
}
109
97
110
src_compile() {
98
src_compile() {
111
	escons
99
	escons -j 1
112
}
100
}
113
101
114
src_install() {
102
src_install() {
115
	escons install
103
	escons install
116
104
117
	if use python ; then
118
		python_optimize
119
		fperms 0644 "$(python_get_sitedir)"/${PN}/paths.py
120
		dobin utils/stats/mapdef_stats.py
121
	fi
122
123
	dodoc AUTHORS.md README.md CHANGELOG.md
105
	dodoc AUTHORS.md README.md CHANGELOG.md
124
}
106
}
125
107
126
pkg_postinst() {
108
pkg_postinst() {
127
	elog ""
109
	elog ""
128
	elog "See the home page or wiki (http://trac.mapnik.org/) for more info"
110
	elog "See the home page or wiki (https://github.com/mapnik/mapnik/wiki) for more info"
129
	elog "or the installed examples for the default mapnik ogcserver config."
111
	elog "or the installed examples for the default mapnik ogcserver config."
130
	elog ""
112
	elog ""
131
}
113
}

Return to bug 554892