source: trunk/dports/archivers/gnutar/Portfile @ 71533

Last change on this file since 71533 was 71533, checked in by ryandesign@…, 10 years ago

In the interest that all portfiles exemplify correct portfile writing techniques, remove slash before ${prefix} which is not needed because ${prefix} already begins with a slash

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 71533 2010-09-15 20:26:12Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                gnutar
6version             1.23
7categories          archivers
8maintainers         mww
9license             GPLv3
10description         tar version of the GNU project
11long_description \
12    the gnutar program creates, adds files to, or extracts files from   \
13    an archive file in gnutar format, called a tarfile. A tarfile is    \
14    often a magnetic tape, but can be a floppy diskette or any regular  \
15    disk file.
16
17homepage            http://www.gnu.org/software/tar/
18master_sites        gnu:tar
19checksums           md5     41e2ca4b924ec7860e51b43ad06cdb7e \
20                    sha1    6f3b1443a019da02e4ec20a1446d4aa54b488071 \
21                    rmd160  e79062b7f69d80b734445306f69fb8b96801e909
22distname            tar-${version}
23use_bzip2           yes
24platforms           darwin
25
26depends_lib         port:gettext port:libiconv
27
28configure.args      --program-prefix=gnu \
29                    --infodir=${prefix}/share/info
30
31test.run            yes
32test.target         check
33
34post-destroot {
35    xinstall -v -m 755 -d ${destroot}${prefix}/share/doc/${name}
36    xinstall -v -W ${worksrcpath} ABOUT-NLS AUTHORS COPYING ChangeLog \
37        ChangeLog.1 INSTALL NEWS README THANKS TODO \
38        ${destroot}${prefix}/share/doc/${name}
39    file rename ${destroot}${prefix}/share/info/tar.info ${destroot}${prefix}/share/info/gnutar.info
40    file rename ${destroot}${prefix}/share/info/tar.info-1 ${destroot}${prefix}/share/info/gnutar.info-1
41    file rename ${destroot}${prefix}/share/info/tar.info-2 ${destroot}${prefix}/share/info/gnutar.info-2
42
43    xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin
44    ln -sf ${prefix}/bin/gnutar ${destroot}${prefix}/libexec/gnubin/tar
45}
46
47livecheck.type  regex
48livecheck.url   http://ftp.gnu.org/gnu/tar/?C=M&O=D
49livecheck.regex tar-(\[0-9\.\]+\[0-9\])\\.
50
Note: See TracBrowser for help on using the repository browser.