[103819] trunk/dports/math/ent/Portfile

ryandesign at macports.org ryandesign at macports.org
Thu Mar 7 22:04:51 PST 2013


Revision: 103819
          https://trac.macports.org/changeset/103819
Author:   ryandesign at macports.org
Date:     2013-03-07 22:04:51 -0800 (Thu, 07 Mar 2013)
Log Message:
-----------
ent: ensure we're UsingTheRightCompiler; use -arch flags; add universal variant; use MacPorts default optimization flags; use 'extract.mkdir yes' instead of reimplementing it; remove unnecessary directives

Modified Paths:
--------------
    trunk/dports/math/ent/Portfile

Modified: trunk/dports/math/ent/Portfile
===================================================================
--- trunk/dports/math/ent/Portfile	2013-03-08 06:02:09 UTC (rev 103818)
+++ trunk/dports/math/ent/Portfile	2013-03-08 06:04:51 UTC (rev 103819)
@@ -1,6 +1,7 @@
 # $Id$
 
 PortSystem          1.0
+
 name                ent
 version             20080128
 categories          math security
@@ -21,33 +22,30 @@
 distname            random
 dist_subdir         ${name}/${version}
 use_zip             yes
-worksrcdir          ent
+extract.mkdir       yes
 
 checksums           md5     8104a83af1ea5b280da96c92da18eae4 \
                     sha1    0f2f12dc67d1f02f77776709cf5fc5eee1d1b2e2 \
                     rmd160  b21b8401fdbd2aac189fe4a442a1164b172407f8
 
-pre-extract {
-   extract.post_args   "-d ${worksrcpath}"
-}
+variant universal {}
 
-post-extract {
-   reinplace "s|^CFLAGS = |CFLAGS = -O3 |" ${worksrcpath}/Makefile
+post-patch {
+    reinplace "s|^CFLAGS = |CFLAGS = ${configure.cflags} [get_canonical_archflags cc] |" ${worksrcpath}/Makefile
 }
 
 use_configure       no
 
+build.args          CC=${configure.cc}
+
 build.target        ent
 
 destroot {
-   xinstall -m 755 -d ${destroot}${prefix}/bin \
-      ${destroot}${prefix}/share/doc/${name}
    xinstall -m 755 -W ${worksrcpath} ent ${destroot}${prefix}/bin
+   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} ent.html entitle.gif \
       ${destroot}${prefix}/share/doc/${name}
 }
 
-universal_variant   no
-
 livecheck.type      none
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130307/7bdf8a7a/attachment.html>


More information about the macports-changes mailing list