commit:     ee4823852ddac938004852416e907069beb8cdc3
Author:     Matoro Mahri <matoro <AT> users <DOT> noreply <DOT> github <DOT> 
com>
AuthorDate: Thu Jun 29 16:11:41 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jul  9 04:46:52 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee482385

app-text/mandoc: wire up tests

Bug: https://bugs.gentoo.org/908743
Signed-off-by: Matoro Mahri <matoro <AT> users.noreply.github.com>
Closes: https://github.com/gentoo/gentoo/pull/31668
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-text/mandoc/mandoc-1.14.6.ebuild | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/app-text/mandoc/mandoc-1.14.6.ebuild 
b/app-text/mandoc/mandoc-1.14.6.ebuild
index 9af875d1eed0..a4127ae75473 100644
--- a/app-text/mandoc/mandoc-1.14.6.ebuild
+++ b/app-text/mandoc/mandoc-1.14.6.ebuild
@@ -12,7 +12,8 @@ SRC_URI="https://mdocml.bsd.lv/snapshots/${P}.tar.gz";
 LICENSE="ISC"
 SLOT="0"
 KEYWORDS="amd64 arm arm64 ~hppa ~ia64 ~loong ~ppc ppc64 ~riscv ~s390 ~sparc 
x86"
-IUSE="cgi selinux system-man"
+IUSE="cgi selinux system-man test"
+RESTRICT="!test? ( test )"
 
 RDEPEND="sys-libs/zlib
        system-man? ( !sys-apps/man-db )
@@ -22,6 +23,7 @@ DEPEND="${RDEPEND}
 "
 BDEPEND="
        cgi? ( app-text/highlight )
+       test? ( dev-lang/perl )
 "
 RDEPEND+=" selinux? ( sec-policy/selinux-makewhatis )"
 
@@ -107,6 +109,10 @@ src_compile() {
        use cgi && emake man.cgi
 }
 
+src_test() {
+       emake regress
+}
+
 src_install() {
        emake DESTDIR="${D}" install
        use cgi && emake DESTDIR="${D}" cgi-install www-install

Reply via email to