public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/mapserver/
Date: Sat, 23 Nov 2024 15:49:49 +0000 (UTC)	[thread overview]
Message-ID: <1732376967.c0a2507760c429b84384757fb317200bfba0ec46.sam@gentoo> (raw)

commit:     c0a2507760c429b84384757fb317200bfba0ec46
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 23 15:48:44 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Nov 23 15:49:27 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0a25077

sci-geosciences/mapserver: misc tweaks

* Wire up tests
* Disable building fuzzing harness/reproducers

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-geosciences/mapserver/mapserver-8.2.2.ebuild | 24 ++++++++++--------------
 1 file changed, 10 insertions(+), 14 deletions(-)

diff --git a/sci-geosciences/mapserver/mapserver-8.2.2.ebuild b/sci-geosciences/mapserver/mapserver-8.2.2.ebuild
index 91d7c76780a7..bcfb04e9da81 100644
--- a/sci-geosciences/mapserver/mapserver-8.2.2.ebuild
+++ b/sci-geosciences/mapserver/mapserver-8.2.2.ebuild
@@ -19,22 +19,10 @@ SRC_URI="https://download.osgeo.org/mapserver/${P}.tar.gz"
 LICENSE="Boost-1.0 BSD BSD-2 ISC MIT tcltk"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-
 # NOTE: opengl removed for now as no support for it in upstream CMake
-IUSE="apache bidi cairo geos java mysql oracle perl postgis python"
-
+IUSE="apache bidi cairo geos java mysql oracle perl postgis python test"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-
-# Tests:
-# Included tests (tests/*) are seriously outdated
-# Upstream's main test suite (msautotest/*) is not in the release tarball,
-# and upstream sets 'export-ignore' for that directory.
-#
-# The eclasses used normally try to run test suites themselves,
-# or skip if nothing was found.
-# However, because of the python-r1 eclass usage, this fails and would
-# cause errors running non-existent tests, so we have to restrict here.
-RESTRICT="test"
+RESTRICT="!test? ( test )"
 
 RDEPEND="
 	>=dev-libs/expat-2.2.8
@@ -136,6 +124,8 @@ src_configure() {
 	# and reliant on defaults not changing.
 	# Readability and maintainability is better this way.
 	local mycmakeargs=(
+		"-DBUILD_TESTING=$(usex test)"
+		"-DBUILD_FUZZER_REPRODUCER=OFF"
 		"-DCMAKE_SKIP_RPATH=ON"
 		"-DINSTALL_LIB_DIR=/usr/$(get_libdir)"
 		"-DCMAKE_INSTALL_SYSCONFDIR=/usr/share/${PN}"
@@ -193,6 +183,12 @@ src_compile() {
 	fi
 }
 
+src_test() {
+	local -x LD_LIBRARY_PATH="${BUILD_DIR}:${LD_LIBRARY_PATH}"
+
+	cmake_src_test
+}
+
 src_install() {
 	# Needs to be first
 	use apache && webapp_src_preinst


             reply	other threads:[~2024-11-23 15:49 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-23 15:49 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-23 15:49 [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/mapserver/ Sam James
2024-08-30 14:41 Andreas Sturmlechner
2024-07-30 21:13 Pacho Ramos
2023-05-13  0:06 Sam James
2022-04-29  3:07 Sam James
2022-01-31 14:17 Andrew Ammerlaan
2021-10-20  4:40 Sam James
2021-10-17  0:57 Sam James
2021-03-09 22:33 Sam James
2021-01-02  6:47 Sam James
2020-07-09  0:32 Sam James
2019-05-26  8:54 Amy Liffey
2019-02-21 10:29 Andreas Sturmlechner
2018-10-14 20:00 Andreas Sturmlechner
2018-03-22  1:29 Brian Evans
2016-12-17 23:10 Sam Jorna
2016-07-13 20:30 Brian Evans
2016-03-27 12:02 Sam Jorna
2016-02-27 12:22 Amy Winston

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1732376967.c0a2507760c429b84384757fb317200bfba0ec46.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox