source: trunk/dports/sysutils/watch/Portfile @ 139495

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

watch: add modeline, unify whitespace, ignoring maintainership because watch is broken with ncurses 6

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 139495 2015-08-18 20:52:39Z cal@macports.org $
3
4PortSystem 1.0
5name            watch
6version         3.3.6
7revision        1
8categories      sysutils
9platforms       darwin
10license         GPL-2
11maintainers     yahoo.com:mjhsieh
12description     watch executes a program periodically, showing output fullscreen
13long_description \
14    watch is like "top" for arbitrary commands. It runs command repeatedly, \
15    displaying its output (the first screen full). This  allows you to watch \
16    the program output change over time. This is part of the linux "procps" \
17    package.
18
19homepage        http://sourceforge.net/projects/procps-ng/
20master_sites    sourceforge:procps-ng
21distname        procps-ng-${version}
22use_xz yes
23
24checksums       rmd160  44b6abdbf6e6fdebdf2f1848207392314b542c05 \
25                sha256  d09ac4df3793f632d481f6547c39c6d835a7aa7bd5a302fcb0885ff7691c124c
26
27depends_lib     port:ncurses
28
29patchfiles      0001-configure-check-for-program_invocation_name.patch \
30                0002-watch-Remove-unused-header.patch \
31                0003-configure-Check-for-stdio_ext.h.patch \
32                0004-configure-Check-for-error.h.patch
33patch.pre_args  -p1
34
35# Disable gettext due to linking problems
36# and we are not going to install any catalogs anyway
37configure.args  --disable-nls
38
39variant universal {}
40if {[variant_isset universal]} {
41    set archflags ${configure.universal_cflags}
42} else {
43    set archflags ${configure.cc_archflags}
44}
45
46build.target    watch
47build.args      CC="${configure.cc} ${archflags}" \
48                LDFLAGS="${configure.ldflags}" \
49                AM_LDFLAGS=""
50
51pre-build {
52    build.args-append   CPPFLAGS="[exec ${prefix}/bin/ncurses5-config --cflags]"
53}
54
55destroot {
56        xinstall -m 0755 ${worksrcpath}/watch ${destroot}${prefix}/bin
57        xinstall -m 0644 ${worksrcpath}/watch.1 \
58                ${destroot}${prefix}/share/man/man1
59}
60
61livecheck.regex procps-ng-(\[0-9.\]*)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.