source: trunk/dports/textproc/gsed/Portfile

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

gsed: Add maintainer. (#44977)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
RevLine 
[50778]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
[20476]2# $Id: Portfile 125299 2014-09-12 21:56:47Z mf2k@macports.org $
[3904]3
[28880]4PortSystem      1.0
5
[22346]6name            gsed
[27669]7set my_name     sed
[100788]8version         4.2.2
[22346]9categories      textproc
[28880]10platforms       darwin
[76326]11license         GPL-3+
[81392]12installs_libs   no
[125299]13maintainers     gmail.com:mschamschula openmaintainer
[28880]14description     GNU version of the stream editor, sed
[1904]15
[22346]16long_description \
[48484]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 \
[22346]22    of a string within a file.
[3904]23
[28880]24homepage        http://www.gnu.org/software/${my_name}/
25master_sites    gnu:${my_name}
26distname        ${my_name}-${version}
27
[100788]28checksums       rmd160  c59e8bf071dbef14bad1cc0e50f00f79a73947e8 \
29                sha256  fea0a94d4b605894f3e2d5572e3f96e4413bcad3a085aae7367c2cf07908b2ff
[28880]30
[31407]31depends_lib     port:gettext \
32                port:libiconv
33
[22346]34configure.args  --infodir=${prefix}/share/info \
35                --mandir=${prefix}/share/man \
[33572]36                --program-prefix=g
[22364]37
[36619]38use_parallel_build  yes
39
[23091]40post-destroot {
[29461]41    foreach i [glob -tails -directory ${destroot}${prefix}/share/info *.info*] {
[33572]42        move ${destroot}${prefix}/share/info/${i} ${destroot}${prefix}/share/info/g${i}
[23091]43    }
[27669]44
[86400]45    set docdir ${prefix}/share/doc/${name}
[31407]46    xinstall -d ${destroot}${docdir}
[27669]47    xinstall -m 0644 -W ${worksrcpath} AUTHORS BUGS COPYING ChangeLog NEWS README THANKS \
48        ${destroot}${docdir}
[73585]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    }
[76845]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    }
[27669]58}
59
60test.run        yes
61test.target     check
62
[48484]63platform darwin 8 {
64    # Bad things happen running 64-bit gsed on Tiger. Fine on Leopard.
65    # See https://trac.macports.org/ticket/18297.
[73561]66    supported_archs i386 ppc
[48484]67}
Note: See TracBrowser for help on using the repository browser.