source: trunk/dports/math/libranlib/Portfile

Last change on this file was 111510, checked in by jmr@…, 4 years ago

libranlib: fix bypassing of destroot, install all docs, set license, use better homepage

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# -*- 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
2# $Id: Portfile 111510 2013-09-24 07:59:07Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                libranlib
7version             1.0
8revision            1
9categories          math
10license             Restrictive/Distributable Noncommercial
11platforms           darwin
12maintainers         nomaintainer
13
14description         Library of Routines for Random Number Generation
15
16long_description    This library provides routines that return: Beta random \
17                    deviates, Chi-square random deviates, Exponential random \
18                    deviates, F random deviates, Gamma random deviates, \
19                    Multivariate normal random deviates (mean and covariance \
20                    matrix specified), Noncentral chi-square random deviates, \
21                    Noncentral F random deviates, Univariate normal random \
22                    deviates, Random permutations of an integer array, Real \
23                    uniform random deviates between specif, Binomial random \
24                    deviates, Negative Binomial random deviates, Multinomial \
25                    random deviates, Poisson random deviates, Integer uniform \
26                    deviates between specified limits and Seeds for the \
27                    random number generator calculated from a character string.
28
29homepage            http://netlib.org/random/
30master_sites        ftp://ftp.netlib.org/random/
31distname            ranlib.c
32
33fetch.use_epsv      no
34fetch.user          anonymous
35fetch.password      guest@macports.org
36
37checksums           md5     110d02ab91eb834e45044bb0368dfb7e
38
39worksrcdir          ${worksrcdir}/src
40
41post-extract {
42    file copy ${filespath}/Makefile ${worksrcpath}
43}
44
45use_configure       no
46
47variant universal {}
48
49build.args          CC="${configure.cc}" \
50                    CFLAGS="[get_canonical_archflags cc] -fno-common" \
51                    prefix="${prefix}"
52
53eval destroot.args  ${build.args}
54
55pre-activate {
56    set readmefile ${prefix}/share/doc/libranlib/README
57    if {[file exists $readmefile] && [registry_file_registered $readmefile] == "0"} {
58        file delete -force $readmefile
59    }
60}
Note: See TracBrowser for help on using the repository browser.