[112566] trunk/dports/math/atlas/Portfile
vince at macports.org
vince at macports.org
Sat Oct 26 01:58:09 PDT 2013
Revision: 112566
https://trac.macports.org/changeset/112566
Author: vince at macports.org
Date: 2013-10-26 01:58:09 -0700 (Sat, 26 Oct 2013)
Log Message:
-----------
Implement a Ryan’s patch to allow BSD tar to correctly unpack Atlas (#40685). Thanks!
Modified Paths:
--------------
trunk/dports/math/atlas/Portfile
Modified: trunk/dports/math/atlas/Portfile
===================================================================
--- trunk/dports/math/atlas/Portfile 2013-10-26 08:01:15 UTC (rev 112565)
+++ trunk/dports/math/atlas/Portfile 2013-10-26 08:58:09 UTC (rev 112566)
@@ -8,11 +8,12 @@
name atlas
version 3.10.1
revision 5
+use_bzip2 yes
# additional versions
set lapackversion 3.4.2
set lapackname lapack
-set atlasdist ${name}${version}.tar.bz2
+set atlasdist ${name}${version}${extract.suffix}
set lapackdist ${lapackname}-${lapackversion}.tgz
maintainers vince
@@ -28,21 +29,21 @@
homepage http://math-atlas.sourceforge.net/
-master_sites sourceforge:math-atlas:atlas \
+master_sites sourceforge:project/math-atlas/Stable/${version}:atlas \
http://www.netlib.org/lapack:lapack
distfiles ${atlasdist}:atlas \
${lapackdist}:lapack
+extract.only ${atlasdist}
+
patchfiles patch-emit_mm_c.diff \
patch-ATL_cmm4x4x128_av_c.diff
-depends_extract-append port:gnutar
-
-checksums atlas3.10.1.tar.bz2 \
+checksums ${atlasdist} \
rmd160 67f928ad900caa300b23e2f824b8a495f416c8d6 \
sha256 a215b492204aae0205f4028e7c4076492a5d6a564f8f859ff062fd79587bcc86 \
- lapack-3.4.2.tgz \
+ ${lapackdist} \
rmd160 8740c35c9a85b71424fe1ffeed192256aebeb431 \
sha256 60a65daaf16ec315034675942618a2230521ea7adf85eea788ee54841072faf0
@@ -367,13 +368,16 @@
#}
}
-# Phases (moonlike)
+# Phases
+# Work around some bugs in the 3.10.1 tarball:
+# https://code.google.com/p/libarchive/issues/detail?id=299
+# https://sourceforge.net/p/math-atlas/support-request/884
-extract {
- # extract Atlas and move to a consistent working directory name
- system -W ${workpath} "bunzip2 -dc ${distpath}/${atlasdist} | \
- gnutar --no-same-owner -xf -"
- system "mv ${workpath}/ATLAS ${workpath}/${name}-${version}"
+extract.post_args-replace -xf -xkf
+extract.post_args-append {|| true}
+
+post-extract {
+ move ${workpath}/ATLAS ${worksrcpath}
}
post-patch {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131026/0f0e60c1/attachment.html>
More information about the macports-changes
mailing list