macports: improve perl shebang line modification for keytrans
authorJameson Graef Rollins <jrollins@finestructure.net>
Tue, 7 Apr 2009 04:13:00 +0000 (21:13 -0700)
committerJameson Graef Rollins <jrollins@finestructure.net>
Tue, 7 Apr 2009 04:13:00 +0000 (21:13 -0700)
packaging/macports/Portfile

index 7d87a9389b726205e8e500b768fda73b1af3ed20..dd6d58b982bcc580e61660492d12da704f93d9c1 100644 (file)
@@ -57,8 +57,8 @@ post-build {
         ${worksrcpath}/src/monkeysphere-authentication \
         ${worksrcpath}/src/monkeysphere
 
-    # fix perl shebang line
-    exec sed -i .tmp -e "s|#!/usr/bin/perl -T|#!/usr/bin/env perl|g" \
+    # fix perl shebang line to point to macports perl install
+    exec sed -i .tmp -e "s|^#!/usr/bin/perl -T$|#!/opt/local/bin/perl -T|" \
         ${worksrcpath}/src/share/keytrans
 
     # remove leftover sed cruft