Gentoo Archives: gentoo-commits

From: Sam Jorna <wraeth@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/mapserver/
Date: Sun, 27 Mar 2016 12:02:21
Message-Id: 1459079880.3c1f1e58b246fa7e7cdcad0214b558d465524da3.wraeth@gentoo
1 commit: 3c1f1e58b246fa7e7cdcad0214b558d465524da3
2 Author: Sam Jorna <wraeth <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 27 11:40:10 2016 +0000
4 Commit: Sam Jorna <wraeth <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 27 11:58:00 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c1f1e58
7
8 sci-geosciences/mapserver: bump to 7.0.1
9
10 Package-Manager: portage-2.2.28
11
12 sci-geosciences/mapserver/Manifest | 1 +
13 sci-geosciences/mapserver/mapserver-7.0.1.ebuild | 174 +++++++++++++++++++++++
14 2 files changed, 175 insertions(+)
15
16 diff --git a/sci-geosciences/mapserver/Manifest b/sci-geosciences/mapserver/Manifest
17 index 735318a..918b376 100644
18 --- a/sci-geosciences/mapserver/Manifest
19 +++ b/sci-geosciences/mapserver/Manifest
20 @@ -1 +1,2 @@
21 DIST mapserver-7.0.0.tar.gz 2495028 SHA256 b306b8111e0718a577ce595640c2d3224f913745af732a1b75f6f5cb3dddce45 SHA512 1e4d15f6c42cdf0b00533e2aa26c1b65f84bdbb3a91538d6addde3aa0e8874deed4969146cf7045858bcab2880e4d7429965660c5985d175bd19ce018ae90652 WHIRLPOOL f18f0679b70da795d0585df2dbcc07fda0f8533c9ef7972280301446e5d521d9f24f0ff482d8e5497954e3b67436f2f9f2576516f6f088dc388046314817a46b
22 +DIST mapserver-7.0.1.tar.gz 2606929 SHA256 2c9567e59ae3ebd99bb645740485be6a25798b8b57f93ca3413a3e0369a1bd8f SHA512 10cf58920a3083280a748efa087f105ed2e29650d10b56b7d457c46fd7fc4670a021db1aa27186997aaa3ea1b6a5b2772f2ffc5d8de48130f5ebed654215f2df WHIRLPOOL 0ef70bd312aba706c19ebc8d324e9ac2bc72bb400cbdb539c20ca0ea383744f363425dbc2dc1b70f8e133b0e84409645505a880f2e5689345e8c7bd7c5e952d5
23
24 diff --git a/sci-geosciences/mapserver/mapserver-7.0.1.ebuild b/sci-geosciences/mapserver/mapserver-7.0.1.ebuild
25 new file mode 100644
26 index 0000000..30abc85
27 --- /dev/null
28 +++ b/sci-geosciences/mapserver/mapserver-7.0.1.ebuild
29 @@ -0,0 +1,174 @@
30 +# Copyright 1999-2016 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=5
35 +
36 +MY_P="${PN}-${PV/_/-}"
37 +
38 +PHP_EXT_OPTIONAL_USE="php"
39 +PHP_EXT_NAME="php_mapscript"
40 +PHP_EXT_S="${WORKDIR}/${MY_P}/mapscript/php/"
41 +PHP_EXT_SKIP_PHPIZE="no"
42 +USE_PHP="php5-4 php5-5"
43 +
44 +PYTHON_COMPAT=( python2_7 )
45 +
46 +#USE_RUBY="ruby18 ruby19"
47 +#RUBY_OPTIONAL="yes"
48 +
49 +WEBAPP_MANUAL_SLOT=yes
50 +
51 +inherit eutils depend.apache webapp distutils-r1 flag-o-matic perl-module php-ext-source-r2 multilib cmake-utils # ruby-ng
52 +
53 +DESCRIPTION="Development environment for building spatially enabled webapps"
54 +HOMEPAGE="http://mapserver.org/"
55 +SRC_URI="http://download.osgeo.org/mapserver/${MY_P}.tar.gz"
56 +
57 +LICENSE="MIT"
58 +KEYWORDS="~amd64 ~x86"
59 +SLOT="0"
60 +IUSE="bidi cairo gdal geos mysql opengl perl php postgis proj python threads tiff xml xslt" # ruby php tcl
61 +
62 +REQUIRED_USE="php? ( ^^ ( php_targets_php5-4 php_targets_php5-5 ) )
63 + xslt? ( xml )"
64 +
65 +RDEPEND="
66 + dev-libs/expat
67 + dev-libs/fcgi
68 + >=media-libs/gd-2.0.12[truetype,jpeg,png,zlib]
69 + media-libs/giflib
70 + net-misc/curl
71 + virtual/jpeg:=
72 + virtual/libiconv
73 + x11-libs/agg
74 + bidi? ( dev-libs/fribidi
75 + media-libs/harfbuzz )
76 + cairo? ( x11-libs/cairo )
77 + gdal? ( >=sci-libs/gdal-1.8.0 )
78 + geos? ( sci-libs/geos )
79 + mysql? ( virtual/mysql )
80 + opengl? (
81 + media-libs/ftgl
82 + media-libs/mesa
83 + )
84 + perl? ( dev-lang/perl:= )
85 + postgis? ( dev-db/postgis )
86 + proj? ( sci-libs/proj net-misc/curl )
87 + tiff? (
88 + media-libs/tiff:=
89 + sci-libs/libgeotiff
90 + )
91 + xml? ( dev-libs/libxml2:2 )
92 + xslt? ( dev-libs/libxslt[crypt] )
93 +"
94 +DEPEND="${RDEPEND}
95 + perl? ( >=dev-lang/swig-2.0 )
96 + python? ( >=dev-lang/swig-2.0 )"
97 +
98 +need_apache2
99 +
100 +PATCHES=(
101 + "${FILESDIR}/${PN}-7.0.0-sec-format.patch" # see https://github.com/mapserver/mapserver/pull/5248
102 + "${FILESDIR}/${PN}-7.0.0-no-applicable-code.patch"
103 +)
104 +
105 +S=${WORKDIR}/${MY_P}
106 +
107 +pkg_setup() {
108 + webapp_pkg_setup
109 + use perl && perl_set_version
110 + #use ruby && ruby-ng_pkg_setup
111 +}
112 +
113 +src_unpack() {
114 + # unpack A and then copy the php thingies into workdir/php-slot
115 + php-ext-source-r2_src_unpack
116 + # HACK: and then remove it and replace by symlink
117 + for slot in $(php_get_slots); do
118 + rm -rf "${WORKDIR}/${slot}" || die
119 + ln -s "${PHP_EXT_S}" "${WORKDIR}/${slot}" || die
120 + done
121 +}
122 +
123 +src_prepare() {
124 + local glibdir="${EPREFIX}/usr/include/glib-2.0"
125 + local usrglibdir="${EPREFIX}/usr/$(get_libdir)/glib-2.0/include"
126 +
127 + sed -e "s:^include_directories(:&${glibdir})\ninclude_directories(:" \
128 + -i "${S}/CMakeLists.txt" || die
129 + sed -e "s:include_directories(:&${usrglibdir})\ninclude_directories(:" \
130 + -i "${S}/CMakeLists.txt" || die
131 +
132 + cmake-utils_src_prepare
133 +}
134 +
135 +src_configure() {
136 + local mycmakeargs=(
137 + "-DCMAKE_SKIP_RPATH=ON"
138 + "-DWITH_ORACLESPATIAL=OFF"
139 + "-DWITH_SDE=OFF"
140 + "-DWITH_APACHE_MODULE=ON"
141 + "-DWITH_ICONV=ON"
142 + "-DWITH_GD=ON"
143 + "-DWITH_GIF=ON"
144 + "-DWITH_CURL=ON"
145 + "-DWITH_FCGI=ON"
146 + "-DINSTALL_LIB_DIR=$(get_libdir)"
147 + "-DWITH_PROJ=$(usex proj ON OFF)"
148 + "-DWITH_WMS=$(usex proj ON OFF)"
149 + "-DWITH_KML=$(usex xml ON OFF)"
150 + "-DWITH_GEOS=$(usex geos ON OFF)"
151 + "-DWITH_GDAL=$(usex gdal ON OFF)"
152 + "-DWITH_OGR=$(usex gdal ON OFF)"
153 + "-DWITH_POSTGIS=$(usex postgis ON OFF)"
154 + "-DWITH_MYSQL=$(usex mysql ON OFF)"
155 + "-DWITH_LIBXML2=$(usex xml ON OFF)"
156 + "-DWITH_XMLMAPFILE=$(usex xslt ON OFF)"
157 + "-DWITH_FRIBIDI=$(usex bidi ON OFF)"
158 + "-DWITH_HARFBUZZ=$(usex bidi ON OFF)"
159 + "-DWITH_CAIRO=$(usex cairo ON OFF)"
160 + "-DWITH_PHP=$(usex php ON OFF)"
161 + "-DWITH_PYTHON=$(usex python ON OFF)"
162 + "-DWITH_PERL=$(usex perl ON OFF)"
163 + )
164 +
165 + if use gdal && use proj ; then
166 + mycmakeargs+=( "-DWITH_WFS=ON"
167 + "-DWITH_WCS=ON"
168 + "-DWITH_CLIENT_WMS=ON"
169 + "-DWITH_CLIENT_WFS=ON"
170 + "-DWITH_SOS=$(usex xml ON OFF)"
171 + )
172 + else
173 + mycmakeargs+=( "-DWITH_WFS=OFF"
174 + "-DWITH_WCS=OFF"
175 + "-DWITH_CLIENT_WMS=OFF"
176 + "-DWITH_CLIENT_WFS=OFF"
177 + "-DWITH_SOS=OFF"
178 + )
179 + fi
180 +
181 + cmake-utils_src_configure
182 +}
183 +
184 +src_compile() {
185 + cmake-utils_src_compile
186 +}
187 +
188 +src_install() {
189 + cmake-utils_src_install
190 +
191 + webapp_src_preinst
192 + exeinto "${MY_CGIBINDIR}"
193 + doexe "${S}_build/mapserv"
194 + webapp_src_install
195 +}
196 +
197 +pkg_postinst() {
198 + webapp_pkg_postinst
199 +}
200 +
201 +pkg_prerm() {
202 + webapp_pkg_prerm
203 +}