[127388] users/khindenburg/ports/kde/kdesrc-build/Portfile

khindenburg at macports.org khindenburg at macports.org
Sun Oct 26 13:27:08 PDT 2014


Revision: 127388
          https://trac.macports.org/changeset/127388
Author:   khindenburg at macports.org
Date:     2014-10-26 13:27:08 -0700 (Sun, 26 Oct 2014)
Log Message:
-----------
kdesrc-build: do not use git commit as version; use cmake PortGroup; use perl_version for deps; change script perl to use macports

Modified Paths:
--------------
    users/khindenburg/ports/kde/kdesrc-build/Portfile

Modified: users/khindenburg/ports/kde/kdesrc-build/Portfile
===================================================================
--- users/khindenburg/ports/kde/kdesrc-build/Portfile	2014-10-26 20:21:20 UTC (rev 127387)
+++ users/khindenburg/ports/kde/kdesrc-build/Portfile	2014-10-26 20:27:08 UTC (rev 127388)
@@ -2,10 +2,12 @@
 # # $Id$
 
 PortSystem          1.0
-PortGroup           kde4    1.1
+PortGroup           cmake   1.0
 
 name                kdesrc-build
-version             f9f472d17716d2f66d27daae108631e51dfa9535
+version             1.15.2
+set gitcommit       f9f472d17716d2f66d27daae108631e51dfa9535
+set perl_version    5.16
 categories          kde
 platforms           darwin
 maintainers         khindenburg openmaintainer
@@ -17,11 +19,15 @@
 
 fetch.type          git
 git.url             git://anongit.kde.org/kdesrc-build
-git.branch          ${version}
+git.branch          ${gitcommit}
 
-#depends_build-append    port:kdelibs4
-depends_run-append      path:bin/perl:perl5 \
-                        port:p5.16-json \
-                        port:p5.16-lwp-useragent-determined
+depends_run-append      port:perl${perl_version} \
+                        port:p${perl_version}-json \
+                        port:p${perl_version}-lwp-useragent-determined
 
+post-configure {
+    reinplace "s|#!/usr/bin/env perl|#!${prefix}/bin/perl${perl_version}|g" ${worksrcpath}/${name}
+    reinplace "s|#!/usr/bin/env perl|#!${prefix}/bin/perl${perl_version}|g" ${worksrcpath}/kdesrc-build-setup
+}
+
 livecheck.type  none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141026/b1bf4d87/attachment-0001.html>


More information about the macports-changes mailing list