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

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

ncurses: update to 6.0, rev bump dependents due to new ABI

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