New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

root/trunk/dports/archivers/gnutar/Portfile

Revision 48158, 2.0 KB (checked in by mww@…, 4 months ago)

add 'with_default_names' variant (#18373)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1# $Id$
2
3PortSystem 1.0
4
5name                gnutar
6version             1.22
7categories          archivers
8maintainers         mww
9description         tar version of the GNU project
10long_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
16homepage            http://www.gnu.org/software/tar/
17master_sites        gnu:tar
18checksums           md5     07fa517027f426bb80f5f5ff91b63585 \
19                    sha1    ca99a6ade7308f9293bdb04048cb335e52c63215 \
20                    rmd160  62436792e47586f00a9aa8f5eaac87b9ce61d503
21distname            tar-${version}
22use_bzip2           yes
23platforms           darwin
24
25depends_lib         port:gettext port:libiconv
26
27configure.args      --program-prefix=gnu \
28                    --infodir=${prefix}/share/info
29
30test.run            yes
31test.target         check
32
33post-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
43variant 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
54livecheck.check regex
55livecheck.url   http://ftp.gnu.org/gnu/tar/?C=M&O=D
56livecheck.regex tar-(\[0-9\.\]+\[0-9\])\\.
57
Note: See TracBrowser for help on using the browser.