[97118] trunk/dports/devel/lua-rings

ryandesign at macports.org ryandesign at macports.org
Mon Aug 27 14:23:58 PDT 2012


Revision: 97118
          https://trac.macports.org/changeset/97118
Author:   ryandesign at macports.org
Date:     2012-08-27 14:23:58 -0700 (Mon, 27 Aug 2012)
Log Message:
-----------
lua-rings: fix compiler; use the right -arch flags and fix universal variant; fix version number; fix livecheck

Modified Paths:
--------------
    trunk/dports/devel/lua-rings/Portfile
    trunk/dports/devel/lua-rings/files/patch-config.diff

Modified: trunk/dports/devel/lua-rings/Portfile
===================================================================
--- trunk/dports/devel/lua-rings/Portfile	2012-08-27 21:18:34 UTC (rev 97117)
+++ trunk/dports/devel/lua-rings/Portfile	2012-08-27 21:23:58 UTC (rev 97118)
@@ -2,12 +2,10 @@
 PortSystem          1.0
 
 PortGroup           github 1.0 
-github.setup        keplerproject rings 1.2.3
+github.setup        keplerproject rings 1.2.3 v
 github.tarball_from downloads
 
 name                lua-rings
-version             1.2.2
-revision            1
 license             MIT
 categories          devel
 maintainers         and.damore openmaintainer
@@ -26,13 +24,15 @@
 # we patch it and force it to ${prefix}
 patchfiles          patch-config.diff
 post-patch {
-    reinplace   "s|%PREFIX%|${prefix}|"             ${worksrcpath}/config
-    reinplace "s|%COMPILER%|${configure.compiler}|" ${worksrcpath}/config
+    reinplace "s|%PREFIX%|${prefix}|g" ${worksrcpath}/config
+    reinplace "s|%CC%|${configure.cc}|g" ${worksrcpath}/config
 }
 
+variant universal {}
+
 # it is needed to manually set flags env variable as well
-build.env-append    CFLAGS="${configure.cflags}" \
-                    LDFLAGS="${configure.ldflags} -llua -lm" 
+build.env-append    CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
+                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld] -llua -lm" 
 
 post-destroot {
     xinstall -d ${destroot}${prefix}/share/doc/${name}

Modified: trunk/dports/devel/lua-rings/files/patch-config.diff
===================================================================
--- trunk/dports/devel/lua-rings/files/patch-config.diff	2012-08-27 21:18:34 UTC (rev 97117)
+++ trunk/dports/devel/lua-rings/files/patch-config.diff	2012-08-27 21:23:58 UTC (rev 97118)
@@ -33,6 +33,6 @@
 -CFLAGS= $(WARN) $(INCS)
 -CC= gcc
 +CFLAGS+= $(WARN) $(INCS)
-+CC= %COMPILER%
++CC= %CC%
  
  # $Id: config,v 1.7 2007/10/29 22:51:39 carregal Exp $
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120827/e50116e1/attachment.html>


More information about the macports-changes mailing list