[98125] trunk/dports/graphics/fontforge/Portfile

jmr at macports.org jmr at macports.org
Tue Sep 25 07:56:46 PDT 2012


Revision: 98125
          http://trac.macports.org//changeset/98125
Author:   jmr at macports.org
Date:     2012-09-25 07:56:45 -0700 (Tue, 25 Sep 2012)
Log Message:
-----------
fontforge: cleanup

Modified Paths:
--------------
    trunk/dports/graphics/fontforge/Portfile

Modified: trunk/dports/graphics/fontforge/Portfile
===================================================================
--- trunk/dports/graphics/fontforge/Portfile	2012-09-25 14:39:45 UTC (rev 98124)
+++ trunk/dports/graphics/fontforge/Portfile	2012-09-25 14:56:45 UTC (rev 98125)
@@ -31,48 +31,28 @@
 dist_subdir     ${name}/${version}
 use_bzip2       yes
 
-set docdistname ${name}_htdocs-${docversion}
+set docdistfile ${name}_htdocs-${docversion}${extract.suffix}
 
 distfiles-append \
     cidmaps.tgz:cidmaps \
-    [suffix ${docdistname}]:docs
+    ${docdistfile}:docs
 
-patchfiles      patch-Makefile.dynamic.in.diff \
-                patch-fontforge_start.c.diff \
-                patch-gutils_dynamic.c.diff \
-                patch-xcode-43.diff \
-                patch-configure.in.diff
-post-patch {
-    if {${os.major} > 11} {
-        foreach file [glob ${worksrcpath}/fontforge/*.c] {
-            reinplace s|AnchorPoint|FFAnchorPoint|g $file
-        }
-    }
-}
-post-configure {
-    if {${os.major} > 11} {
-        reinplace s|AnchorPoint|FFAnchorPoint|g ${worksrcpath}/fontforge/splinefont.h \
-             ${worksrcpath}/fontforge/baseviews.h \
-             ${worksrcpath}/fontforge/views.h
-    }
-}
-
-checksums       [suffix ${distname}] \
+checksums       ${distname}${extract.suffix} \
                 sha1    8fada07647f102351bb1d7d1c4da487356e7142f \
                 rmd160  7f276e9e3ef673b78355bb7be50f6b2587aee633 \
                 cidmaps.tgz \
                 sha1    efbc7c9d3e95159f5600dc71f9cccb370e46bb94 \
                 rmd160  d194355e61813d31fe4813bdf10a62d66a9f6d04 \
-                [suffix ${docdistname}] \
+                ${docdistfile} \
                 sha1    e966fea60a2f7f022af71669f67e15e258948e0e \
                 rmd160  ac92a01aafbb39ccbecff2953f3b6f49c3721f71 \
-                [suffix freetype-${ftversion}] \
+                freetype-${ftversion}${extract.suffix} \
                 sha1    1d136cbc51c67b212c91ba04dc5db797f35e64e6 \
                 rmd160  6b9b37ccdc8d1bfe0883f0e25df6de49ab30379e
 
 worksrcdir      ${name}-${version}
 
-extract.only    [suffix ${distname}]
+extract.only    ${distname}${extract.suffix}
 
 post-extract {
     xinstall -d \
@@ -80,10 +60,20 @@
         ${worksrcpath}/htdocs
 
     system "tar xzf ${distpath}/cidmaps.tgz -C ${worksrcpath}/cidmap"
-    system "tar xjf ${distpath}/[suffix ${docdistname}] -C ${worksrcpath}/htdocs"
+    system "tar xjf ${distpath}/${docdistfile} -C ${worksrcpath}/htdocs"
 }
 
+patchfiles      patch-Makefile.dynamic.in.diff \
+                patch-fontforge_start.c.diff \
+                patch-gutils_dynamic.c.diff \
+                patch-xcode-43.diff \
+                patch-configure.in.diff
 post-patch {
+    if {${os.major} > 11 && ${os.platform} == "darwin"} {
+        eval reinplace -W {${worksrcpath}/fontforge} "s|AnchorPoint|FFAnchorPoint|g" \
+            [glob -tails -directory ${worksrcpath}/fontforge *.c]
+            splinefont.h baseviews.h views.h
+    }
     reinplace "s|@PREFIX@|${prefix}|g" \
         ${worksrcpath}/gutils/dynamic.c
     reinplace "/^applicationsdir/s|/Applications|${applications_dir}|" \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120925/7a7d02db/attachment.html>


More information about the macports-changes mailing list