Skip to content

Commit

Permalink
app-text/mandoc: wire up tests
Browse files Browse the repository at this point in the history
Bug: https://bugs.gentoo.org/908743
Signed-off-by: Matoro Mahri <[email protected]>
Closes: gentoo#31668
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
matoro authored and thesamesam committed Jul 9, 2023
1 parent 8ad83bb commit ee48238
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app-text/mandoc/mandoc-1.14.6.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand All @@ -22,6 +23,7 @@ DEPEND="${RDEPEND}
"
BDEPEND="
cgi? ( app-text/highlight )
test? ( dev-lang/perl )
"
RDEPEND+=" selinux? ( sec-policy/selinux-makewhatis )"

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ee48238

Please sign in to comment.