pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Attempt to allow install with multiple Rubies.



Module Name:	pkgsrc-wip
Committed By:	Amitai Schleier <schmonz%NetBSD.org@localhost>
Pushed By:	schmonz
Date:		Thu Aug 17 15:46:38 2017 +0200
Changeset:	0674e491c8f080ea929f33abba1fa96e15e17098

Modified Files:
	ruby-mustache/Makefile
	ruby-mustache/PLIST

Log Message:
Attempt to allow install with multiple Rubies.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=0674e491c8f080ea929f33abba1fa96e15e17098

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 ruby-mustache/Makefile | 6 ++++--
 ruby-mustache/PLIST    | 6 +++---
 2 files changed, 7 insertions(+), 5 deletions(-)

diffs:
diff --git a/ruby-mustache/Makefile b/ruby-mustache/Makefile
index 481db7da10..94cdcf2da9 100644
--- a/ruby-mustache/Makefile
+++ b/ruby-mustache/Makefile
@@ -9,11 +9,13 @@ HOMEPAGE=		https://mustache.github.io/
 COMMENT=		Logic-less Ruby templates
 LICENSE=		mit
 
+RUBYGEM_OPTIONS+=	--format-executable
+
 INSTALLATION_DIRS+=	${PKGMANDIR}/man1 ${PKGMANDIR}/man5
 
 post-install:
-	${LN} -sf ${PREFIX}/${GEM_LIBDIR}/man/mustache.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/mustache.1
-	${LN} -sf ${PREFIX}/${GEM_LIBDIR}/man/mustache.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5/mustache.5
+	${LN} -sf ${PREFIX}/${GEM_LIBDIR}/man/mustache.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${RUBY_PKGPREFIX}-mustache.1
+	${LN} -sf ${PREFIX}/${GEM_LIBDIR}/man/mustache.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5/${RUBY_PKGPREFIX}-mustache.5
 
 .include "../../lang/ruby/gem.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/ruby-mustache/PLIST b/ruby-mustache/PLIST
index 6b417322ce..14dc354536 100644
--- a/ruby-mustache/PLIST
+++ b/ruby-mustache/PLIST
@@ -1,5 +1,5 @@
 @comment $NetBSD: PLIST,v 1.1 2015/04/25 21:58:18 ahp-nils Exp $
-bin/mustache
+bin/mustache${RUBY_SUFFIX}
 ${GEM_HOME}/cache/${GEM_NAME}.gem
 ${GEM_LIBDIR}/LICENSE
 ${GEM_LIBDIR}/README.md
@@ -73,6 +73,6 @@ ${GEM_LIBDIR}/test/partial_test.rb
 ${GEM_LIBDIR}/test/spec_test.rb
 ${GEM_LIBDIR}/test/template_test.rb
 ${GEM_HOME}/specifications/${GEM_NAME}.gemspec
-man/man1/mustache.1
-man/man5/mustache.5
+man/man1/${RUBY_PKGPREFIX}-mustache.1
+man/man5/${RUBY_PKGPREFIX}-mustache.5
 @pkgdir lib/ruby/gems/2.0.0/build_info


Home | Main Index | Thread Index | Old Index