| 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 | |
|---|
| 4 | PortSystem 1.0 |
|---|
| 5 | PortGroup muniversal 1.0 |
|---|
| 6 | |
|---|
| 7 | name gsed |
|---|
| 8 | set my_name sed |
|---|
| 9 | version 4.2.1 |
|---|
| 10 | categories textproc |
|---|
| 11 | platforms darwin |
|---|
| 12 | maintainers nox openmaintainer |
|---|
| 13 | description GNU version of the stream editor, sed |
|---|
| 14 | |
|---|
| 15 | long_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 | |
|---|
| 23 | homepage http://www.gnu.org/software/${my_name}/ |
|---|
| 24 | master_sites gnu:${my_name} |
|---|
| 25 | distname ${my_name}-${version} |
|---|
| 26 | |
|---|
| 27 | checksums md5 f0fd4d7da574d4707e442285fd2d3b86 \ |
|---|
| 28 | sha1 502f5fa9aff891f0383baaeb1958b66dbc4b05c8 \ |
|---|
| 29 | rmd160 c7ee3b5d4e4faab966c7af092d783889f10afcaa |
|---|
| 30 | |
|---|
| 31 | depends_lib port:gettext \ |
|---|
| 32 | port:libiconv |
|---|
| 33 | |
|---|
| 34 | configure.args --infodir=${prefix}/share/info \ |
|---|
| 35 | --mandir=${prefix}/share/man \ |
|---|
| 36 | --program-prefix=g |
|---|
| 37 | |
|---|
| 38 | use_parallel_build yes |
|---|
| 39 | |
|---|
| 40 | set docdir ${prefix}/share/doc/${my_name}-${version} |
|---|
| 41 | |
|---|
| 42 | post-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 | |
|---|
| 52 | test.run yes |
|---|
| 53 | test.target check |
|---|
| 54 | |
|---|
| 55 | platform 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 | |
|---|
| 61 | variant 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 | } |
|---|