# $NetBSD: Makefile,v 1.6 2019/08/30 01:34:01 schmonz Exp $ PKGNAME= ${RUBY_PKGPREFIX}-${PKGNAME_MODULE} PKGREVISION= 1 COMMENT= Ruby bindings for Xapian search engine HOMEPAGE= https://xapian.org/docs/bindings/ruby/ CONFIGURE_ARGS+= --with-ruby CONFIGURE_ENV+= RDOC=${RDOC:Q} MAKE_ENV+= RUBY_PKGPREFIX=${RUBY_PKGPREFIX:Q} REPLACE_RUBY= ruby/docs/examples/*.rb PLIST_VARS+= jquery oldruby newruby PLIST_SUBST+= XAPIAN_RDOC_PATH=${XAPIAN_RDOC_PATH:Q} .include "../../lang/ruby/rubyversion.mk" .if ${RUBY_VER} == 25 PLIST.jquery= yes .endif .if ${RUBY_VER} < 25 PLIST.oldruby= yes XAPIAN_RDOC_PATH= Xapian/Xapian .else PLIST.newruby= yes XAPIAN_RDOC_PATH= Xapian .endif post-install: ${CHMOD} +x ${DESTDIR}${PREFIX}/share/doc/xapian-bindings/${RUBY_PKGPREFIX}/examples/*.rb .include "../../lang/ruby/buildlink3.mk" .include "../../lang/ruby/replace.mk" .include "../../textproc/xapian/module.mk" .include "../../mk/bsd.pkg.mk"