[106751] trunk/dports/office/vit

g5pw at macports.org g5pw at macports.org
Fri Jun 7 01:27:58 PDT 2013


Revision: 106751
          https://trac.macports.org/changeset/106751
Author:   g5pw at macports.org
Date:     2013-06-07 01:27:58 -0700 (Fri, 07 Jun 2013)
Log Message:
-----------
office/vit:
  stop whining about perl location
  patching vit.pl to use env instead of hardcoded perl path
  closes #39373

Modified Paths:
--------------
    trunk/dports/office/vit/Portfile

Added Paths:
-----------
    trunk/dports/office/vit/files/
    trunk/dports/office/vit/files/configure.patch
    trunk/dports/office/vit/files/vit.pl.patch

Modified: trunk/dports/office/vit/Portfile
===================================================================
--- trunk/dports/office/vit/Portfile	2013-06-07 06:52:06 UTC (rev 106750)
+++ trunk/dports/office/vit/Portfile	2013-06-07 08:27:58 UTC (rev 106751)
@@ -24,9 +24,8 @@
 depends_lib         port:task \
                     port:p5.12-curses
 
-post-patch {
-    reinplace "s|/usr|${prefix}|" ${worksrcpath}/configure ${worksrcpath}/vit.pl
-}
+patchfiles          configure.patch \
+                    vit.pl.patch
 
 build.target
 

Added: trunk/dports/office/vit/files/configure.patch
===================================================================
--- trunk/dports/office/vit/files/configure.patch	                        (rev 0)
+++ trunk/dports/office/vit/files/configure.patch	2013-06-07 08:27:58 UTC (rev 106751)
@@ -0,0 +1,14 @@
+--- configure	2013-04-03 14:49:06.000000000 +0200
++++ configure.new	2013-06-07 09:51:12.000000000 +0200
+@@ -1771,11 +1771,6 @@
+ if test "$PERL" = "NOT_FOUND"; then
+   as_fn_error $? "can not continue: perl not found" "$LINENO" 5
+ fi
+-if test "$PERL" != "/usr/bin/perl"; then
+-  echo configure: error: can not continue... perl must be installed as /usr/bin/perl
+-  echo confgiure: hint: try \"sudo ln -s $PERL /usr/bin/perl\"
+-  exit 1
+-fi
+ 
+ PERL_MODULE_CHECK=`perl -e "use Curses" 2> /dev/null; echo $?`
+ if test "$PERL_MODULE_CHECK" = "2"; then

Added: trunk/dports/office/vit/files/vit.pl.patch
===================================================================
--- trunk/dports/office/vit/files/vit.pl.patch	                        (rev 0)
+++ trunk/dports/office/vit/files/vit.pl.patch	2013-06-07 08:27:58 UTC (rev 106751)
@@ -0,0 +1,8 @@
+--- vit.pl	2013-04-03 14:49:06.000000000 +0200
++++ vit.pl.new	2013-06-07 09:50:40.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/perl -w
++#!/usr/bin/env perl -w
+ #
+ # VIT - Visual Interactive Taskwarrior
+ #
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130607/ca6c3a0f/attachment.html>


More information about the macports-changes mailing list