mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
47 lines
1.8 KiB
Tcl
47 lines
1.8 KiB
Tcl
# -*- 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
|
|
|
|
PortSystem 1.0
|
|
PortGroup github 1.0
|
|
|
|
github.setup Fourmilab ent_random_sequence_tester 388d2cc499813e6865e833a66b612172a1674efc
|
|
# Change github.tarball_from to 'releases' or 'archive' next update
|
|
github.tarball_from tarball
|
|
name ent
|
|
version 20220220
|
|
categories math security
|
|
license public-domain
|
|
maintainers nomaintainer
|
|
description Entropy calculator
|
|
long_description ent applies various tests to sequences of bytes stored in files \
|
|
and reports the results of those tests. The program is useful \
|
|
for those evaluating pseudorandom number generators for encryption \
|
|
and statistical sampling applications, compression algorithms \
|
|
and other applications where the information density of a file is of interest.
|
|
|
|
homepage https://www.fourmilab.ch/random/
|
|
|
|
checksums rmd160 df0f9f9c25cf9d1d97aeead64751a794bb76e5f9 \
|
|
sha256 086ffad554b9989b0671f07b285c3420322d071935ba2207fe607023b856033a \
|
|
size 30319
|
|
|
|
variant universal {}
|
|
|
|
worksrcdir ${worksrcpath}/src
|
|
|
|
post-patch {
|
|
reinplace "s|^CFLAGS = |CFLAGS = ${configure.cflags} [get_canonical_archflags cc] |" ${worksrcdir}/Makefile
|
|
}
|
|
|
|
use_configure no
|
|
|
|
build.args CC=${configure.cc}
|
|
|
|
build.target ent
|
|
|
|
destroot {
|
|
xinstall -m 755 -W ${worksrcdir} ent ${destroot}${prefix}/bin
|
|
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
|
|
xinstall -m 644 -W ${worksrcdir} ent.html figures/entitle.png \
|
|
${destroot}${prefix}/share/doc/${name}
|
|
}
|