[96114] trunk/dports/ruby/rb-redcloth/Portfile

jmr at macports.org jmr at macports.org
Wed Aug 1 02:08:32 PDT 2012


Revision: 96114
          https://trac.macports.org/changeset/96114
Author:   jmr at macports.org
Date:     2012-08-01 02:08:31 -0700 (Wed, 01 Aug 2012)
Log Message:
-----------
rb-redcloth: fix shebang lines (#33520)

Modified Paths:
--------------
    trunk/dports/ruby/rb-redcloth/Portfile

Modified: trunk/dports/ruby/rb-redcloth/Portfile
===================================================================
--- trunk/dports/ruby/rb-redcloth/Portfile	2012-08-01 08:50:02 UTC (rev 96113)
+++ trunk/dports/ruby/rb-redcloth/Portfile	2012-08-01 09:08:31 UTC (rev 96114)
@@ -4,6 +4,7 @@
 PortGroup		ruby 1.0
 
 ruby.setup		RedCloth 3.0.4 setup.rb {doc} rubyforge:6064
+revision		1
 maintainers		nomaintainer
 description		Textile for Ruby
 long_description	RedCloth is a module for using Textile in Ruby. \
@@ -15,6 +16,11 @@
 checksums		md5 6f076b94e783149adf96102c574a233c
 platforms		darwin
 
+post-patch {
+    reinplace "s|/usr/bin/ruby18|${prefix}/bin/ruby|" ${worksrcpath}/bin/redcloth
+    reinplace "s|/usr/bin/env ruby|${prefix}/bin/ruby|" ${worksrcpath}/run-tests.rb
+}
+
 test.run		yes
 test.cmd		${ruby.bin} -I./lib
 test.target		run-tests.rb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120801/89687445/attachment.html>


More information about the macports-changes mailing list