devel/ruby-setup.rb: convert to USES=shebangfix
This commit is contained in:
parent
5120a1e4e8
commit
8b1cba8fa7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=413904
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= setup.rb
|
||||
PORTVERSION= 3.4.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel ruby
|
||||
MASTER_SITES= http://www.loveruby.net/archive/${PORTNAME:R}/
|
||||
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
||||
@ -18,8 +19,6 @@ NO_BUILD= yes
|
||||
|
||||
_SCRIPTS= setup.rb
|
||||
|
||||
RUBY_SHEBANG_FILES= ${_SCRIPTS:S:^:${WRKSRC}/ruby-:}
|
||||
|
||||
DOCS_EN= doc.en/* NEWS.en Usage_en.txt README.en ChangeLog TODO
|
||||
DOCS_JA= doc.ja/* NEWS.ja Usage_ja.txt README.ja
|
||||
|
||||
@ -30,6 +29,10 @@ post-extract:
|
||||
${CP} -p ${WRKSRC}/${f} ${WRKSRC}/ruby-${f}
|
||||
.endfor
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} 's!%%LOCALBASE%%!${LOCALBASE}!g' \
|
||||
${WRKSRC}/ruby-setup.rb
|
||||
|
||||
do-install:
|
||||
.for f in ${_SCRIPTS}
|
||||
${MKDIR} ${STAGEDIR}${RUBY_SITELIBDIR}
|
||||
|
7
devel/ruby-setup.rb/files/patch-ruby-setup.rb
Normal file
7
devel/ruby-setup.rb/files/patch-ruby-setup.rb
Normal file
@ -0,0 +1,7 @@
|
||||
--- ruby-setup.rb.orig 2016-04-23 14:48:02 UTC
|
||||
+++ ruby-setup.rb
|
||||
@@ -1,3 +1,4 @@
|
||||
+#!%%LOCALBASE%%/bin/ruby
|
||||
#
|
||||
# setup.rb
|
||||
#
|
Loading…
Reference in New Issue
Block a user