| 1 | # $Id$ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | |
|---|
| 5 | name gnutar |
|---|
| 6 | version 1.22 |
|---|
| 7 | categories archivers |
|---|
| 8 | maintainers mww |
|---|
| 9 | description tar version of the GNU project |
|---|
| 10 | long_description \ |
|---|
| 11 | the gnutar program creates, adds files to, or extracts files from \ |
|---|
| 12 | an archive file in gnutar format, called a tarfile. A tarfile is \ |
|---|
| 13 | often a magnetic tape, but can be a floppy diskette or any regular \ |
|---|
| 14 | disk file. |
|---|
| 15 | |
|---|
| 16 | homepage http://www.gnu.org/software/tar/ |
|---|
| 17 | master_sites gnu:tar |
|---|
| 18 | checksums md5 07fa517027f426bb80f5f5ff91b63585 \ |
|---|
| 19 | sha1 ca99a6ade7308f9293bdb04048cb335e52c63215 \ |
|---|
| 20 | rmd160 62436792e47586f00a9aa8f5eaac87b9ce61d503 |
|---|
| 21 | distname tar-${version} |
|---|
| 22 | use_bzip2 yes |
|---|
| 23 | platforms darwin |
|---|
| 24 | |
|---|
| 25 | depends_lib port:gettext port:libiconv |
|---|
| 26 | |
|---|
| 27 | configure.args --program-prefix=gnu \ |
|---|
| 28 | --infodir=${prefix}/share/info |
|---|
| 29 | |
|---|
| 30 | test.run yes |
|---|
| 31 | test.target check |
|---|
| 32 | |
|---|
| 33 | post-destroot { |
|---|
| 34 | xinstall -v -m 755 -d ${destroot}${prefix}/share/doc/${name} |
|---|
| 35 | xinstall -v -W ${worksrcpath} ABOUT-NLS AUTHORS COPYING ChangeLog \ |
|---|
| 36 | ChangeLog.1 INSTALL NEWS PORTS README THANKS TODO \ |
|---|
| 37 | ${destroot}${prefix}/share/doc/${name} |
|---|
| 38 | file rename ${destroot}${prefix}/share/info/tar.info ${destroot}${prefix}/share/info/gnutar.info |
|---|
| 39 | file rename ${destroot}${prefix}/share/info/tar.info-1 ${destroot}${prefix}/share/info/gnutar.info-1 |
|---|
| 40 | file rename ${destroot}${prefix}/share/info/tar.info-2 ${destroot}${prefix}/share/info/gnutar.info-2 |
|---|
| 41 | } |
|---|
| 42 | |
|---|
| 43 | variant with_default_names description {Install files without 'gnu' prefix} { |
|---|
| 44 | post-destroot { |
|---|
| 45 | foreach {d} {bin libexec share/info} { |
|---|
| 46 | foreach {f} [glob -tails -directory ${destroot}${prefix}/${d} gnu*] { |
|---|
| 47 | ln -sf ${prefix}/${d}/${f} ${destroot}${prefix}/${d}/[string range ${f} 3 end] |
|---|
| 48 | } |
|---|
| 49 | } |
|---|
| 50 | } |
|---|
| 51 | } |
|---|
| 52 | |
|---|
| 53 | |
|---|
| 54 | livecheck.check regex |
|---|
| 55 | livecheck.url http://ftp.gnu.org/gnu/tar/?C=M&O=D |
|---|
| 56 | livecheck.regex tar-(\[0-9\.\]+\[0-9\])\\. |
|---|
| 57 | |
|---|