[140553] trunk/dports/devel/lua-lpeg/Portfile

ionic at macports.org ionic at macports.org
Tue Sep 22 11:46:28 PDT 2015


Revision: 140553
          https://trac.macports.org/changeset/140553
Author:   ionic at macports.org
Date:     2015-09-22 11:46:28 -0700 (Tue, 22 Sep 2015)
Log Message:
-----------
lua-lpeg: fix trace mode builds: exchange post-patch phase with pre-configure. lib dependencies are available in configure and later only, but we're querying pkg-config directly.

Modified Paths:
--------------
    trunk/dports/devel/lua-lpeg/Portfile

Modified: trunk/dports/devel/lua-lpeg/Portfile
===================================================================
--- trunk/dports/devel/lua-lpeg/Portfile	2015-09-22 17:24:33 UTC (rev 140552)
+++ trunk/dports/devel/lua-lpeg/Portfile	2015-09-22 18:46:28 UTC (rev 140553)
@@ -26,7 +26,11 @@
 depends_lib         port:lua
 
 patchfiles          patch-makefile.diff
-post-patch {
+
+# This should be done in post-patch, but lua is only available as a dependency
+# in configure and later phases. Thus, using pkg-config to get the C and LDFLAGS
+# fails miserably in trace mode.
+pre-configure {
     reinplace  "s|%%CFLAGS%%|${configure.cflags}  [exec ${prefix}/bin/pkg-config lua --cflags]|" ${worksrcpath}/makefile
     reinplace "s|%%LDFLAGS%%|${configure.ldflags} [exec ${prefix}/bin/pkg-config lua --libs]|"   ${worksrcpath}/makefile
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150922/17031e73/attachment.html>


More information about the macports-changes mailing list