public
Description: Git mirror of the MacPorts svn repo
Homepage: http://www.macports.org
Clone URL: git://github.com/kballard/macports.git
commit  cda9374b67b1aa4739034bc413a8f8664330f06a
tree    7ea9845550fe16548346874222e055685c882880
parent  225617ceae44987c69eddb43987a6b5fb655acf5
macports / dports / archivers / gnutar / Portfile
100644 52 lines (42 sloc) 1.869 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# $Id$
 
PortSystem 1.0
 
name gnutar
version 1.20
categories archivers
maintainers mww
description tar version of the GNU project
long_description \
    the gnutar program creates, adds files to, or extracts files from \
    an archive file in gnutar format, called a tarfile. A tarfile is \
    often a magnetic tape, but can be a floppy diskette or any regular \
    disk file.
 
homepage http://www.gnu.org/software/tar/
master_sites gnu:tar
checksums md5 1a7e17f27abf583b3b0bc059a827e68b \
                    sha1 4d4cda2ce857b5ea77b39dc718260ab09c145335 \
                    rmd160 cb5a708e847489e5370b83a433f3e847ce359e56
distname tar-${version}
use_bzip2 yes
platforms darwin
 
depends_lib port:gettext port:libiconv
 
configure.args --program-prefix=gnu \
                    --infodir=${prefix}/share/info
 
test.run yes
test.target check
 
post-destroot {
    xinstall -v -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -v -W ${worksrcpath} ABOUT-NLS AUTHORS COPYING ChangeLog \
        ChangeLog.1 INSTALL NEWS PORTS README THANKS TODO \
        ${destroot}${prefix}/share/doc/${name}
    delete ${destroot}${prefix}/lib/charset.alias
    file rename ${destroot}${prefix}/share/info/tar.info ${destroot}${prefix}/share/info/gnutar.info
    file rename ${destroot}${prefix}/share/info/tar.info-1 ${destroot}${prefix}/share/info/gnutar.info-1
    file rename ${destroot}${prefix}/share/info/tar.info-2 ${destroot}${prefix}/share/info/gnutar.info-2
}
 
livecheck.check  regex
livecheck.url  http://ftp.gnu.org/gnu/tar/?C=M&O=D
livecheck.regex  tar-(\[0-9\.\]+\[0-9\])\\.
 
platform darwin 9 {
  # gcc 4.0 fails to compile gnutar on 10.5 (probably will get fixed with XCode 3.1)
  configure.compiler  gcc-4.2
}