source: trunk/dports/sysutils/moreutils/Portfile

Last change on this file was 151893, checked in by khindenburg@…, 11 months ago

moreutils: use perl 5.24 #52081; add missing deps for ts

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