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 (-30 / +11 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"
20
19
21
RDEPEND="
20
RDEPEND="
22
	>=dev-libs/boost-1.48[threads,python?]
21
	>=dev-libs/boost-1.48[threads]
23
	dev-libs/icu:=
22
	dev-libs/icu:=
24
	sys-libs/zlib
23
	sys-libs/zlib
25
	media-libs/freetype
24
	media-libs/freetype
25
	media-libs/harfbuzz
26
	dev-libs/libxml2
26
	dev-libs/libxml2
27
	media-libs/libpng
27
	media-libs/libpng
28
	media-libs/tiff
28
	media-libs/tiff
Lines 35-64 Link Here
35
	cairo? (
35
	cairo? (
36
		x11-libs/cairo
36
		x11-libs/cairo
37
		dev-cpp/cairomm
37
		dev-cpp/cairomm
38
		python? ( dev-python/pycairo[${PYTHON_USEDEP}] )
39
	)
38
	)
40
	postgres? ( >=dev-db/postgresql-8.3 )
39
	postgres? ( >=dev-db/postgresql-8.3 )
41
	gdal? ( sci-libs/gdal )
40
	gdal? ( sci-libs/gdal )
42
	sqlite? ( dev-db/sqlite:3 )
41
	sqlite? ( dev-db/sqlite:3 )
43
	python_single_target_python3_3? ( >=dev-libs/boost-1.53[${PYTHON_USEDEP}] )
44
"
42
"
45
43
46
DEPEND="${RDEPEND}"
44
DEPEND="${RDEPEND}"
47
45
48
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
49
50
S="${WORKDIR}/${MY_P}"
46
S="${WORKDIR}/${MY_P}"
51
47
52
pkg_setup() {
53
	use python && python-single-r1_pkg_setup
54
}
55
56
src_prepare() {
48
src_prepare() {
57
	epatch \
49
	epatch \
58
		"${FILESDIR}"/${P}-configure-only-once.patch \
50
		"${FILESDIR}"/${PN}-2.2.0-configure-only-once.patch \
59
		"${FILESDIR}"/${P}-dont-run-ldconfig.patch \
51
		"${FILESDIR}"/${PN}-2.2.0-dont-run-ldconfig.patch \
60
		"${FILESDIR}"/${P}-scons.patch \
52
		"${FILESDIR}"/${PN}-2.2.0-scons.patch
61
		"${FILESDIR}"/${P}-python3.patch
62
53
63
	# do not version epidoc data
54
	# do not version epidoc data
64
	sed -i \
55
	sed -i \
Lines 74-84 Link Here
74
}
65
}
75
66
76
src_configure() {
67
src_configure() {
77
	local PLUGINS=shape,csv,raster,geojson,osm
68
	local PLUGINS=shape,csv,raster,geojson
78
	use gdal && PLUGINS+=,gdal,ogr
69
	use gdal && PLUGINS+=,gdal,ogr
79
	use postgres && PLUGINS+=,postgis
70
	use postgres && PLUGINS+=,postgis
80
	use sqlite && PLUGINS+=,sqlite
71
	use sqlite && PLUGINS+=,sqlite
81
	use python && PLUGINS+=,python
82
72
83
	myesconsargs=(
73
	myesconsargs=(
84
		"CC=$(tc-getCC)"
74
		"CC=$(tc-getCC)"
Lines 92-100 Link Here
92
		"PROJ_INCLUDES=/usr/include"
82
		"PROJ_INCLUDES=/usr/include"
93
		"PROJ_LIBS=/usr/$(get_libdir)"
83
		"PROJ_LIBS=/usr/$(get_libdir)"
94
		"SYSTEM_FONTS=/usr/share/fonts"
84
		"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)
85
		$(use_scons cairo CAIRO)
99
		$(use_scons debug DEBUG)
86
		$(use_scons debug DEBUG)
100
		$(use_scons debug XML_DEBUG)
87
		$(use_scons debug XML_DEBUG)
Lines 108-131 Link Here
108
}
95
}
109
96
110
src_compile() {
97
src_compile() {
111
	escons
98
	escons -j 1
112
}
99
}
113
100
114
src_install() {
101
src_install() {
115
	escons install
102
	escons install
116
103
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
104
	dodoc AUTHORS.md README.md CHANGELOG.md
124
}
105
}
125
106
126
pkg_postinst() {
107
pkg_postinst() {
127
	elog ""
108
	elog ""
128
	elog "See the home page or wiki (http://trac.mapnik.org/) for more info"
109
	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."
110
	elog "or the installed examples for the default mapnik ogcserver config."
130
	elog ""
111
	elog ""
131
}
112
}

Return to bug 554892