[73151] trunk/dports/math/libtommath/Portfile
ryandesign at macports.org
ryandesign at macports.org
Fri Nov 5 12:27:15 PDT 2010
Revision: 73151
http://trac.macports.org/changeset/73151
Author: ryandesign at macports.org
Date: 2010-11-05 12:27:12 -0700 (Fri, 05 Nov 2010)
Log Message:
-----------
libtommath:
* update to 0.42.0
* fix the homepage
* state what license the port is under
* canonicalize the official download site
* remove the atarininja backup download site since it does not carry this version
* support universal and non-default-build_arch builds
* ensure we're UsingTheRightCompiler
* no longer call "system" just to make a symlink
* install additional documentation files
* fix livecheck
See #27093 (maintainer timeout)
Modified Paths:
--------------
trunk/dports/math/libtommath/Portfile
Modified: trunk/dports/math/libtommath/Portfile
===================================================================
--- trunk/dports/math/libtommath/Portfile 2010-11-05 17:13:23 UTC (rev 73150)
+++ trunk/dports/math/libtommath/Portfile 2010-11-05 19:27:12 UTC (rev 73151)
@@ -3,21 +3,25 @@
PortSystem 1.0
name libtommath
-version 0.40
+version 0.42.0
categories math
platforms darwin
maintainers mww
+license Public-Domain
+
description Comprehensive, modular and portable mathematical routines
long_description LibTomMath provides highly optimized and portable routines \
for a vast majority of integer based number theoretic \
applications (including public key cryptography).
-homepage http://math.libtomcrypt.com/
-master_sites http://libtom.org/files/ \
- http://www.atarininja.org/~wxs/distfiles/ \
+homepage http://www.libtom.org/?page=features&whatfile=ltm
+master_sites http://www.libtom.org/files/ \
freebsd
distname ltm-${version}
-checksums sha1 439899c06444c363eee527f75447d189ee4f93ba
+
+checksums sha1 9b192701cf62b85e9bd65fbb4d622d04cfa5ee0d \
+ rmd160 9994d60d7e847a066715d8c644ce9b125932bf92
+
use_bzip2 yes
patchfiles patch-makefile
@@ -25,20 +29,33 @@
use_configure no
-build.args LIBDIR=${prefix}/lib
+variant universal {}
+if {[variant_isset universal]} {
+ set archflags ${configure.universal_cflags}
+} else {
+ set archflags ${configure.cc_archflags}
+}
+build.args LIBPATH=${prefix}/lib \
+ CC="${configure.cc} ${archflags}"
+
destroot {
xinstall -m 755 -d ${destroot}${prefix}/include/${name}
xinstall -m 644 -W ${worksrcpath} tommath.h tommath_class.h \
tommath_superclass.h ${destroot}${prefix}/include/${name}
xinstall -m 644 -W ${worksrcpath} libtommath.a libtommath.${version}.dylib \
${destroot}${prefix}/lib
- system "cd ${destroot}${prefix}/lib \
- && ln -s libtommath.${version}.dylib libtommath.0.dylib \
- && ln -s libtommath.${version}.dylib libtommath.dylib"
+ ln -s libtommath.${version}.dylib ${destroot}${prefix}/lib/libtommath.0.dylib
+ ln -s libtommath.${version}.dylib ${destroot}${prefix}/lib/libtommath.dylib
+
+ set docdir ${destroot}${prefix}/share/doc/${name}
+ xinstall -d ${docdir}
+ xinstall -m 644 -W ${worksrcpath} \
+ LICENSE \
+ changes.txt \
+ ${docdir}
}
-platform darwin 8 {
- build.args-append CC=/usr/bin/gcc-4.0
-}
-
+livecheck.type regex
+livecheck.url ${homepage}
+livecheck.regex ltm-(\[0-9.\]+)${extract.suffix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101105/37a2b547/attachment.html>
More information about the macports-changes
mailing list