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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name diffutils |
---|
7 | version 3.3 |
---|
8 | categories sysutils textproc devel |
---|
9 | license GPL-3+ |
---|
10 | maintainers nomaintainer |
---|
11 | description GNU diff utilities |
---|
12 | long_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 | |
---|
17 | platforms darwin sunos |
---|
18 | homepage http://www.gnu.org/software/diffutils/ |
---|
19 | master_sites gnu |
---|
20 | |
---|
21 | checksums rmd160 5785f14f89923ad115957b88c0bb4766cd4ededc \ |
---|
22 | sha256 a25e89a8ab65fded1731e4186be1bb25cda967834b6df973599cdcd5abdfc19c |
---|
23 | |
---|
24 | use_xz yes |
---|
25 | |
---|
26 | depends_lib port:gettext |
---|
27 | |
---|
28 | patchfiles patch-src_system.h.diff |
---|
29 | configure.args --program-prefix=g \ |
---|
30 | --infodir=${prefix}/share/info \ |
---|
31 | --mandir=${prefix}/share/man |
---|
32 | |
---|
33 | set docdir ${prefix}/share/doc/${name} |
---|
34 | |
---|
35 | post-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 | |
---|
50 | test.run yes |
---|
51 | test.target check |
---|
52 | |
---|
53 | livecheck.type regex |
---|
54 | livecheck.url http://ftp.gnu.org/gnu/${name}/?C=M&O=D |
---|
55 | livecheck.regex ${name}-(\\d+(?:\\.\\d+)*) |
---|