[146119] trunk/dports/sysutils/amttools

ionic at macports.org ionic at macports.org
Sun Feb 28 16:07:28 PST 2016


Revision: 146119
          https://trac.macports.org/changeset/146119
Author:   ionic at macports.org
Date:     2016-02-28 16:07:28 -0800 (Sun, 28 Feb 2016)
Log Message:
-----------
sysutils/amttools: correctly hardcode perl 5.22.

Modified Paths:
--------------
    trunk/dports/sysutils/amttools/Portfile
    trunk/dports/sysutils/amttools/files/patch-amttool-prepare-hashbang-for-reinplace.diff

Modified: trunk/dports/sysutils/amttools/Portfile
===================================================================
--- trunk/dports/sysutils/amttools/Portfile	2016-02-28 22:17:16 UTC (rev 146118)
+++ trunk/dports/sysutils/amttools/Portfile	2016-02-29 00:07:28 UTC (rev 146119)
@@ -6,7 +6,7 @@
 name                amttools
 set my_distname     amtterm
 version             1.4
-revision            0
+revision            1
 categories          sysutils
 license             GPL-2+
 maintainers         ionic openmaintainer
@@ -34,8 +34,9 @@
 checksums           rmd160  fac39807990870f88884e541f4b062db8b8d1236 \
                     sha256  e10af2b02dbf66fb24abd292b9ddc6d86b31eea09887da5cb0eb8fb2ee900e21
 
+set perl_branch     5.22
 depends_build       port:pkgconfig
-depends_run         port:p5.22-soap-lite
+depends_run         port:p${perl_branch}-soap-lite
 
 default_variants    +gtk
 
@@ -64,7 +65,7 @@
 destroot.args       prefix="${prefix}"
 
 post-patch {
-    reinplace -W "${worksrcpath}" "s|@@PREFIX@@|${prefix}|" amttool
+    reinplace -W "${worksrcpath}" "s|@@PERL_BINARY@@|${prefix}/bin/perl${perl_branch}|" amttool
 }
 
 variant gtk description {Enable gamt (GTK2-based AMT terminal)} {

Modified: trunk/dports/sysutils/amttools/files/patch-amttool-prepare-hashbang-for-reinplace.diff
===================================================================
--- trunk/dports/sysutils/amttools/files/patch-amttool-prepare-hashbang-for-reinplace.diff	2016-02-28 22:17:16 UTC (rev 146118)
+++ trunk/dports/sysutils/amttools/files/patch-amttool-prepare-hashbang-for-reinplace.diff	2016-02-29 00:07:28 UTC (rev 146119)
@@ -2,7 +2,7 @@
 +++ amttool	2016-02-25 00:45:12.000000000 +0100
 @@ -1,4 +1,4 @@
 -#!/usr/bin/perl
-+#!@@PREFIX@@/bin/perl
++#!@@PERL_BINARY@@
  use strict;
  use warnings;
  use SOAP::Lite;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160228/f9b23db8/attachment.html>


More information about the macports-changes mailing list