1 |
grknight 15/02/04 19:58:49 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mapserver-6.0.1-r2.ebuild |
5 |
Removed: mapserver-6.0.1-r1.ebuild |
6 |
Log: |
7 |
Non-maintainer commit: Revbump to provide php5.4 and php5.5 support (only one at a time) using patch from https://github.com/mapserver/mapserver/issues/4309 |
8 |
|
9 |
(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key D1F781EFF9F4A3B6) |
10 |
|
11 |
Revision Changes Path |
12 |
1.54 sci-geosciences/mapserver/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapserver/ChangeLog?rev=1.54&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapserver/ChangeLog?rev=1.54&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapserver/ChangeLog?r1=1.53&r2=1.54 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/mapserver/ChangeLog,v |
21 |
retrieving revision 1.53 |
22 |
retrieving revision 1.54 |
23 |
diff -u -r1.53 -r1.54 |
24 |
--- ChangeLog 26 Nov 2014 00:08:10 -0000 1.53 |
25 |
+++ ChangeLog 4 Feb 2015 19:58:49 -0000 1.54 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for sci-geosciences/mapserver |
28 |
-# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapserver/ChangeLog,v 1.53 2014/11/26 00:08:10 dilfridge Exp $ |
30 |
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
31 |
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapserver/ChangeLog,v 1.54 2015/02/04 19:58:49 grknight Exp $ |
32 |
+ |
33 |
+*mapserver-6.0.1-r2 (04 Feb 2015) |
34 |
+ |
35 |
+ 04 Feb 2015; Brian Evans <grknight@g.o> +files/6.1.0-php-5.4.patch, |
36 |
+ +mapserver-6.0.1-r2.ebuild, -mapserver-6.0.1-r1.ebuild: |
37 |
+ Non-maintainer commit: Revbump to provide php5.4 and php5.5 support (only one |
38 |
+ at a time) using patch from https://github.com/mapserver/mapserver/issues/4309 |
39 |
|
40 |
26 Nov 2014; Andreas K. Huettel <dilfridge@g.o> |
41 |
mapserver-6.0.1-r1.ebuild: |
42 |
|
43 |
|
44 |
|
45 |
1.1 sci-geosciences/mapserver/mapserver-6.0.1-r2.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapserver/mapserver-6.0.1-r2.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapserver/mapserver-6.0.1-r2.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: mapserver-6.0.1-r2.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2015 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapserver/mapserver-6.0.1-r2.ebuild,v 1.1 2015/02/04 19:58:49 grknight Exp $ |
55 |
|
56 |
EAPI=5 |
57 |
|
58 |
MY_P="${PN}-${PV/_/-}" |
59 |
|
60 |
PHP_EXT_OPTIONAL_USE="php" |
61 |
PHP_EXT_NAME="php_mapscript" |
62 |
PHP_EXT_S="${WORKDIR}/${MY_P}/mapscript/php/" |
63 |
PHP_EXT_SKIP_PHPIZE="no" |
64 |
USE_PHP="php5-4 php5-5" |
65 |
|
66 |
PYTHON_DEPEND="python? 2" |
67 |
SUPPORT_PYTHON_ABIS="1" |
68 |
RESTRICT_PYTHON_ABIS="3.* *-jython" |
69 |
PYTHON_MODNAME="mapscript.py" |
70 |
|
71 |
#USE_RUBY="ruby18 ruby19" |
72 |
#RUBY_OPTIONAL="yes" |
73 |
|
74 |
WEBAPP_MANUAL_SLOT=yes |
75 |
|
76 |
inherit eutils autotools depend.apache webapp distutils perl-module php-ext-source-r2 multilib # ruby-ng |
77 |
|
78 |
DESCRIPTION="OpenSource development environment for constructing spatially enabled Internet-web applications" |
79 |
HOMEPAGE="http://mapserver.org/" |
80 |
SRC_URI="http://download.osgeo.org/mapserver/${MY_P}.tar.gz" |
81 |
|
82 |
LICENSE="MIT" |
83 |
KEYWORDS="~amd64 ~x86" |
84 |
SLOT="0" |
85 |
IUSE="bidi cairo gdal geos mysql opengl perl php postgis proj python threads tiff xml xslt" # ruby php tcl |
86 |
|
87 |
REQUIRED_USE="php? ( ^^ ( php_targets_php5-4 php_targets_php5-5 ) )" |
88 |
|
89 |
RDEPEND=" |
90 |
!${CATEGORY}/${PN}:${PV} |
91 |
dev-libs/expat |
92 |
dev-libs/fcgi |
93 |
>=media-libs/gd-2.0.12[truetype,jpeg,png,zlib] |
94 |
media-libs/giflib |
95 |
net-misc/curl |
96 |
virtual/jpeg |
97 |
virtual/libiconv |
98 |
x11-libs/agg |
99 |
bidi? ( dev-libs/fribidi ) |
100 |
cairo? ( x11-libs/cairo ) |
101 |
gdal? ( >=sci-libs/gdal-1.8.0 ) |
102 |
geos? ( sci-libs/geos ) |
103 |
mysql? ( virtual/mysql ) |
104 |
opengl? ( |
105 |
media-libs/ftgl |
106 |
media-libs/mesa |
107 |
) |
108 |
perl? ( dev-lang/perl:= ) |
109 |
postgis? ( dev-db/postgis ) |
110 |
proj? ( sci-libs/proj net-misc/curl ) |
111 |
tiff? ( |
112 |
media-libs/tiff |
113 |
sci-libs/libgeotiff |
114 |
) |
115 |
xml? ( dev-libs/libxml2:2 ) |
116 |
xslt? ( dev-libs/libxslt[crypt] ) |
117 |
" |
118 |
for i in perl python; do |
119 |
SWIG_DEPEND+=" ${i}? ( >=dev-lang/swig-2.0 )" |
120 |
done |
121 |
DEPEND="${RDEPEND} ${SWIG_DEPEND}" |
122 |
unset SWIG_DEPEND |
123 |
unset i |
124 |
|
125 |
need_apache2 |
126 |
|
127 |
S=${WORKDIR}/${MY_P} |
128 |
|
129 |
_enter_build_dir() { |
130 |
[[ -z ${1} ]] && die "Missing path argument" |
131 |
local workdir=${1} |
132 |
shift |
133 |
[[ -z ${1} ]] && die "missing command argument" |
134 |
|
135 |
echo ">>> Running \"${@}\" in work directory \"${workdir}\"" |
136 |
pushd "${workdir}" > /dev/null || die "Failed to enter directory" |
137 |
${@} || die |
138 |
popd > /dev/null |
139 |
} |
140 |
|
141 |
each_ruby_configure() { ${RUBY} extconf.rb || die ; } |
142 |
|
143 |
ext-source-r2_src_install() { |
144 |
local slot |
145 |
for slot in $(php_get_slots); do |
146 |
php_init_slot_env ${slot} |
147 |
insinto "${EXT_DIR}" |
148 |
newins "${PHP_EXT_NAME}.so" "${PHP_EXT_NAME}.so" || die "Unable to install extension" |
149 |
done |
150 |
php-ext-source-r2_createinifiles |
151 |
} |
152 |
|
153 |
pkg_setup() { |
154 |
webapp_pkg_setup |
155 |
use perl && perl_set_version |
156 |
use python && python_pkg_setup |
157 |
#use ruby && ruby-ng_pkg_setup |
158 |
} |
159 |
|
160 |
src_unpack() { |
161 |
# unpack A and then copy the php thingies into workdir/php-slot |
162 |
php-ext-source-r2_src_unpack |
163 |
# HACK: and then remove it and replace by symlink |
164 |
for slot in $(php_get_slots); do |
165 |
rm -rf "${WORKDIR}/${slot}" || die |
166 |
ln -s "${PHP_EXT_S}" "${WORKDIR}/${slot}" || die |
167 |
done |
168 |
} |
169 |
|
170 |
src_prepare() { |
171 |
epatch "${FILESDIR}/6.0.0_rc1-ldflags.patch" \ |
172 |
"${FILESDIR}/6.0.0_rc1-bool.patch" \ |
173 |
"${FILESDIR}/6.0.0_rc1-php_ldflags.patch" \ |
174 |
"${FILESDIR}/6.1.0-php-5.4.patch" |
175 |
|
176 |
eautoreconf |
177 |
} |
178 |
|
179 |
src_configure() { |
180 |
local myopts |
181 |
|
182 |
if use gdal && use proj ; then |
183 |
myopts+=" |
184 |
--with-wfs |
185 |
--with-wcs |
186 |
--with-wfsclient |
187 |
--with-wmsclient |
188 |
" |
189 |
use xml && myopts+=" --with-sos" |
190 |
fi |
191 |
|
192 |
# some scripts require configure time options so place it here |
193 |
if use php ; then |
194 |
use php_targets_php5-4 && myopts+=" --with-php=${EPREFIX}/usr/$(get_libdir)/php5.4/include/php/" |
195 |
use php_targets_php5-5 && myopts+=" --with-php=${EPREFIX}/usr/$(get_libdir)/php5.5/include/php/" |
196 |
fi |
197 |
|
198 |
# sde is ESRI package that you have to buy first |
199 |
# oraclespatial needs oracle server for testing/usage |
200 |
# note that some options accept just path, they are not on/off switches! |
201 |
econf \ |
202 |
--without-oraclespatial \ |
203 |
--without-sde \ |
204 |
--with-libiconv \ |
205 |
--with-jpeg \ |
206 |
--with-gd \ |
207 |
--with-gif="${EPREFIX}/usr/" \ |
208 |
--with-wms \ |
209 |
--with-kml \ |
210 |
--with-curl-config \ |
211 |
--with-agg-svg-symbols \ |
212 |
--with-httpd="${APACHE_BIN}" \ |
213 |
--with-fastcgi \ |
214 |
$(use_with opengl ogl) \ |
215 |
$(use_with opengl ftgl) \ |
216 |
$(use_with proj) \ |
217 |
$(use_with threads) \ |
218 |
$(use_with geos) \ |
219 |
$(use_with gdal) \ |
220 |
$(use_with gdal ogr) \ |
221 |
$(use_with postgis) \ |
222 |
$(use_with mysql) \ |
223 |
$(use_with xml xml2-config) \ |
224 |
$(use_with xslt) \ |
225 |
$(use_with xslt xml-mapfile) \ |
226 |
$(use_with bidi fribidi-config) \ |
227 |
$(use_with cairo) \ |
228 |
${myopts} |
229 |
|
230 |
#use ruby && _enter_build_dir "${S}/mapscript/ruby" "ln -s ../mapscript.i ./" |
231 |
#use ruby && _enter_build_dir "${S}/mapscript/ruby" "ruby-ng_src_configure" |
232 |
} |
233 |
|
234 |
src_compile() { |
235 |
default |
236 |
use python && _enter_build_dir "${S}/mapscript/python" "distutils_src_compile" |
237 |
use perl && _enter_build_dir "${S}/mapscript/perl" "perl-module_src_prep" |
238 |
use perl && _enter_build_dir "${S}/mapscript/perl" "perl-module_src_compile" |
239 |
#use php && php-ext-source-r2_src_compile # already compiled by the emake all |
240 |
#use ruby && _enter_build_dir "${S}/mapscript/ruby" "ruby-ng_src_compile" |
241 |
} |
242 |
|
243 |
src_install() { |
244 |
local step="Installing" |
245 |
local extra_dir="fonts tests tests/vera symbols" |
246 |
local i |
247 |
|
248 |
dobin shp2img legend shptree shptreevis shp2img legend shptreetst scalebar \ |
249 |
sortshp tile4ms msencrypt mapserver-config |
250 |
|
251 |
dodoc INSTALL README HISTORY.TXT |
252 |
|
253 |
for i in ${extra_dir}; do |
254 |
docinto /usr/share/doc/${PF}/${i} |
255 |
dodoc -r ${i}/* || die |
256 |
done |
257 |
|
258 |
use python && _enter_build_dir "${S}/mapscript/python" "distutils_src_install" |
259 |
use perl && _enter_build_dir "${S}/mapscript/perl" "perl-module_src_install" |
260 |
use perl && _enter_build_dir "${S}/mapscript/perl" "perl_delete_localpod" |
261 |
use php && ext-source-r2_src_install |
262 |
#use ruby && _enter_build_dir "${S}/mapscript/ruby" "ruby-ng_src_install" |
263 |
|
264 |
webapp_src_preinst |
265 |
exeinto "${MY_CGIBINDIR}" |
266 |
doexe "${S}/mapserv" |
267 |
webapp_src_install |
268 |
} |
269 |
|
270 |
pkg_preinst() { |
271 |
use perl && perl_set_version |
272 |
} |
273 |
|
274 |
pkg_postinst() { |
275 |
webapp_pkg_postinst |
276 |
use python && distutils_pkg_postinst |
277 |
} |
278 |
|
279 |
pkg_prerm() { |
280 |
webapp_pkg_prerm |
281 |
} |
282 |
|
283 |
pkg_postrm() { |
284 |
use python && distutils_pkg_postrm |
285 |
} |