Date: Mon, 25 Apr 2016 23:12:04 +0000 (UTC) From: Steve Wills <swills@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r414034 - head/Mk Message-ID: <201604252312.u3PNC426049303@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604252312.u3PNC426049303>