| 1 | # $Id$ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | |
|---|
| 5 | name m4 |
|---|
| 6 | version 1.4.13 |
|---|
| 7 | categories devel |
|---|
| 8 | maintainers blair openmaintainer |
|---|
| 9 | platforms darwin |
|---|
| 10 | description GNU macro processor |
|---|
| 11 | |
|---|
| 12 | long_description \ |
|---|
| 13 | GNU `m4' is an implementation of the traditional Unix macro \ |
|---|
| 14 | processor. It is mostly SVR4 compatible, although it has some \ |
|---|
| 15 | extensions (for example, handling more than 9 positional parameters \ |
|---|
| 16 | to macros). `m4' also has built-in functions for including files, \ |
|---|
| 17 | running shell commands, doing arithmetic, etc. Autoconf needs GNU \ |
|---|
| 18 | `m4' for generating `configure' scripts, but not for running them. |
|---|
| 19 | |
|---|
| 20 | homepage http://www.gnu.org/software/m4/ |
|---|
| 21 | master_sites gnu |
|---|
| 22 | use_bzip2 yes |
|---|
| 23 | |
|---|
| 24 | checksums md5 28f9ccd3ac4da45409251008b911d677 \ |
|---|
| 25 | sha1 7ba1834ebf96d0520d526c1c9f5764cc869a9f42 \ |
|---|
| 26 | rmd160 36d624b8a0f27bbf239bb92548d812d879c1039a |
|---|
| 27 | |
|---|
| 28 | patchfiles patch-test-c-stack2.sh.diff |
|---|
| 29 | |
|---|
| 30 | configure.args --program-prefix=g \ |
|---|
| 31 | gl_cv_lib_sigsegv=no |
|---|
| 32 | |
|---|
| 33 | use_parallel_build yes |
|---|
| 34 | |
|---|
| 35 | post-destroot { |
|---|
| 36 | move ${destroot}${prefix}/share/info/m4.info ${destroot}${prefix}/share/info/gm4.info |
|---|
| 37 | |
|---|
| 38 | set docdir ${prefix}/share/doc/${name}-${version} |
|---|
| 39 | xinstall -d ${destroot}${docdir} |
|---|
| 40 | xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README THANKS \ |
|---|
| 41 | TODO ${destroot}${docdir} |
|---|
| 42 | } |
|---|
| 43 | |
|---|
| 44 | test.run yes |
|---|
| 45 | test.target check |
|---|
| 46 | test.env TMPDIR=/tmp |
|---|
| 47 | |
|---|
| 48 | variant with_default_names description {Install files without 'g' prefix} { |
|---|
| 49 | post-destroot { |
|---|
| 50 | foreach {d} {bin share/man/man1} { |
|---|
| 51 | foreach {f} [glob -tails -directory ${destroot}${prefix}/${d} g*] { |
|---|
| 52 | ln -sf ${prefix}/${d}/${f} ${destroot}${prefix}/${d}/[string range ${f} 1 end] |
|---|
| 53 | } |
|---|
| 54 | } |
|---|
| 55 | } |
|---|
| 56 | } |
|---|
| 57 | |
|---|
| 58 | livecheck.check regex |
|---|
| 59 | livecheck.url http://ftp.gnu.org/gnu/${name}/?C=M&O=D |
|---|
| 60 | livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)\\.tar\\.bz2 |
|---|