source: trunk/dports/textproc/gsed/Portfile

Last change on this file was 125299, checked in by mf2k@…, 3 years ago

gsed: Add maintainer. (#44977)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
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: Portfile 125299 2014-09-12 21:56:47Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            gsed
7set my_name     sed
8version         4.2.2
9categories      textproc
10platforms       darwin
11license         GPL-3+
12installs_libs   no
13maintainers     gmail.com:mschamschula openmaintainer
14description     GNU version of the stream editor, sed
15
16long_description \
17    Sed (streams editor) isn't really a true text editor or text \
18    processor. Instead, it is used to filter text, i.e., it takes text \
19    input and performs some operation (or set of operations) on it and \
20    outputs the modified text. Sed is typically used for extracting part \
21    of a file using pattern matching or substituting multiple occurrences \
22    of a string within a file.
23
24homepage        http://www.gnu.org/software/${my_name}/
25master_sites    gnu:${my_name}
26distname        ${my_name}-${version}
27
28checksums       rmd160  c59e8bf071dbef14bad1cc0e50f00f79a73947e8 \
29                sha256  fea0a94d4b605894f3e2d5572e3f96e4413bcad3a085aae7367c2cf07908b2ff
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
40post-destroot {
41    foreach i [glob -tails -directory ${destroot}${prefix}/share/info *.info*] {
42        move ${destroot}${prefix}/share/info/${i} ${destroot}${prefix}/share/info/g${i}
43    }
44
45    set docdir ${prefix}/share/doc/${name}
46    xinstall -d ${destroot}${docdir}
47    xinstall -m 0644 -W ${worksrcpath} AUTHORS BUGS COPYING ChangeLog NEWS README THANKS \
48        ${destroot}${docdir}
49
50    xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin
51    foreach binary [glob -tails -directory ${destroot}${prefix}/bin g*] {
52        ln -s ${prefix}/bin/${binary} ${destroot}${prefix}/libexec/gnubin/[string range $binary 1 end]
53    }
54    xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin/man/man1
55    foreach manpage [glob -tails -directory ${destroot}${prefix}/share/man/man1 g*] {
56        ln -s ${prefix}/share/man/man1/${manpage}.gz ${destroot}${prefix}/libexec/gnubin/man/man1/[string range $manpage 1 end].gz
57    }
58}
59
60test.run        yes
61test.target     check
62
63platform darwin 8 {
64    # Bad things happen running 64-bit gsed on Tiger. Fine on Leopard.
65    # See https://trac.macports.org/ticket/18297.
66    supported_archs i386 ppc
67}
Note: See TracBrowser for help on using the repository browser.