1 |
hollow 08/02/05 08:29:19 |
2 |
|
3 |
Modified: mapserver-5.0.0.ebuild ChangeLog |
4 |
Added: mapserver-5.0.0-r1.ebuild |
5 |
Log: |
6 |
merge from webapps overlay wrt #208584 |
7 |
(Portage version: 2.1.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.5 sci-geosciences/mapserver/mapserver-5.0.0.ebuild |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/mapserver/mapserver-5.0.0.ebuild?rev=1.5&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/mapserver/mapserver-5.0.0.ebuild?rev=1.5&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/mapserver/mapserver-5.0.0.ebuild?r1=1.4&r2=1.5 |
15 |
|
16 |
Index: mapserver-5.0.0.ebuild |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/mapserver/mapserver-5.0.0.ebuild,v |
19 |
retrieving revision 1.4 |
20 |
retrieving revision 1.5 |
21 |
diff -u -r1.4 -r1.5 |
22 |
--- mapserver-5.0.0.ebuild 24 Oct 2007 06:58:02 -0000 1.4 |
23 |
+++ mapserver-5.0.0.ebuild 5 Feb 2008 08:29:18 -0000 1.5 |
24 |
@@ -1,6 +1,6 @@ |
25 |
-# Copyright 1999-2007 Gentoo Foundation |
26 |
+# Copyright 1999-2008 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapserver/mapserver-5.0.0.ebuild,v 1.4 2007/10/24 06:58:02 wltjr Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapserver/mapserver-5.0.0.ebuild,v 1.5 2008/02/05 08:29:18 hollow Exp $ |
30 |
|
31 |
PHP_EXT_NAME="php_mapscript php_proj" |
32 |
RUBY_OPTIONAL="yes" |
33 |
@@ -24,7 +24,6 @@ |
34 |
media-libs/freetype |
35 |
sys-libs/zlib |
36 |
>=media-libs/gd-2.0.12 |
37 |
- apache2? ( www-servers/apache ) |
38 |
unicode? ( virtual/libiconv ) |
39 |
agg? ( x11-libs/agg ) |
40 |
geos? ( sci-libs/geos ) |
41 |
|
42 |
|
43 |
|
44 |
1.9 sci-geosciences/mapserver/ChangeLog |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/mapserver/ChangeLog?rev=1.9&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/mapserver/ChangeLog?rev=1.9&content-type=text/plain |
48 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/mapserver/ChangeLog?r1=1.8&r2=1.9 |
49 |
|
50 |
Index: ChangeLog |
51 |
=================================================================== |
52 |
RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/mapserver/ChangeLog,v |
53 |
retrieving revision 1.8 |
54 |
retrieving revision 1.9 |
55 |
diff -u -r1.8 -r1.9 |
56 |
--- ChangeLog 24 Oct 2007 06:58:02 -0000 1.8 |
57 |
+++ ChangeLog 5 Feb 2008 08:29:18 -0000 1.9 |
58 |
@@ -1,6 +1,18 @@ |
59 |
# ChangeLog for sci-geosciences/mapserver |
60 |
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
61 |
-# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapserver/ChangeLog,v 1.8 2007/10/24 06:58:02 wltjr Exp $ |
62 |
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
63 |
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapserver/ChangeLog,v 1.9 2008/02/05 08:29:18 hollow Exp $ |
64 |
+ |
65 |
+*mapserver-5.0.0-r1 (05 Feb 2008) |
66 |
+ |
67 |
+ 05 Feb 2008; Benedikt Böhm <hollow@g.o> mapserver-5.0.0.ebuild, |
68 |
+ +mapserver-5.0.0-r1.ebuild: |
69 |
+ merge from webapps overlay wrt #208584 |
70 |
+ |
71 |
+ 03 Feb 2008; Jakub Moc <jakub@g.o> |
72 |
+ -files/mapserver-5.0.0_php.patch, -files/mapserver_php4.patch, |
73 |
+ mapserver-5.0.0.ebuild: |
74 |
+ Fix apache handling wrt Bug 208584. Drop support for PHP4. Sanitize the |
75 |
+ ebuild. Fix perl handling for Bug 205076. |
76 |
|
77 |
24 Oct 2007; William L. Thomson Jr. <wltjr@g.o> |
78 |
-files/mapserver-4.10.0_php.patch, -files/mapserver-4.10.3_php.patch, |
79 |
|
80 |
|
81 |
|
82 |
1.1 sci-geosciences/mapserver/mapserver-5.0.0-r1.ebuild |
83 |
|
84 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/mapserver/mapserver-5.0.0-r1.ebuild?rev=1.1&view=markup |
85 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/mapserver/mapserver-5.0.0-r1.ebuild?rev=1.1&content-type=text/plain |
86 |
|
87 |
Index: mapserver-5.0.0-r1.ebuild |
88 |
=================================================================== |
89 |
# Copyright 1999-2008 Gentoo Foundation |
90 |
# Distributed under the terms of the GNU General Public License v2 |
91 |
# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapserver/mapserver-5.0.0-r1.ebuild,v 1.1 2008/02/05 08:29:18 hollow Exp $ |
92 |
|
93 |
PHP_EXT_NAME="php_mapscript php_proj" |
94 |
RUBY_OPTIONAL="yes" |
95 |
|
96 |
inherit eutils autotools confutils multilib distutils depend.php perl-module php-ext-source-r1 depend.apache webapp ruby java-pkg-opt-2 |
97 |
|
98 |
WEBAPP_MANUAL_SLOT=yes |
99 |
|
100 |
DESCRIPTION="OpenSource development environment for constructing spatially enabled Internet-web applications." |
101 |
HOMEPAGE="http://mapserver.gis.umn.edu/" |
102 |
SRC_URI="http://download.osgeo.org/mapserver/${P}.tar.gz" |
103 |
|
104 |
LICENSE="MIT" |
105 |
KEYWORDS="~amd64 ~x86" |
106 |
|
107 |
# I must check for mygis use flag availability |
108 |
IUSE="agg doc flash gdal geos java pdf perl php postgis proj python ruby tcl threads tiff unicode xml xpm" # mono |
109 |
|
110 |
# compilation fails with jdk > 1.4 on some native part probably |
111 |
DEPEND="media-libs/libpng |
112 |
media-libs/jpeg |
113 |
media-libs/freetype |
114 |
>=media-libs/gd-2.0.12 |
115 |
sys-libs/zlib |
116 |
agg? ( x11-libs/agg ) |
117 |
flash? ( media-libs/ming ) |
118 |
gdal? ( >sci-libs/gdal-1.2.6 ) |
119 |
geos? ( sci-libs/geos ) |
120 |
java? ( >=virtual/jdk-1.4 dev-lang/swig ) |
121 |
pdf? ( media-libs/pdflib ) |
122 |
perl? ( dev-perl/DBI dev-lang/swig ) |
123 |
php? ( dev-lang/php dev-lang/swig ) |
124 |
postgis? ( dev-db/postgis ) |
125 |
proj? ( sci-libs/proj net-misc/curl ) |
126 |
python? ( dev-lang/python dev-lang/swig ) |
127 |
ruby? ( dev-lang/ruby dev-lang/swig ) |
128 |
tcl? ( dev-lang/tcl dev-lang/swig ) |
129 |
tiff? ( media-libs/tiff sci-libs/libgeotiff ) |
130 |
unicode? ( virtual/libiconv ) |
131 |
xml? ( dev-libs/libxml2 ) |
132 |
xpm? ( x11-libs/libXpm )" |
133 |
|
134 |
RDEPEND="${DEPEND}" |
135 |
want_apache2 |
136 |
|
137 |
cd_script() { |
138 |
einfo "$2 the mapserver $1-mapscript" |
139 |
cd "${S}"/mapscript/$1 || die "Unable to go into $1 mapscript dir" |
140 |
} |
141 |
|
142 |
pkg_setup() { |
143 |
webapp_pkg_setup |
144 |
use java && java-pkg-opt-2_pkg_setup |
145 |
use perl && perl-module_pkg_setup |
146 |
use php && has_php |
147 |
|
148 |
einfo "Checking for gd compiled with truetype support..." |
149 |
if built_with_use media-libs/gd truetype ; then |
150 |
einfo "Found truetype support; continuing..." |
151 |
else |
152 |
eerror "media-libs/gd must be compiled with truetype support," |
153 |
eerror "and you probably want jpeg and png support also." |
154 |
eerror "Please re-emerge gd with the truetype USE flag." |
155 |
die "gd not merged with truetype USE flag" |
156 |
fi |
157 |
|
158 |
confutils_use_conflict gdal tiff |
159 |
confutils_use_depend_all java threads |
160 |
} |
161 |
|
162 |
src_unpack() { |
163 |
unpack ${A} |
164 |
cd "${S}" |
165 |
|
166 |
if use tcl ; then |
167 |
epatch "${FILESDIR}"/${PN}_tcl.patch-r1 |
168 |
sed -i -e "s:@libdir@:$(get_libdir):g" mapscript/tcl/Makefile.in \ |
169 |
|| die "failed to fix libdir in Makefile.in" |
170 |
fi |
171 |
AT_GNUCONF_UPDATE="no" eautoreconf |
172 |
} |
173 |
|
174 |
src_compile() { |
175 |
local step="Building" |
176 |
|
177 |
local myconf="--with-png --with-jpeg --with-zlib --with-freetype" |
178 |
use apache2 && myconf="${myconf} --with-httpd=${APACHE_BIN}" |
179 |
use geos && myconf="${myconf} --with-geos=$(type -P geos-config)" |
180 |
|
181 |
local MYGPUSE="wfs wcs wfsclient" |
182 |
if use gdal && use proj ; then |
183 |
myconf="--with-ogr ${myconf}"; |
184 |
for i in ${MYGPUSE}; do |
185 |
myconf="${myconf} --with-${i}" |
186 |
done |
187 |
use xml && myconf="${myconf} --with-sos" |
188 |
fi |
189 |
|
190 |
use proj && myconf="${myconf} --with-wmsclient" |
191 |
use php && myconf="${myconf} --with-php=${PHPPREFIX}/include/php" |
192 |
|
193 |
if use perl || use python || use ruby || use tcl || use php ; then |
194 |
myconf="${myconf} --with-mapscript" |
195 |
fi |
196 |
|
197 |
cd "${S}" |
198 |
econf $(use_with gdal) \ |
199 |
$(use_with agg) \ |
200 |
$(use_with perl) \ |
201 |
$(use_with python) \ |
202 |
$(use_with ruby) \ |
203 |
$(use_with tcl) \ |
204 |
$(use_with proj) \ |
205 |
$(use_with postgis) \ |
206 |
$(use_with tiff) \ |
207 |
$(use_with pdf) \ |
208 |
$(use_with flash ming) \ |
209 |
$(use_with java) \ |
210 |
$(use_with unicode iconv) \ |
211 |
$(use_with threads) \ |
212 |
${myconf} |
213 |
|
214 |
emake || die "make failed" |
215 |
|
216 |
if use perl; then |
217 |
cd_script perl ${step} |
218 |
perl-module_src_compile |
219 |
fi |
220 |
|
221 |
if use php && use proj; then |
222 |
cd_script php3 ${step} |
223 |
emake php_proj.so || die "unable to built php_proj.so" |
224 |
fi |
225 |
|
226 |
if use python; then |
227 |
cd_script python ${step} |
228 |
distutils_src_compile || die "Unable to build python mapscript" |
229 |
fi |
230 |
|
231 |
if use ruby; then |
232 |
cd_script ruby ${step} |
233 |
RUBY_ECONF="-I${D}" |
234 |
ruby_econf |
235 |
cp ../mapscript.i . || die "Unable to find mapscript.i" |
236 |
sed -e "s:ruby.h defines.h::g" -i ./Makefile |
237 |
ruby_emake |
238 |
fi |
239 |
|
240 |
if use tcl; then |
241 |
cd_script tcl ${step} |
242 |
sed "s:perlvars:mapscriptvars:" -i configure |
243 |
sed -e "s:tail -:tail -n :g" -e "s:head -:head -n :g" -i configure ||\ |
244 |
die "Unable to modify the configure file" |
245 |
econf --with-tcl=/usr |
246 |
touch tclmodule.i |
247 |
# do not comment this sed out again because it will plain break build otherwise |
248 |
# thanks in advance |
249 |
sed -e "s:-DTCL_WIDE_INT_TYPE=long long:-DTCL_WIDE_INT_TYPE=long\\\ long:g" \ |
250 |
-i Makefile || die "Unable to modify Makefile" |
251 |
emake || die "Unable to build tcl mapscript" |
252 |
fi |
253 |
|
254 |
if use java; then |
255 |
cd_script java ${step} |
256 |
emake interface || die "Unable to build java mapscript" |
257 |
emake all || die "Unable to build java mapscript" |
258 |
fi |
259 |
|
260 |
} |
261 |
|
262 |
src_test(){ |
263 |
if use java ; then |
264 |
cd_script java test |
265 |
emake test || die "Test failed" |
266 |
# We need to fix the tests to make them pass |
267 |
sed -i -e "s:setTransparency:setOpacity:g" \ |
268 |
"${S}"/mapscript/java/tests/threadtest/MapThread.java \ |
269 |
|| die "fixing of tests failed" |
270 |
emake threadtests || die "Threadtests failed" |
271 |
fi |
272 |
} |
273 |
|
274 |
mapscript_install_examples() { |
275 |
elog "$1-mapscript examples could be found in the following directory" |
276 |
elog "/usr/share/doc/${PF}/mapscript/examples/$1" |
277 |
insinto /usr/share/doc/${PF}/mapscript/examples/$1/ |
278 |
doins examples/* || die "Unable to install specified sample data" |
279 |
} |
280 |
|
281 |
src_install() { |
282 |
local step |
283 |
step="Installing" |
284 |
extra_dir="fonts tests tests/vera symbols" |
285 |
|
286 |
dodir /usr /usr/bin |
287 |
|
288 |
into /usr |
289 |
|
290 |
if use php ; then |
291 |
cd_script php3 ${step} |
292 |
for i in *.so ; do |
293 |
cp ${i} "${WORKDIR}"/${i/.so}-default.so || die "failed to copy php extension" |
294 |
PHP_EXT_NAME="${i/.so}" |
295 |
php-ext-source-r1_src_install |
296 |
done |
297 |
|
298 |
mapscript_install_examples php |
299 |
fi |
300 |
|
301 |
if use ruby ; then |
302 |
cd_script ruby ${step} |
303 |
ruby_einstall |
304 |
mapscript_install_examples ruby |
305 |
fi |
306 |
|
307 |
if use perl ; then |
308 |
cd_script perl ${step} |
309 |
perl-module_src_install |
310 |
mapscript_install_examples perl |
311 |
fi |
312 |
|
313 |
if use tcl ; then |
314 |
cd_script tcl ${step} |
315 |
sed "s:\$(TCL_EXEC_PREFIX):\$(DESTDIR)\$(TCL_EXEC_PREFIX):g" -i Makefile |
316 |
emake -j1 DESTDIR="${D}" install || \ |
317 |
die "Unable to setup tcl mapscript support" |
318 |
mapscript_install_examples tcl |
319 |
fi |
320 |
|
321 |
if use python ; then |
322 |
cd_script python ${step} |
323 |
distutils_src_install |
324 |
mapscript_install_examples python |
325 |
fi |
326 |
|
327 |
if use java ; then |
328 |
cd_script java ${step} |
329 |
java-pkg_dojar mapscript.jar |
330 |
java-pkg_doso libmapscript.so |
331 |
mapscript_install_examples java |
332 |
fi |
333 |
|
334 |
cd "${S}" |
335 |
into /usr |
336 |
|
337 |
if use pdf ; then |
338 |
dobin shp2pdf || die "Unable to setup shp2pdf" |
339 |
fi |
340 |
|
341 |
dobin shp2img legend shptree shptreevis shp2img legend shptreetst scalebar \ |
342 |
sortshp tile4ms msencrypt mapserver-config \ |
343 |
|| die "Unable to setup mapserver tools" |
344 |
|
345 |
dodoc INSTALL README HISTORY.TXT || die "Unable to setup documentation" |
346 |
|
347 |
for i in ${extra_dir}; do |
348 |
insinto /usr/share/doc/${PF}/${i} |
349 |
doins ${i}/* || die "Unable to add extra_dir to document tree" |
350 |
done |
351 |
|
352 |
if use doc; then |
353 |
insinto /usr/share/doc/${PF}/rfc |
354 |
doins rfc/* |
355 |
fi |
356 |
|
357 |
webapp_src_preinst |
358 |
chmod +x "${S}"/mapserv || die "Unable to find mapserv" |
359 |
cp "${S}"/mapserv "${D}"/${MY_CGIBINDIR} || die "Unable to install mapserv" |
360 |
webapp_src_install |
361 |
} |
362 |
|
363 |
pkg_postinst() { |
364 |
webapp_pkg_postinst |
365 |
} |
366 |
|
367 |
pkg_prerm() { |
368 |
webapp_pkg_prerm |
369 |
} |
370 |
|
371 |
|
372 |
|
373 |
-- |
374 |
gentoo-commits@l.g.o mailing list |