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