source: trunk/dports/sysutils/findutils/Portfile

Last change on this file was 144987, checked in by devans@…, 20 months ago

findutils: update to version 4.6.0 (#50417).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.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 144987 2016-01-23 15:51:03Z ryandesign@macports.org $
3
4PortSystem      1.0
5PortGroup       muniversal 1.0
6
7name            findutils
8version         4.6.0
9categories      sysutils
10license         GPL-3+
11installs_libs   no
12platforms       darwin
13maintainers     nomaintainer
14description     findutils contains GNU find, xargs, and locate
15
16long_description \
17    ${description}
18
19homepage        http://www.gnu.org/software/findutils/
20master_sites    gnu
21
22checksums       rmd160  0745d081f4a53d7e8b6c17dc8235155492ff4d92 \
23                sha256  ded4c9f73731cd48fec3b6bdaccce896473b6d8e337e9612e16cf1431bb1169d
24
25depends_lib     port:gettext \
26                port:libiconv
27
28configure.env   SORT=/usr/bin/sort
29
30configure.args  --program-prefix=g
31
32use_parallel_build  yes
33
34test.run        yes
35test.target     check
36
37post-destroot {
38    move ${destroot}${prefix}/share/info/find.info ${destroot}${prefix}/share/info/gfind.info
39    delete ${destroot}${prefix}/lib/charset.alias
40
41    set docdir ${prefix}/share/doc/${name}-${version}
42    xinstall -d ${destroot}${docdir}
43    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
44        THANKS TODO ${destroot}${docdir}
45
46    xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin
47    foreach binary [glob -tails -directory ${destroot}${prefix}/bin g*] {
48        ln -s ${prefix}/bin/${binary} ${destroot}${prefix}/libexec/gnubin/[string range $binary 1 end]
49    }
50    xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin/man/man1
51    foreach manpage [glob -tails -directory ${destroot}${prefix}/share/man/man1 g*] {
52        ln -s ${prefix}/share/man/man1/${manpage}.gz ${destroot}${prefix}/libexec/gnubin/man/man1/[string range $manpage 1 end].gz
53    }
54}
Note: See TracBrowser for help on using the repository browser.