Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/mapserver/
Date: Sun, 14 Oct 2018 20:00:32
Message-Id: 1539547215.810e843cd8195281fe783129291d4cc94ed576b2.asturm@gentoo
1 commit: 810e843cd8195281fe783129291d4cc94ed576b2
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 14 19:53:51 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 14 20:00:15 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=810e843c
7
8 sci-geosciences/mapserver: Drop 7.0.3
9
10 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 sci-geosciences/mapserver/Manifest | 1 -
14 sci-geosciences/mapserver/mapserver-7.0.3.ebuild | 194 -----------------------
15 2 files changed, 195 deletions(-)
16
17 diff --git a/sci-geosciences/mapserver/Manifest b/sci-geosciences/mapserver/Manifest
18 index 37d855bfdbc..47f5601db65 100644
19 --- a/sci-geosciences/mapserver/Manifest
20 +++ b/sci-geosciences/mapserver/Manifest
21 @@ -1,2 +1 @@
22 -DIST mapserver-7.0.3.tar.gz 2621285 BLAKE2B b2fd9a4050ffee3bf4175971e0588ddc022f473e35c3953a098865898275ae66c2f889aef7df21231a9d9fdbecfda75490c21c67771745f0b6f18dbf11febb8e SHA512 7630461948e7b371c6d4d6d49cc596ad8fc6b076a8bbfdc88358fc076fa0d4ebaaab10663ec9c3c64e246b5735a07cef5cc28eba88b00dd09259048a49d2b81b
23 DIST mapserver-7.0.5.tar.gz 2631454 BLAKE2B 88467d7d8ae90be73d6629619410f114081588d214eea3cd1752f0f97a5d934aa8e39bc2ce6a59ab969a4ac5eb2df15b60bd78f34c18356befb490a211de830f SHA512 18485ace6e3b198e19acc3dda2ba44b136c55c4a783e472cb4c8f7a0615ed676b9bcdcaedc348227a7929d0ccf6199c90aead572bf8243e7902a5a2051a20753
24
25 diff --git a/sci-geosciences/mapserver/mapserver-7.0.3.ebuild b/sci-geosciences/mapserver/mapserver-7.0.3.ebuild
26 deleted file mode 100644
27 index 44a5419ef6a..00000000000
28 --- a/sci-geosciences/mapserver/mapserver-7.0.3.ebuild
29 +++ /dev/null
30 @@ -1,194 +0,0 @@
31 -# Copyright 1999-2016 Gentoo Foundation
32 -# Distributed under the terms of the GNU General Public License v2
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-6"
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-6 )
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 - local slot
118 - for slot in $(php_get_slots); do
119 - rm -rf "${WORKDIR}/${slot}" || die
120 - ln -s "${PHP_EXT_S}" "${WORKDIR}/${slot}" || die
121 - done
122 -}
123 -
124 -src_prepare() {
125 - local glibdir="${EPREFIX}/usr/include/glib-2.0"
126 - local usrglibdir="${EPREFIX}/usr/$(get_libdir)/glib-2.0/include"
127 -
128 - sed -e "s:^include_directories(:&${glibdir})\ninclude_directories(:" \
129 - -i "${S}/CMakeLists.txt" || die
130 - sed -e "s:include_directories(:&${usrglibdir})\ninclude_directories(:" \
131 - -i "${S}/CMakeLists.txt" || die
132 -
133 - cmake-utils_src_prepare
134 -}
135 -
136 -src_configure() {
137 - local mycmakeargs=(
138 - "-DCMAKE_SKIP_RPATH=ON"
139 - "-DWITH_ORACLESPATIAL=OFF"
140 - "-DWITH_SDE=OFF"
141 - "-DWITH_APACHE_MODULE=ON"
142 - "-DWITH_ICONV=ON"
143 - "-DWITH_GD=ON"
144 - "-DWITH_GIF=ON"
145 - "-DWITH_CURL=ON"
146 - "-DWITH_FCGI=ON"
147 - "-DINSTALL_LIB_DIR=${ROOT}usr/$(get_libdir)"
148 - "-DWITH_PROJ=$(usex proj ON OFF)"
149 - "-DWITH_WMS=$(usex proj ON OFF)"
150 - "-DWITH_KML=$(usex xml ON OFF)"
151 - "-DWITH_GEOS=$(usex geos ON OFF)"
152 - "-DWITH_GDAL=$(usex gdal ON OFF)"
153 - "-DWITH_OGR=$(usex gdal ON OFF)"
154 - "-DWITH_POSTGIS=$(usex postgis ON OFF)"
155 - "-DWITH_MYSQL=$(usex mysql ON OFF)"
156 - "-DWITH_LIBXML2=$(usex xml ON OFF)"
157 - "-DWITH_XMLMAPFILE=$(usex xslt ON OFF)"
158 - "-DWITH_FRIBIDI=$(usex bidi ON OFF)"
159 - "-DWITH_HARFBUZZ=$(usex bidi ON OFF)"
160 - "-DWITH_CAIRO=$(usex cairo ON OFF)"
161 - "-DWITH_PHP=$(usex php ON OFF)"
162 - "-DWITH_PYTHON=$(usex python ON OFF)"
163 - "-DWITH_PERL=$(usex perl ON OFF)"
164 - )
165 -
166 - if use gdal && use proj ; then
167 - mycmakeargs+=( "-DWITH_WFS=ON"
168 - "-DWITH_WCS=ON"
169 - "-DWITH_CLIENT_WMS=ON"
170 - "-DWITH_CLIENT_WFS=ON"
171 - "-DWITH_SOS=$(usex xml ON OFF)"
172 - )
173 - else
174 - mycmakeargs+=( "-DWITH_WFS=OFF"
175 - "-DWITH_WCS=OFF"
176 - "-DWITH_CLIENT_WMS=OFF"
177 - "-DWITH_CLIENT_WFS=OFF"
178 - "-DWITH_SOS=OFF"
179 - )
180 - fi
181 -
182 - if use php ; then
183 - local slot
184 - for slot in $(php_get_slots); do
185 - local php_config="${EPREFIX}/usr/$(get_libdir)/${slot}/bin/php-config"
186 - [[ -x ${php_config} ]] \
187 - || die "php-config '${php_config}' not valid or not executable"
188 -
189 - local php_include_dir=$(${php_config} --include-dir)
190 - [[ -d ${php_include_dir} ]] || die "PHP Include dir not found or not valid"
191 -
192 - mycmakeargs+=(
193 - -DPHP5_CONFIG_EXECUTABLE="${php_config}"
194 - -DPHP5_INCLUDES="${php_include_dir}"
195 - )
196 - done
197 - fi
198 -
199 - cmake-utils_src_configure
200 -}
201 -
202 -src_compile() {
203 - cmake-utils_src_compile
204 -}
205 -
206 -src_install() {
207 - cmake-utils_src_install
208 -
209 - if use php ; then
210 - php-ext-source-r2_createinifiles
211 - fi
212 - webapp_src_preinst
213 - exeinto "${MY_CGIBINDIR}"
214 - doexe "${S}_build/mapserv"
215 - webapp_src_install
216 -}
217 -
218 -pkg_postinst() {
219 - webapp_pkg_postinst
220 -}
221 -
222 -pkg_prerm() {
223 - webapp_pkg_prerm
224 -}