Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 195780 | Differences between
and this patch

Collapse All | Expand All

(-)/Volumes/localhorst/usr/portage/sci-geosciences/mapserver/mapserver-4.10.3.ebuild (-7 / +12 lines)
Lines 2-7 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapserver/mapserver-4.10.3.ebuild,v 1.2 2007/09/06 01:17:33 djay Exp $
3
# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapserver/mapserver-4.10.3.ebuild,v 1.2 2007/09/06 01:17:33 djay Exp $
4
4
5
EAPI="prefix"
6
5
PHP_EXT_NAME="php_mapscript php_proj"
7
PHP_EXT_NAME="php_mapscript php_proj"
6
RUBY_OPTIONAL="yes"
8
RUBY_OPTIONAL="yes"
7
9
Lines 12-18 Link Here
12
SRC_URI="http://download.osgeo.org/mapserver/${P}.tar.gz"
14
SRC_URI="http://download.osgeo.org/mapserver/${P}.tar.gz"
13
15
14
LICENSE="MIT"
16
LICENSE="MIT"
15
KEYWORDS="~amd64 ~x86"
17
KEYWORDS="~amd64 ~x86 ~x86-macos"
16
18
17
#I must check for mygis use flag availability
19
#I must check for mygis use flag availability
18
#"mono"
20
#"mono"
Lines 44-49 Link Here
44
46
45
WEBAPP_MANUAL_SLOT=yes
47
WEBAPP_MANUAL_SLOT=yes
46
48
49
GD_PREFIX=`gdlib-config --includedir|sed 's!/include!!'`
50
47
want_apache
51
want_apache
48
52
49
cd_script() {
53
cd_script() {
Lines 175-180 Link Here
175
		$(use_with flash ming)\
179
		$(use_with flash ming)\
176
		$(use_with java)\
180
		$(use_with java)\
177
		$(use_with threads)\
181
		$(use_with threads)\
182
		--with-gd=$GD_PREFIX \
178
		${myconf}\
183
		${myconf}\
179
		|| die "econf failed"
184
		|| die "econf failed"
180
185
Lines 200-206 Link Here
200
205
201
	if use ruby; then
206
	if use ruby; then
202
		cd_script ruby ${step}
207
		cd_script ruby ${step}
203
		RUBY_ECONF="-I${D}"
208
		RUBY_ECONF="-I${ED}"
204
		ruby_econf
209
		ruby_econf
205
		cp ../mapscript.i . || die "Unable to find mapscript.i"
210
		cp ../mapscript.i . || die "Unable to find mapscript.i"
206
		sed -e "s:ruby.h defines.h::g" -i ./Makefile
211
		sed -e "s:ruby.h defines.h::g" -i ./Makefile
Lines 250-265 Link Here
250
			for i in 4 5; do
255
			for i in 4 5; do
251
				cd_script php$i ${step}
256
				cd_script php$i ${step}
252
				uses_php$i
257
				uses_php$i
253
				EXT_DIR="$(${PHPCONFIG} --extension-dir)"
258
				EXT_DIR="$(${PHPCONFIG} --extension-dir|sed s!^$EPREFIX!!)"
254
				dodir ${EXT_DIR}
259
				dodir ${EXT_DIR}
255
				cp *.so ${D}/${EXT_DIR} || \
260
				cp *.so ${ED}/${EXT_DIR} || \
256
					die "Unable to setup php5 mapscript support"
261
					die "Unable to setup php5 mapscript support"
257
			done
262
			done
258
		else
263
		else
259
			cd_script php3 ${step}
264
			cd_script php3 ${step}
260
			EXT_DIR="$(${PHPCONFIG} --extension-dir)"
265
			EXT_DIR="$(${PHPCONFIG} --extension-dir|sed s!^$EPREFIX!!)"
261
			dodir ${EXT_DIR}
266
			dodir ${EXT_DIR}
262
			cp *.so ${D}/${EXT_DIR} || \
267
			cp *.so ${ED}/${EXT_DIR} || \
263
				die "Unable to setup php4 mapscript support"
268
				die "Unable to setup php4 mapscript support"
264
		fi
269
		fi
265
		mapscript_install_examples php
270
		mapscript_install_examples php
Lines 320-325 Link Here
320
325
321
	webapp_src_preinst
326
	webapp_src_preinst
322
	chmod +x "${S}"/mapserv || die "Unable to find mapserv"
327
	chmod +x "${S}"/mapserv || die "Unable to find mapserv"
323
	cp "${S}"/mapserv "${D}"/${MY_CGIBINDIR} || die "Unable to install mapserv"
328
	cp "${S}"/mapserv "${ED}"/${MY_CGIBINDIR} || die "Unable to install mapserv"
324
	webapp_src_install
329
	webapp_src_install
325
}
330
}

Return to bug 195780