source: trunk/dports/sysutils/coreutils/Portfile @ 97649

Last change on this file since 97649 was 97649, checked in by mww@…, 7 years ago

coreutils: version 8.19

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 97649 2012-09-10 19:00:54Z mww@macports.org $
3
4PortSystem      1.0
5
6name            coreutils
7version         8.19
8categories      sysutils
9platforms       darwin
10license         GPL-3+
11installs_libs   no
12maintainers     nomaintainer
13description     GNU File, Shell, and Text utilities
14
15long_description \
16    The GNU Core Utilities are the basic file, shell, and text \
17    manipulation utilities of the GNU operating system. These are the \
18    core utilities which are expected to exist on every operating \
19    system. Previously these utilities were offered as three individual \
20    sets of GNU utilities, fileutils, shellutils, and textutils. Those \
21    three have been combined into a single set of utilities called the \
22    coreutils.
23
24homepage        http://www.gnu.org/software/${name}/
25master_sites    gnu
26
27use_xz          yes
28checksums           rmd160  59378ec951128b710a0875cb4cf53ac03815ed17 \
29                    sha256  ad3873183fd8cfc7672b3ba54644672e59352f9b2dc7e3ad251c1174dde8a9e7
30
31depends_lib \
32    port:gettext \
33    port:gmp \
34    port:libiconv
35
36use_autoreconf yes
37autoreconf.args -fvi
38
39configure.args  --program-prefix=g
40configure.env-append    FORCE_UNSAFE_CONFIGURE=1
41
42post-destroot {
43    if {[file exists ${destroot}${prefix}/share/info/dir]} {
44        delete ${destroot}${prefix}/share/info/dir
45    }
46
47    if {[file exists ${destroot}${prefix}/lib/charset.alias]} {
48        delete ${destroot}${prefix}/lib/charset.alias
49    }
50
51    set docdir ${prefix}/share/doc/${name}
52    xinstall -d ${destroot}${docdir}
53    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
54        THANKS THANKS-to-translators TODO ${destroot}${docdir}
55
56    xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin
57    foreach binary [glob -tails -directory ${destroot}${prefix}/bin g*] {
58        ln -s ${prefix}/bin/${binary} ${destroot}${prefix}/libexec/gnubin/[string range $binary 1 end]
59    }
60    xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin/man/man1
61    foreach manpage [glob -tails -directory ${destroot}${prefix}/share/man/man1 g*] {
62        ln -s ${prefix}/share/man/man1/${manpage}.gz ${destroot}${prefix}/libexec/gnubin/man/man1/[string range $manpage 1 end].gz
63    }
64}
65
66# Set the RUN_EXPENSIVE_TESTS environmental variable to 'yes' to run more
67# expensive tests.  Set the RUN_VERY_EXPENSIVE_TESTS environmental variable
68# to 'yes' to run even more expensive tests.
69test.run        yes
70test.target     check
71
72notes "
73    The tools provided by GNU coreutils are prefixed with the character 'g' by default to distinguish them from the BSD commands.
74    For example, cp becomes gcp and ls becomes gls.
75
76    If you want to use the GNU tools by default, add this directory to the front of your PATH environment variable:
77        ${prefix}/libexec/gnubin/
78"
Note: See TracBrowser for help on using the repository browser.