source: trunk/dports/sysutils/compare/Portfile

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

compare: fix build failure on Lion and up due to redefinition of getline

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 94240 2012-06-13 02:19:23Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                compare
6version             1.16
7revision            2
8categories          sysutils
9platforms           darwin
10maintainers         mww openmaintainer
11license             GPL-2
12description         fast replacement for cmp
13long_description    compare is similar to cmp but faster and with better \
14                    readable output. compare examines one file and standard in, or \
15                    two files on a byte by byte basis, and prints the file \
16                    position of the first difference it finds, first in decimal \
17                    and then in hexadecimal, followed by the differing byte \
18                    content in hexadecimal and a quoted character.
19
20homepage            ftp://ftp.berlios.de/pub/compare/
21master_sites        ${homepage}
22checksums           md5 b4fdc2ad3c07e6df23cfe02e923bd775 \
23                    rmd160  430f9fec01e5f9aefaa6d4a823b0ab1c693a0cdd \
24                    sha256  1808bf1899fe1f50533b04173804a84149154830550aaa50d47d229fcd304fd0
25
26patchfiles          patch-RULES-rules.prg \
27                    patch-compare-compare.1.diff \
28                    patch-compare-compare.c.diff \
29                    patch-getline.diff
30
31depends_build       port:smake
32
33use_configure       no
34
35# smake does not support the -j flag
36use_parallel_build  no
37
38build.cmd           ${prefix}/bin/smake
39build.target
40
41destroot.destdir    INS_BASE=${destroot}${prefix} \
42                    MANDIR=share/man
43post-destroot {
44    file delete -force ${destroot}${prefix}/share/man/man5 \
45        ${destroot}${prefix}/lib ${destroot}${prefix}/include
46    file rename ${destroot}${prefix}/bin/compare \
47        ${destroot}${prefix}/bin/scompare
48    file rename ${destroot}${prefix}/share/man/man1/compare.1 \
49        ${destroot}${prefix}/share/man/man1/scompare.1
50}
51
Note: See TracBrowser for help on using the repository browser.