pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/ruby-xapian Match PLIST to reality. Tested on...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8f55dd0eb370
branches: trunk
changeset: 400438:8f55dd0eb370
user: schmonz <schmonz%pkgsrc.org@localhost>
date: Tue Aug 27 21:54:22 2019 +0000
description:
Match PLIST to reality. Tested on macOS with ruby 22, 24, 25, 26.
While here, actually do REPLACE_RUBY. Bump PKGREVISION.
diffstat:
textproc/ruby-xapian/Makefile | 19 ++++++++++++++++++-
textproc/ruby-xapian/PLIST | 35 ++++++++++++++++++-----------------
2 files changed, 36 insertions(+), 18 deletions(-)
diffs (90 lines):
diff -r 3d1db9cb393e -r 8f55dd0eb370 textproc/ruby-xapian/Makefile
--- a/textproc/ruby-xapian/Makefile Tue Aug 27 21:33:55 2019 +0000
+++ b/textproc/ruby-xapian/Makefile Tue Aug 27 21:54:22 2019 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2018/07/06 16:23:12 schmonz Exp $
+# $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/
@@ -10,9 +11,25 @@
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"
diff -r 3d1db9cb393e -r 8f55dd0eb370 textproc/ruby-xapian/PLIST
--- a/textproc/ruby-xapian/PLIST Tue Aug 27 21:33:55 2019 +0000
+++ b/textproc/ruby-xapian/PLIST Tue Aug 27 21:54:22 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2019/08/02 21:28:53 schmonz Exp $
+@comment $NetBSD: PLIST,v 1.4 2019/08/27 21:54:22 schmonz Exp $
${RUBY_SITEARCHLIB}/_xapian.a
${RUBY_SITEARCHLIB}/_xapian.${RUBY_DLEXT}
${RUBY_SITELIB}/xapian.rb
@@ -8,25 +8,26 @@
share/doc/xapian-bindings/${RUBY_PKGPREFIX}/examples/simplesearch.rb
share/doc/xapian-bindings/${RUBY_PKGPREFIX}/index.html
share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/Xapian.html
+${PLIST.oldruby}share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/Xapian/Xapian.html
share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/Xapian/LatLongCoord.html
share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/Xapian/MultiValueKeyMaker.html
share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/Xapian/MultiValueKeyMaker/KeySpec.html
-share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/Xapian/Xapian.html
-share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/Xapian/Xapian/Database.html
-share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/Xapian/Xapian/Document.html
-share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/Xapian/Xapian/ESet.html
-share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/Xapian/Xapian/Enquire.html
-share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/Xapian/Xapian/ExpandTerm.html
-share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/Xapian/Xapian/LatLongCoords.html
-share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/Xapian/Xapian/MSet.html
-share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/Xapian/Xapian/Match.html
-share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/Xapian/Xapian/Posting.html
-share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/Xapian/Xapian/Query.html
-share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/Xapian/Xapian/QueryParser.html
-share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/Xapian/Xapian/Value.html
-share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/Xapian/Xapian/ValueCountMatchSpy.html
-share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/Xapian/Xapian/Xapian.html
-share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/Xapian/Xapian/Xapian/Term.html
+share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/${XAPIAN_RDOC_PATH}/Database.html
+share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/${XAPIAN_RDOC_PATH}/Document.html
+share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/${XAPIAN_RDOC_PATH}/ESet.html
+share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/${XAPIAN_RDOC_PATH}/Enquire.html
+share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/${XAPIAN_RDOC_PATH}/ExpandTerm.html
+share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/${XAPIAN_RDOC_PATH}/LatLongCoords.html
+share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/${XAPIAN_RDOC_PATH}/MSet.html
+share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/${XAPIAN_RDOC_PATH}/Match.html
+share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/${XAPIAN_RDOC_PATH}/Posting.html
+share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/${XAPIAN_RDOC_PATH}/Query.html
+share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/${XAPIAN_RDOC_PATH}/QueryParser.html
+${PLIST.oldruby}share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/Xapian/Xapian/Xapian.html
+${PLIST.oldruby}share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/Xapian/Xapian/Xapian/Term.html
+${PLIST.newruby}share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/Xapian/Term.html
+share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/${XAPIAN_RDOC_PATH}/Value.html
+share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/${XAPIAN_RDOC_PATH}/ValueCountMatchSpy.html
share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/created.rid
share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/css/fonts.css
share/doc/xapian-bindings/${RUBY_PKGPREFIX}/rdocs/css/rdoc.css
Home |
Main Index |
Thread Index |
Old Index