1 |
scarabeus 11/05/02 19:01:45 |
2 |
|
3 |
Modified: ChangeLog mapserver-6.0.0_rc1.ebuild |
4 |
Log: |
5 |
Try to support php too. Sadly it fails with gcc-4.6 |
6 |
|
7 |
(Portage version: 2.2.0_alpha30/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.32 sci-geosciences/mapserver/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapserver/ChangeLog?rev=1.32&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapserver/ChangeLog?rev=1.32&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapserver/ChangeLog?r1=1.31&r2=1.32 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/mapserver/ChangeLog,v |
19 |
retrieving revision 1.31 |
20 |
retrieving revision 1.32 |
21 |
diff -u -r1.31 -r1.32 |
22 |
--- ChangeLog 2 May 2011 18:40:38 -0000 1.31 |
23 |
+++ ChangeLog 2 May 2011 19:01:42 -0000 1.32 |
24 |
@@ -1,6 +1,10 @@ |
25 |
# ChangeLog for sci-geosciences/mapserver |
26 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapserver/ChangeLog,v 1.31 2011/05/02 18:40:38 scarabeus Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapserver/ChangeLog,v 1.32 2011/05/02 19:01:42 scarabeus Exp $ |
29 |
+ |
30 |
+ 02 May 2011; Tomáš Chvátal <scarabeus@g.o> |
31 |
+ mapserver-6.0.0_rc1.ebuild: |
32 |
+ Try to support php too. Sadly it fails with gcc-4.6 |
33 |
|
34 |
02 May 2011; Tomáš Chvátal <scarabeus@g.o> |
35 |
mapserver-6.0.0_rc1.ebuild: |
36 |
|
37 |
|
38 |
|
39 |
1.5 sci-geosciences/mapserver/mapserver-6.0.0_rc1.ebuild |
40 |
|
41 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapserver/mapserver-6.0.0_rc1.ebuild?rev=1.5&view=markup |
42 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapserver/mapserver-6.0.0_rc1.ebuild?rev=1.5&content-type=text/plain |
43 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/mapserver/mapserver-6.0.0_rc1.ebuild?r1=1.4&r2=1.5 |
44 |
|
45 |
Index: mapserver-6.0.0_rc1.ebuild |
46 |
=================================================================== |
47 |
RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/mapserver/mapserver-6.0.0_rc1.ebuild,v |
48 |
retrieving revision 1.4 |
49 |
retrieving revision 1.5 |
50 |
diff -u -r1.4 -r1.5 |
51 |
--- mapserver-6.0.0_rc1.ebuild 2 May 2011 18:40:38 -0000 1.4 |
52 |
+++ mapserver-6.0.0_rc1.ebuild 2 May 2011 19:01:42 -0000 1.5 |
53 |
@@ -1,11 +1,16 @@ |
54 |
# Copyright 1999-2011 Gentoo Foundation |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
-# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapserver/mapserver-6.0.0_rc1.ebuild,v 1.4 2011/05/02 18:40:38 scarabeus Exp $ |
57 |
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapserver/mapserver-6.0.0_rc1.ebuild,v 1.5 2011/05/02 19:01:42 scarabeus Exp $ |
58 |
|
59 |
EAPI=3 |
60 |
|
61 |
MY_P="${PN}-${PV/_/-}" |
62 |
|
63 |
+PHP_EXT_NAME="php_mapscript" |
64 |
+PHP_EXT_S="${WORKDIR}/${MY_P}/mapscript/php/" |
65 |
+PHP_EXT_SKIP_PHPIZE="no" |
66 |
+USE_PHP="php5-3" |
67 |
+ |
68 |
PYTHON_DEPEND="python? *" |
69 |
SUPPORT_PYTHON_ABIS="1" |
70 |
PYTHON_MODNAME="mapscript.py" |
71 |
@@ -15,7 +20,7 @@ |
72 |
|
73 |
WEBAPP_MANUAL_SLOT=yes |
74 |
|
75 |
-inherit eutils autotools depend.apache webapp distutils perl-module # ruby-ng |
76 |
+inherit eutils autotools depend.apache webapp distutils perl-module php-ext-source-r2 # ruby-ng |
77 |
|
78 |
DESCRIPTION="OpenSource development environment for constructing spatially enabled Internet-web applications." |
79 |
HOMEPAGE="http://mapserver.org" |
80 |
@@ -25,7 +30,7 @@ |
81 |
KEYWORDS="~amd64 ~x86" |
82 |
|
83 |
# I must check for mygis use flag availability |
84 |
-IUSE="bidi cairo gdal geos gif mysql opengl perl postgis proj python threads tiff xml xslt" # ruby php tcl |
85 |
+IUSE="bidi cairo gdal geos gif mysql opengl perl php postgis proj python threads tiff xml xslt" # ruby php tcl |
86 |
|
87 |
RDEPEND=" |
88 |
dev-libs/expat |
89 |
@@ -87,7 +92,8 @@ |
90 |
} |
91 |
|
92 |
src_unpack() { |
93 |
- default |
94 |
+ # unpack A and then copy the php thingies into workdir/php-slot |
95 |
+ php-ext-source-r2_src_unpack |
96 |
} |
97 |
|
98 |
src_prepare() { |
99 |
@@ -109,7 +115,7 @@ |
100 |
fi |
101 |
|
102 |
# some scripts require configure time options so place it here |
103 |
- #use php && myopts+=" --with-php=$(${PHPCONFIG} --include-dir)" |
104 |
+ use php && myopts+=" --with-php=${EPREFIX}/usr/lib64/php5.3/include/php/" |
105 |
|
106 |
# sde is ESRI package that you have to buy first |
107 |
# oraclespatial needs oracle server for testing/usage |
108 |
@@ -148,10 +154,11 @@ |
109 |
} |
110 |
|
111 |
src_compile() { |
112 |
- default |
113 |
+ emake -j1 || die |
114 |
use python && _enter_build_dir "${S}/mapscript/python" "distutils_src_compile" |
115 |
use perl && _enter_build_dir "${S}/mapscript/perl" "perl-module_src_prep" |
116 |
use perl && _enter_build_dir "${S}/mapscript/perl" "perl-module_src_compile" |
117 |
+ use php && php-ext-source-r2_src_compile |
118 |
#use ruby && _enter_build_dir "${S}/mapscript/ruby" "ruby-ng_src_compile" |
119 |
} |
120 |
|
121 |
@@ -173,6 +180,7 @@ |
122 |
use python && _enter_build_dir "${S}/mapscript/python" "distutils_src_install" |
123 |
use perl && _enter_build_dir "${S}/mapscript/perl" "perl-module_src_install" |
124 |
use perl && _enter_build_dir "${S}/mapscript/perl" "fixlocalpod" |
125 |
+ use php && php-ext-source-r2_src_install |
126 |
#use ruby && _enter_build_dir "${S}/mapscript/ruby" "ruby-ng_src_install" |
127 |
|
128 |
webapp_src_preinst |