source: trunk/dports/lang/gawk/Portfile

Last change on this file was 152000, checked in by mps@…, 11 months ago

gawk: update to version 4.1.4.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 152000 2016-08-26 10:57:30Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               conflicts_build 1.0
6
7name                    gawk
8version                 4.1.4
9categories              lang
10license                 GPL-3+
11installs_libs           no
12maintainers             gmail.com:mschamschula openmaintainer
13platforms               darwin
14master_sites            gnu
15homepage                http://www.gnu.org/software/gawk/
16description             The GNU awk utility.
17use_xz                  yes
18
19long_description \
20    The awk utility interprets a special-purpose programming language   \
21    that makes it possible to handle simple data-reformatting jobs with \
22    just a few lines of code. It is a free, extended version of awk.
23
24checksums               rmd160  7f0b1ec45c207cf365bc9b93c7e0b247e6c57186 \
25                        sha256  53e184e2d0f90def9207860531802456322be091c7b48f23fdc79cda65adc266
26
27depends_lib             port:gettext \
28                        port:readline
29
30conflicts_build         nawk
31
32configure.args          --with-libiconv-prefix=${prefix} \
33                        --without-mpfr \
34                        ac_cv_libsigsegv=no
35
36test.run                yes
37test.target             check
38
39post-destroot {
40    delete ${destroot}${prefix}/bin/awk
41
42    xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin
43    foreach binary [glob -tails -directory ${destroot}${prefix}/bin g*] {
44        ln -s ${prefix}/bin/${binary} ${destroot}${prefix}/libexec/gnubin/[string range $binary 1 end]
45    }
46    xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin/man/man1
47    foreach manpage [glob -tails -directory ${destroot}${prefix}/share/man/man1 g*] {
48        ln -s ${prefix}/share/man/man1/${manpage}.gz ${destroot}${prefix}/libexec/gnubin/man/man1/[string range $manpage 1 end].gz
49    }
50}
51
52variant mpfr description {Add mpfr support} {
53    depends_lib-append  port:gmp \
54                        port:mpfr
55
56    configure.args-delete   --without-mpfr
57}
Note: See TracBrowser for help on using the repository browser.