[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / textproc / ruby-xapian

File: [cvs.NetBSD.org] / pkgsrc / textproc / ruby-xapian / Makefile (download)

Revision 1.4, Tue Aug 27 21:54:22 2019 UTC (16 months, 4 weeks ago) by schmonz
Branch: MAIN
Changes since 1.3: +18 -1 lines

Match PLIST to reality. Tested on macOS with ruby 22, 24, 25, 26.
While here, actually do REPLACE_RUBY. Bump PKGREVISION.

# $NetBSD: Makefile,v 1.4 2019/08/27 21:54:22 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

RUBY_VERSIONS_ACCEPTED=	22 24 25 26

PLIST_VARS+=		oldruby newruby
PLIST_SUBST+=		XAPIAN_RDOC_PATH=${XAPIAN_RDOC_PATH:Q}

.include "../../lang/ruby/rubyversion.mk"

.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"