From 3ddaed56d526016174d10df44d2e64a105c3330a Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Sat, 31 Aug 2019 07:58:03 +0000 Subject: [PATCH] Fix build with Ruby 2.6 PR: 240162 Submitted by: mfechner --- databases/ruby-xapian/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/databases/ruby-xapian/Makefile b/databases/ruby-xapian/Makefile index c1c2d98a47fe..12d703ff5566 100644 --- a/databases/ruby-xapian/Makefile +++ b/databases/ruby-xapian/Makefile @@ -50,4 +50,10 @@ PORTDOCS= * post-patch: @${REINPLACE_CMD} -e 's|-lstdc++||g' ${WRKSRC}/configure -.include +.include + +.if ${RUBY_VER} >= 2.6 +BUILD_DEPENDS+= rubygem-rdoc>=0:devel/rubygem-rdoc +.endif + +.include