[52292] trunk/dports/devel/mpfr/Portfile

vinc17 at macports.org vinc17 at macports.org
Sat Jun 13 10:02:20 PDT 2009


Revision: 52292
          http://trac.macports.org/changeset/52292
Author:   vinc17 at macports.org
Date:     2009-06-13 10:02:19 -0700 (Sat, 13 Jun 2009)
Log Message:
-----------
mpfr: some cosmetic improvements suggested in #19930.

Modified Paths:
--------------
    trunk/dports/devel/mpfr/Portfile

Modified: trunk/dports/devel/mpfr/Portfile
===================================================================
--- trunk/dports/devel/mpfr/Portfile	2009-06-13 16:53:58 UTC (rev 52291)
+++ trunk/dports/devel/mpfr/Portfile	2009-06-13 17:02:19 UTC (rev 52292)
@@ -9,7 +9,8 @@
 
 name                mpfr
 set base_version    2.4.1
-version             ${base_version}-p4
+set patch_level     4
+version             ${base_version}-p${patch_level}
 revision            1
 categories          devel math
 platforms           darwin
@@ -27,6 +28,9 @@
 homepage        http://www.mpfr.org/
 master_sites    http://www.mpfr.org/${distname}/
 
+use_lzma            yes
+depends_build       bin:unlzma:lzmautils
+
 checksums \
     patch01 \
         md5     106f37855e1c4a5e54da5613e49e3a38 \
@@ -44,14 +48,11 @@
         md5     5b22dd389f5724594398686b5db072eb \
         sha1    a32e20029351eb34cee941d22566044693a91b93 \
         rmd160  209acd4081774b4e63d58700dc8355e66238ac8d \
-    ${distname}.tar.lzma \
+    [suffix ${distname}] \
         md5     22402995cf2496d8faea42c8da02ce1f \
         sha1    6145947361fac880b87976e21e28fab12ccf4881 \
         rmd160  e848db799fc3b6a4681de3b38df8809c2369f266
 
-use_lzma            yes
-depends_build       bin:unlzma:lzmautils
-
 use_parallel_build  yes
 
 depends_lib     port:gmp
@@ -59,9 +60,12 @@
 dist_subdir     ${name}/${base_version}
 
 patch_sites     ${master_sites}
-patchfiles      patch01 patch02 patch03 patch04
 patch.args      -p1
 
+for {set i 1} {${i} <= ${patch_level}} {incr i} {
+    patchfiles-append patch[format %02d ${i}]
+}
+
 test.run        yes
 test.target     check
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090613/14bbb89c/attachment.html>


More information about the macports-changes mailing list