source: trunk/dports/sysutils/diffutils/Portfile

Last change on this file was 153909, checked in by mps@…, 9 months ago

diffutils: update to version 3.5.

  • 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 153909 2016-10-15 16:32:02Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                diffutils
7version             3.5
8categories          sysutils textproc devel
9license             GPL-3+
10maintainers         nomaintainer
11description         GNU diff utilities
12long_description \
13    diffutils contains the GNU diff, diff3, sdiff, and cmp utilities.   \
14    Their features are a superset of the Unix features and they are     \
15    significantly faster.
16
17platforms           darwin sunos
18homepage            http://www.gnu.org/software/diffutils/
19master_sites        gnu
20
21checksums           rmd160  879119efa7579737e82edf392889ad9459299bcf \
22                    sha256  dad398ccd5b9faca6b0ab219a036453f62a602a56203ac659b43e889bec35533
23
24use_xz              yes
25
26depends_lib         port:gettext
27
28patchfiles          patch-src_system.h.diff
29configure.args      --program-prefix=g \
30                    --infodir=${prefix}/share/info \
31                    --mandir=${prefix}/share/man
32
33set docdir          ${prefix}/share/doc/${name}
34
35post-destroot {
36    xinstall -m 0755 -d ${destroot}${docdir}
37    xinstall -m 0644 -W ${worksrcpath} ABOUT-NLS AUTHORS ChangeLog COPYING NEWS README THANKS \
38        ${destroot}${docdir}
39
40    xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin
41    foreach binary [glob -tails -directory ${destroot}${prefix}/bin g*] {
42        ln -s ${prefix}/bin/${binary} ${destroot}${prefix}/libexec/gnubin/[string range $binary 1 end]
43    }
44    xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin/man/man1
45    foreach manpage [glob -tails -directory ${destroot}${prefix}/share/man/man1 g*] {
46        ln -s ${prefix}/share/man/man1/${manpage}.gz ${destroot}${prefix}/libexec/gnubin/man/man1/[string range $manpage 1 end].gz
47    }
48}
49
50test.run        yes
51test.target     check
52
53livecheck.type  regex
54livecheck.url   http://ftp.gnu.org/gnu/${name}/?C=M&O=D
55livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)
Note: See TracBrowser for help on using the repository browser.