svn commit: r414034 - head/Mk
Steve Wills
swills at FreeBSD.org
Mon Apr 25 23:12:05 UTC 2016
Author: swills
Date: Mon Apr 25 23:12:04 2016
New Revision: 414034
URL: https://svnweb.freebsd.org/changeset/ports/414034
Log:
remove RUBY_SHEBANG_FILES since USES=shebangfix does the same
PR: 209051
Modified:
head/Mk/bsd.ruby.mk
Modified: head/Mk/bsd.ruby.mk
==============================================================================
--- head/Mk/bsd.ruby.mk Mon Apr 25 22:46:29 2016 (r414033)
+++ head/Mk/bsd.ruby.mk Mon Apr 25 23:12:04 2016 (r414034)
@@ -52,7 +52,6 @@ Ruby_Include_MAINTAINER= ruby at FreeBSD.or
# expression will be set to RUBY_PROVIDED, which is
# left undefined if the result is nil, false or a
# zero-length string. Implies USE_RUBY.
-# RUBY_SHEBANG_FILES - Specify the files which shebang lines you want to fix.
# RUBY_RD_FILES - Specify the RD files which you want to generate HTML
# documents from. If this is defined and not empty,
# USE_RUBY_RDTOOL is implied and RUBY_RD_HTML_FILES is
@@ -388,37 +387,6 @@ RUBY_PROVIDED= "should be" # the latest
.endif
.endif
-# fix shebang lines
-.if defined(RUBY_SHEBANG_FILES) && !empty(RUBY_SHEBANG_FILES)
-USE_RUBY= yes
-
-post-patch: ruby-shebang-patch
-
-ruby-shebang-patch:
- @cd ${WRKSRC}; for f in ${RUBY_SHEBANG_FILES}; do \
- ${ECHO_MSG} "===> Fixing the #! line of $$f"; \
- TMPFILE=`mktemp -t rubyshebang`; \
- cp $$f $$TMPFILE; \
- ${AWK} 'BEGIN {flag = 0;} \
- { \
- if (flag == 0) { \
- if ($$0 ~ /^#!/) { \
- sub(/#!(.*\/)?(env[[:space:]]+)?ruby/, "#!${RUBY}", $$0);\
- print $$0; \
- } \
- else { \
- print "#!${RUBY}"; \
- print $$0; \
- } \
- flag = 1; \
- } else { \
- print $$0; \
- } \
- }' $$TMPFILE > $$f; \
- rm -f $$TMPFILE; \
- done
-.endif
-
.if ${PORT_OPTIONS:MDEBUG}
RUBY_FLAGS+= -d
.endif
More information about the svn-ports-all
mailing list