Ticket #43957: Portfile

File Portfile, 2.0 KB (added by ksze (Kal Sze), 10 years ago)

Portfile

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 89455 2012-01-29 23:49:06Z dports@macports.org $
3
4PortSystem          1.0
5
6name                diffutils
7version             3.3
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  5785f14f89923ad115957b88c0bb4766cd4ededc \
22                    sha256  a25e89a8ab65fded1731e4186be1bb25cda967834b6df973599cdcd5abdfc19c
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+)*)