New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

root/trunk/dports/textproc/gsed/Portfile

Revision 53040, 2.3 KB (checked in by nox@…, 6 days ago)

gsed: Update to 4.2.1.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem      1.0
5PortGroup       muniversal 1.0
6
7name            gsed
8set my_name     sed
9version         4.2.1
10categories      textproc
11platforms       darwin
12maintainers     nox openmaintainer
13description     GNU version of the stream editor, sed
14
15long_description \
16    Sed (streams editor) isn't really a true text editor or text \
17    processor. Instead, it is used to filter text, i.e., it takes text \
18    input and performs some operation (or set of operations) on it and \
19    outputs the modified text. Sed is typically used for extracting part \
20    of a file using pattern matching or substituting multiple occurrences \
21    of a string within a file.
22
23homepage        http://www.gnu.org/software/${my_name}/
24master_sites    gnu:${my_name}
25distname        ${my_name}-${version}
26
27checksums       md5     f0fd4d7da574d4707e442285fd2d3b86 \
28                sha1    502f5fa9aff891f0383baaeb1958b66dbc4b05c8 \
29                rmd160  c7ee3b5d4e4faab966c7af092d783889f10afcaa
30
31depends_lib     port:gettext \
32                port:libiconv
33
34configure.args  --infodir=${prefix}/share/info \
35                --mandir=${prefix}/share/man \
36                --program-prefix=g
37
38use_parallel_build  yes
39
40set docdir      ${prefix}/share/doc/${my_name}-${version}
41
42post-destroot {
43    foreach i [glob -tails -directory ${destroot}${prefix}/share/info *.info*] {
44        move ${destroot}${prefix}/share/info/${i} ${destroot}${prefix}/share/info/g${i}
45    }
46
47    xinstall -d ${destroot}${docdir}
48    xinstall -m 0644 -W ${worksrcpath} AUTHORS BUGS COPYING ChangeLog NEWS README THANKS \
49        ${destroot}${docdir}
50}
51
52test.run        yes
53test.target     check
54
55platform darwin 8 {
56    # Bad things happen running 64-bit gsed on Tiger. Fine on Leopard.
57    # See https://trac.macports.org/ticket/18297.
58    set universal_archs_supported {i386 ppc}
59}
60
61variant with_default_names description {Install files without 'g' prefix} {
62    post-destroot {
63        foreach {d} {bin share/info share/man/man1} {
64            foreach {f} [glob -tails -directory ${destroot}${prefix}/${d} g*] {
65                ln -sf ${prefix}/${d}/${f} ${destroot}${prefix}/${d}/[string range ${f} 1 end]
66            }
67        }
68    }
69}
Note: See TracBrowser for help on using the browser.