From 4d71379b60f606728c52286c82391d6488f75087 Mon Sep 17 00:00:00 2001 From: taca Date: Mon, 8 Jun 2015 16:02:54 +0000 Subject: * Allow this package build on Ruby 2.2. * Add support for pkg_alternatives. Bump PKGREVISION. --- print/ruby-pdf-reader/ALTERNATIVES | 4 ++++ print/ruby-pdf-reader/Makefile | 7 ++++--- print/ruby-pdf-reader/PLIST | 10 +++++----- 3 files changed, 13 insertions(+), 8 deletions(-) create mode 100644 print/ruby-pdf-reader/ALTERNATIVES (limited to 'print') diff --git a/print/ruby-pdf-reader/ALTERNATIVES b/print/ruby-pdf-reader/ALTERNATIVES new file mode 100644 index 00000000000..877baea99d1 --- /dev/null +++ b/print/ruby-pdf-reader/ALTERNATIVES @@ -0,0 +1,4 @@ +bin/pdf_callbacks @PREFIX@/@RUBY_SUFFIX@ +bin/pdf_list_callbacks @PREFIX@/bin/pdf_list_callbacks@RUBY_SUFFIX@ +bin/pdf_object @PREFIX@/bin/pdf_object@RUBY_SUFFIX@ +bin/pdf_text @PREFIX@/bin/pdf_text@RUBY_SUFFIX@ diff --git a/print/ruby-pdf-reader/Makefile b/print/ruby-pdf-reader/Makefile index b40df8d7287..f43d6ceaebc 100644 --- a/print/ruby-pdf-reader/Makefile +++ b/print/ruby-pdf-reader/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.12 2014/04/17 20:26:07 joerg Exp $ +# $NetBSD: Makefile,v 1.13 2015/06/08 16:02:54 taca Exp $ DISTNAME= pdf-reader-1.3.3 +PKGREVISION= 1 CATEGORIES= print MAINTAINER= pkgsrc-users@NetBSD.org @@ -14,9 +15,9 @@ DEPENDS+= ${RUBY_PKGPREFIX}-hashery>=2.0<3:../../devel/ruby-hashery DEPENDS+= ${RUBY_PKGPREFIX}-afm>=0.2.0<0.3:../../fonts/ruby-afm DEPENDS+= ${RUBY_PKGPREFIX}-ttfunk>=0:../../fonts/ruby-ttfunk -CONFLICTS+= ruby[1-9][0-9][0-9]-pdf-reader-[0-9]* +USE_LANGUAGES= # none -RUBY_VERSION_SUPPORTED= 200 193 21 +RUBYGEM_OPTIONS+= --format-executable .include "../../lang/ruby/gem.mk" .include "../../mk/bsd.pkg.mk" diff --git a/print/ruby-pdf-reader/PLIST b/print/ruby-pdf-reader/PLIST index f138469bb6d..afcf02812be 100644 --- a/print/ruby-pdf-reader/PLIST +++ b/print/ruby-pdf-reader/PLIST @@ -1,8 +1,8 @@ -@comment $NetBSD: PLIST,v 1.5 2013/02/11 08:58:51 taca Exp $ -bin/pdf_callbacks -bin/pdf_list_callbacks -bin/pdf_object -bin/pdf_text +@comment $NetBSD: PLIST,v 1.6 2015/06/08 16:02:54 taca Exp $ +bin/pdf_callbacks${RUBY_SUFFIX} +bin/pdf_list_callbacks${RUBY_SUFFIX} +bin/pdf_object${RUBY_SUFFIX} +bin/pdf_text${RUBY_SUFFIX} ${GEM_HOME}/cache/${GEM_NAME}.gem ${GEM_LIBDIR}/CHANGELOG ${GEM_LIBDIR}/MIT-LICENSE -- cgit v1.2.3