[152644] trunk/dports/math

ryandesign at macports.org ryandesign at macports.org
Wed Sep 14 04:49:44 PDT 2016


Revision: 152644
          https://trac.macports.org/changeset/152644
Author:   ryandesign at macports.org
Date:     2016-09-14 04:49:44 -0700 (Wed, 14 Sep 2016)
Log Message:
-----------
primegen: new port, version 0.97 (#51457)

Added Paths:
-----------
    trunk/dports/math/primegen/
    trunk/dports/math/primegen/Portfile

Added: trunk/dports/math/primegen/Portfile
===================================================================
--- trunk/dports/math/primegen/Portfile	                        (rev 0)
+++ trunk/dports/math/primegen/Portfile	2016-09-14 11:49:44 UTC (rev 152644)
@@ -0,0 +1,47 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+
+name                primegen
+version             0.97
+categories          math
+platforms           darwin
+maintainers         yandex.com:bstj openmaintainer
+license             public-domain
+
+description         Binary and library to generate prime numbers
+
+long_description    primegen is a small, fast library to generate prime \
+                    numbers in order. Can generate primes up to \
+                    1000000000000000, although it is not optimized for primes \
+                    past 32 bits. It uses the Sieve of Atkin instead of the \
+                    traditional Sieve of Eratosthenes.
+
+homepage            http://cr.yp.to/primegen.html
+master_sites        http://cr.yp.to/primegen/
+
+checksums           rmd160  6f18fb8819e5589b0d7701f2dd69a2d8be4138b3 \
+                    sha256  54285baf8eed9e421ff2220a2112d38cfb20c1ebef6014ef3f0004c22c95f40d
+
+configure {
+    reinplace "s|gcc|${configure.cc} [get_canonical_archflags cc]|" ${worksrcpath}/conf-cc
+    reinplace "s|gcc|${configure.cc} [get_canonical_archflags ld]|" ${worksrcpath}/conf-ld
+}
+
+build.target        it
+
+destroot {
+    xinstall -m 755 ${worksrcpath}/primegaps ${worksrcpath}/primes ${destroot}${prefix}/bin
+    xinstall -m 644 ${worksrcpath}/primegen.h ${destroot}${prefix}/include
+    xinstall -m 644 ${worksrcpath}/primegen.a ${destroot}${prefix}/lib
+
+    xinstall -m 644 -W ${worksrcpath} primegaps.0 primes.0 ${destroot}${prefix}/share/man/cat1
+    xinstall -m 644 -W ${worksrcpath} primegen.0 ${destroot}${prefix}/share/man/cat3
+    xinstall -m 644 -W ${worksrcpath} primegaps.1 primes.1 ${destroot}${prefix}/share/man/man1
+    xinstall -m 644 -W ${worksrcpath} primegen.3 ${destroot}${prefix}/share/man/man3
+}
+
+livecheck.type      regex
+livecheck.url       ${homepage}
+livecheck.regex     primegen-(\[0-9.\]+)${extract.suffix}


Property changes on: trunk/dports/math/primegen/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160914/03722cd2/attachment.html>


More information about the macports-changes mailing list