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

Last change on this file since 125500 was 125500, checked in by ryandesign@…, 5 years ago

coreutils: once again allow configuring as root (#44764; reverts r124489)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 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 125500 2014-09-19 00:45:20Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            coreutils
7conflicts       gexpr
8version         8.23
9categories      sysutils
10platforms       darwin
11license         GPL-3+
12installs_libs   no
13maintainers     nomaintainer
14description     GNU File, Shell, and Text utilities
15
16long_description \
17    The GNU Core Utilities are the basic file, shell, and text \
18    manipulation utilities of the GNU operating system. These are the \
19    core utilities which are expected to exist on every operating \
20    system. Previously these utilities were offered as three individual \
21    sets of GNU utilities, fileutils, shellutils, and textutils. Those \
22    three have been combined into a single set of utilities called the \
23    coreutils.
24
25homepage        http://www.gnu.org/software/${name}/
26master_sites    gnu
27use_xz          yes
28
29checksums       rmd160  d4c433968cd77dbf86e9f4a75c622b24aa7c2726 \
30                sha256  ec43ca5bcfc62242accb46b7f121f6b684ee21ecd7d075059bf650ff9e37b82d
31
32depends_lib \
33    port:gettext \
34    port:gmp \
35    port:libiconv
36
37configure.args      --disable-silent-rules \
38                    --program-prefix=g
39
40# Whether deliberately or not, some users run MacPorts as root without privilege dropping.
41configure.env-append    FORCE_UNSAFE_CONFIGURE=1
42
43# help2man: can't get `--help' info from man/hostid.td/hostid
44use_parallel_build  no
45
46post-destroot {
47    if {[file exists ${destroot}${prefix}/share/info/dir]} {
48        delete ${destroot}${prefix}/share/info/dir
49    }
50
51    if {[file exists ${destroot}${prefix}/lib/charset.alias]} {
52        delete ${destroot}${prefix}/lib/charset.alias
53    }
54
55    set docdir ${prefix}/share/doc/${name}
56    xinstall -d ${destroot}${docdir}
57    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
58        THANKS THANKS-to-translators TODO ${destroot}${docdir}
59
60    xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin
61    foreach binary [glob -tails -directory ${destroot}${prefix}/bin g*] {
62        ln -s ${prefix}/bin/${binary} ${destroot}${prefix}/libexec/gnubin/[string range $binary 1 end]
63    }
64    xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin/man/man1
65    foreach manpage [glob -tails -directory ${destroot}${prefix}/share/man/man1 g*] {
66        ln -s ${prefix}/share/man/man1/${manpage}.gz ${destroot}${prefix}/libexec/gnubin/man/man1/[string range $manpage 1 end].gz
67    }
68}
69
70# Set the RUN_EXPENSIVE_TESTS environmental variable to 'yes' to run more
71# expensive tests.  Set the RUN_VERY_EXPENSIVE_TESTS environmental variable
72# to 'yes' to run even more expensive tests.
73test.run        yes
74test.target     check
75
76notes "
77    The tools provided by GNU coreutils are prefixed with the character 'g' by default to distinguish them from the BSD commands.
78    For example, cp becomes gcp and ls becomes gls.
79
80    If you want to use the GNU tools by default, add this directory to the front of your PATH environment variable:
81        ${prefix}/libexec/gnubin/
82"
Note: See TracBrowser for help on using the repository browser.