diff options
author | Sam James <sam@gentoo.org> | 2021-03-09 22:32:34 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-03-09 22:33:09 +0000 |
commit | f2ae830cc5e16dc6079dbbaf546047a4a936f751 (patch) | |
tree | 9d513f38688cffa0618982255d530d88ffe49532 /sci-geosciences | |
parent | sci-libs/gdal: update older patch metadata (diff) | |
download | gentoo-f2ae830cc5e16dc6079dbbaf546047a4a936f751.tar.gz gentoo-f2ae830cc5e16dc6079dbbaf546047a4a936f751.tar.bz2 gentoo-f2ae830cc5e16dc6079dbbaf546047a4a936f751.zip |
sci-geosciences/mapserver: update EAPI 6 -> 7, proj 8 patch
* Port from EAPI 6 to 7 now that depend.apache supports it
* Add a simple PROJ 8 patch to detect its presence
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-geosciences')
-rw-r--r-- | sci-geosciences/mapserver/files/mapserver-7.6.2-proj8.patch | 19 | ||||
-rw-r--r-- | sci-geosciences/mapserver/mapserver-7.6.2.ebuild | 36 |
2 files changed, 37 insertions, 18 deletions
diff --git a/sci-geosciences/mapserver/files/mapserver-7.6.2-proj8.patch b/sci-geosciences/mapserver/files/mapserver-7.6.2-proj8.patch new file mode 100644 index 000000000000..24a5066c01c9 --- /dev/null +++ b/sci-geosciences/mapserver/files/mapserver-7.6.2-proj8.patch @@ -0,0 +1,19 @@ +https://github.com/MapServer/MapServer/issues/6249 + +From e56a020789c024f985c61e49d66f3eb92d350232 Mon Sep 17 00:00:00 2001 +From: Even Rouault <even.rouault@spatialys.com> +Date: Mon, 8 Mar 2021 15:19:50 +0100 +Subject: [PATCH] FindProj.cmake: allow finding PROJ 8 that has no longer + proj_api.h (fixes #6249) + +--- a/cmake/FindProj.cmake ++++ b/cmake/FindProj.cmake +@@ -6,7 +6,7 @@ + # PROJ_LIBRARY + + +-FIND_PATH(PROJ_INCLUDE_DIR proj_api.h) ++FIND_PATH(PROJ_INCLUDE_DIR NAMES proj.h proj_api.h) + + FIND_LIBRARY(PROJ_LIBRARY NAMES proj proj_i) + diff --git a/sci-geosciences/mapserver/mapserver-7.6.2.ebuild b/sci-geosciences/mapserver/mapserver-7.6.2.ebuild index 1c0f539edc56..0e9c7aabc652 100644 --- a/sci-geosciences/mapserver/mapserver-7.6.2.ebuild +++ b/sci-geosciences/mapserver/mapserver-7.6.2.ebuild @@ -1,9 +1,7 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -# NOTE: We have to stick with EAPI 6 for now because of the -# depend.apache eclass. -EAPI=6 +EAPI=7 # Variables for the miscellaneous bindings we provide PHP_EXT_OPTIONAL_USE="php" @@ -16,8 +14,7 @@ PYTHON_COMPAT=( python3_{7,8,9} ) WEBAPP_MANUAL_SLOT=yes WEBAPP_OPTIONAL=yes -# NOTE: Similarly, we cannot go cmake-utils -> cmake until we're on EAPI 7 -inherit cmake-utils depend.apache eapi7-ver perl-functions php-ext-source-r3 python-r1 webapp +inherit cmake depend.apache perl-functions php-ext-source-r3 python-r1 webapp DESCRIPTION="Development environment for building spatially enabled webapps" HOMEPAGE="https://mapserver.org/" @@ -77,9 +74,8 @@ RDEPEND=" ) python? ( ${PYTHON_DEPS} ) " - -DEPEND=" - ${RDEPEND} +DEPEND="${RDEPEND}" +BDEPEND=" virtual/pkgconfig perl? ( >=dev-lang/swig-4.0 ) php? ( >=dev-lang/swig-4.0 ) @@ -89,6 +85,10 @@ DEPEND=" ) " +PATCHES=( + "${FILESDIR}"/${P}-proj8.patch +) + want_apache2 apache pkg_setup() { @@ -97,7 +97,7 @@ pkg_setup() { } src_prepare() { - cmake-utils_src_prepare + cmake_src_prepare use php && php-ext-source-r3_src_prepare use python && python_copy_sources @@ -163,7 +163,7 @@ src_configure() { use perl && mycmakeargs+=( "-DCUSTOM_PERL_SITE_ARCH_DIR=$(perl_get_raw_vendorlib)" ) # Configure the standard build first - cmake-utils_src_configure + cmake_src_configure # Minimal build for bindings # Note that we use _generate_cmake_args to get a clean config each time, then add @@ -174,7 +174,7 @@ src_configure() { "-DWITH_PYTHON=ON" ) - python_foreach_impl cmake-utils_src_configure + python_foreach_impl cmake_src_configure python_foreach_impl python_optimize fi @@ -193,7 +193,7 @@ src_configure() { "-DPHP_INCLUDES=${PHPPREFIX}" ) - BUILD_DIR="${S}/php${slot}" cmake-utils_src_configure + BUILD_DIR="${S}/php${slot}" cmake_src_configure # Return to where we left off, in case we add more # to this phase. @@ -203,10 +203,10 @@ src_configure() { } src_compile() { - cmake-utils_src_compile + cmake_src_compile if use python ; then - python_foreach_impl cmake-utils_src_compile + python_foreach_impl cmake_src_compile fi if use php ; then @@ -216,7 +216,7 @@ src_compile() { php_init_slot_env "${slot}" # Force cmake to build in it - BUILD_DIR="${S}/php${slot}" cmake-utils_src_compile + BUILD_DIR="${S}/php${slot}" cmake_src_compile # Return to where we left off, in case we add more # to this phase. @@ -230,7 +230,7 @@ src_install() { use apache && webapp_src_preinst if use python ; then - python_foreach_impl cmake-utils_src_install + python_foreach_impl cmake_src_install python_foreach_impl python_optimize fi @@ -241,14 +241,14 @@ src_install() { for slot in $(php_get_slots) ; do php_init_slot_env "${slot}" - BUILD_DIR="${S}/php${slot}" cmake-utils_src_install + BUILD_DIR="${S}/php${slot}" cmake_src_install cd "${S}" || die done fi # Install this last because this build is the most "fully-featured" - cmake-utils_src_install + cmake_src_install if use apache ; then # We need a mapserver symlink available in cgi-bin |