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