source: trunk/dports/sysutils/moreutils/Portfile @ 138744

Last change on this file since 138744 was 138744, checked in by khindenburg@…, 4 years ago

moreutils: change variable to avoid confusion

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 138744 2015-07-18 01:10:32Z khindenburg@macports.org $
3
4PortSystem              1.0
5
6name                    moreutils
7conflicts               ts
8version                 0.56
9categories              sysutils
10platforms               darwin
11maintainers             khindenburg openmaintainer
12license                 GPL-2+
13
14description             a collection of the unix tools that nobody thought \
15                        to write thirty years ago.
16
17long_description        moreutils includes the following utilities: \
18                        \n- chronic: runs a command quietly unless it fails \
19                        \n- combine: combine the lines in two files using boolean operations \
20                        \n- errno: look up errno names and descriptions \
21                        \n- ifne: run a program if the standard input is not empty \
22                        \n- isutf8: check if a file or standard input is utf-8 \
23                        \n- lckdo: run a program with a lock held. \
24                        \n- mispipe: pipe two commands, returning the exit status of the first \
25                        \n- pee: tee standard input to pipes \
26                        \n- sponge: soak up standard input and write to a file \
27                        \n- ts: timestamp standard input \
28                        \n- vidir: edit a directory in your text editor \
29                        \n- vipe: insert a text editor into a pipe \
30                        \n- zrun: automatically uncompress arguments to command
31
32homepage                http://joeyh.name/code/moreutils
33
34master_sites            debian:m/${name}
35distname                ${name}_${version}.orig
36worksrcdir              ${name}-${version}
37
38checksums               rmd160  9371603e3a56d7502f6d796d8fec300201f57bf9 \
39                        sha256  ec4b7a1e1d1e1d6ec606d2877301ec06c6cf4091776687d9b76f4d019705e77f
40
41# set pbranch to desired perl version
42# currently 5.22 (#48365)
43set pbranch             5.22
44
45depends_run             port:perl${pbranch} \
46                        port:p${pbranch}-ipc-run
47
48patchfiles              patch-Makefile.diff
49
50post-patch {
51    reinplace "s|/usr/bin/perl|${prefix}/bin/perl${pbranch}|" \
52        ${worksrcpath}/vidir ${worksrcpath}/vipe \
53        ${worksrcpath}/ts ${worksrcpath}/combine \
54        ${worksrcpath}/zrun ${worksrcpath}/chronic
55}
56
57use_configure           no
58
59variant universal {}
60
61build.args-append       CC=${configure.cc} \
62                        CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
63                        LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" \
64                        DOCBOOK2XMAN=docbook2man \
65                        PREFIX=${prefix}
66
67destroot.args-append    PREFIX=${prefix}
68
69default_variants        +doc
70
71variant doc description {Install man pages} {
72    depends_build-append    port:docbook-xml-4.4 port:docbook2X
73    build.target-append     doc
74    destroot.target-append  install-doc
75}
76
77notes "The binary parallel is no longer in this port; please install the port parallel instead."
78
79platform darwin 8 {
80    # ticket #24279
81    pre-fetch {
82        error "$name does not build on Mac OS X 10.4"
83    }
84}
85
86livecheck.type          regex
87livecheck.regex         {version ([0-9.]+)}
Note: See TracBrowser for help on using the repository browser.