Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 168933
Collapse All | Expand All

(-)/usr/portage/sci-geosciences/mapserver/mapserver-4.10.0.ebuild (-16 / +32 lines)
Lines 5-11 Link Here
5
PHP_EXT_NAME="php_mapscript php_proj"
5
PHP_EXT_NAME="php_mapscript php_proj"
6
RUBY_OPTIONAL="yes"
6
RUBY_OPTIONAL="yes"
7
7
8
inherit eutils autotools distutils depend.php depend.apache webapp ruby java-pkg
8
#I must check for mygis use flag availability 
9
#"mono"
10
IUSE="apache xml pdf proj geos tiff gdal xpm postgis flash php python perl ruby tcl java"
11
12
inherit eutils autotools distutils depend.php depend.apache ruby java-pkg
13
14
if use apache
15
then
16
	inherit webapp 
17
fi
9
18
10
DESCRIPTION="OpenSource development environment for constructing spatially enabled Internet-web applications."
19
DESCRIPTION="OpenSource development environment for constructing spatially enabled Internet-web applications."
11
20
Lines 17-33 Link Here
17
26
18
KEYWORDS="~x86"
27
KEYWORDS="~x86"
19
28
20
#I must check for mygis use flag availability 
21
#"mono"
22
IUSE="xml pdf proj geos tiff gdal xpm postgis flash php python perl ruby tcl java"
23
24
25
DEPEND="media-libs/libpng
29
DEPEND="media-libs/libpng
26
	media-libs/jpeg
30
	media-libs/jpeg
27
	>=media-libs/gd-2.0.12
31
	>=media-libs/gd-2.0.12
28
	media-libs/freetype
32
	media-libs/freetype
29
	sys-libs/zlib
33
	sys-libs/zlib
30
	net-www/apache
34
	apache? ( net-www/apache )
31
	geos? ( sci-libs/geos )
35
	geos? ( sci-libs/geos )
32
	proj? ( sci-libs/proj net-misc/curl )
36
	proj? ( sci-libs/proj net-misc/curl )
33
	xml? ( dev-libs/libxml2 )
37
	xml? ( dev-libs/libxml2 )
Lines 44-52 Link Here
44
	java? ( =virtual/jdk-1.4* dev-java/java-config dev-lang/swig )
48
	java? ( =virtual/jdk-1.4* dev-java/java-config dev-lang/swig )
45
	tcl? ( dev-lang/tcl dev-lang/swig )"
49
	tcl? ( dev-lang/tcl dev-lang/swig )"
46
50
47
WEBAPP_MANUAL_SLOT=yes
51
if use apache
48
52
then
49
want_apache
53
	WEBAPP_MANUAL_SLOT=yes
54
	want_apache
55
fi
50
56
51
cd_script() {
57
cd_script() {
52
	einfo "$2 the mapserver $1-mapscript"
58
	einfo "$2 the mapserver $1-mapscript"
Lines 54-60 Link Here
54
}
60
}
55
61
56
pkg_setup(){
62
pkg_setup(){
57
	webapp_pkg_setup
63
	if use apache; then
64
		webapp_pkg_setup
65
	fi
58
	if use php; then
66
	if use php; then
59
		# check how many versions of php was installed
67
		# check how many versions of php was installed
60
		has_php
68
		has_php
Lines 100-106 Link Here
100
	AT_GNUCONF_UPDATE="no" eautoreconf
108
	AT_GNUCONF_UPDATE="no" eautoreconf
101
109
102
	local myconf
110
	local myconf
103
	myconf="--with-httpd=${APACHECTL/'ctl'/} --with-freetype"
111
	myconf="--with-freetype"
112
113
	if use apache; then
114
		myconf="${myconf} --with-httpd=${APACHECTL/'ctl'/}"
115
	fi
104
116
105
	if use geos; then
117
	if use geos; then
106
		myconf="${myconf} --with-geos=$(which geos-config)"
118
		myconf="${myconf} --with-geos=$(which geos-config)"
Lines 150-155 Link Here
150
		$(use_with pdf)\
162
		$(use_with pdf)\
151
		$(use_with flash ming)\
163
		$(use_with flash ming)\
152
		$(use_with java)\
164
		$(use_with java)\
165
		$(use_with apache httpd)\
153
		${myconf}\
166
		${myconf}\
154
		|| die "econf failed"
167
		|| die "econf failed"
155
168
Lines 293-300 Link Here
293
		doins "${S}"/$i/* || die "Unable to add extra_dir to document tree"
306
		doins "${S}"/$i/* || die "Unable to add extra_dir to document tree"
294
	done
307
	done
295
308
296
	webapp_src_preinst
309
	if use apache
297
	chmod +x "${S}"/mapserv || die "Unable to find mapserv"
310
	then
298
	cp "${S}"/mapserv "${D}"/${MY_CGIBINDIR} || die "Unable to install mapserv"
311
		webapp_src_preinst
299
	webapp_src_install
312
		chmod +x "${S}"/mapserv || die "Unable to find mapserv"
313
		cp "${S}"/mapserv "${D}"/${MY_CGIBINDIR} || die "Unable to install mapserv"
314
		webapp_src_install
315
	fi
300
}
316
}

Return to bug 168933