source: trunk/dports/sysutils/screen/Portfile @ 139440

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

screen: update to 4.3.1. Patch provided by (new) maintainer. Fixes: #48583.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.2 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 139440 2015-08-17 18:47:34Z ionic@macports.org $
3
4PortSystem          1.0
5
6name                screen
7version             4.3.1
8homepage            http://www.gnu.org/software/screen/
9description         Screen manager with VT100/ANSI terminal emulation
10long_description    \
11    Screen is a full-screen window manager that multiplexes a physical \
12    terminal between several processes (typically interactive shells). \
13    Each virtual terminal provides the functions of a DEC VT100 terminal \
14    and, in addition, several control functions from the ANSI X3.64 (ISO \
15    6429) and ISO 2022 standards (e.g. insert/delete line and support for \
16    multiple character sets). There is a scrollback history buffer for each \
17    virtual terminal and a copy-and-paste mechanism that allows moving text \
18    regions between windows.
19categories          sysutils
20license             GPL-3+
21platforms           darwin
22maintainers         gmail.com:youvegotmoxie
23master_sites        gnu:${name} \
24                    http://www.cis.nctu.edu.tw/~is85005/dports/screen/:encoding \
25                    http://www.cis.nctu.edu.tw/~is85005/dports/screen/r23776/:launchd_priv_header
26
27# The file '18' above is a fix for UTF8-to-Big5HKSCS encoding translation.
28# Reference: http://freebsd.sinica.edu.tw/~statue/index.php?file=20020513
29distfiles-append    18:encoding
30
31checksums           ${distname}${extract.suffix} \
32                    rmd160  9de183f86e36b211d56c35e58598728f332faec9 \
33                    sha256  fa4049f8aee283de62e283d427f2cfd35d6c369b40f7f45f947dbfd915699d63 \
34                    18 \
35                    rmd160  bd143058417e1d4c040a2589fdfbf8f9203f0b4c \
36                    sha256  4d4b674a61dab6bac9b4207307c5f020fa670fc3948c39e7ea93c7fb9dfb5174 \
37                    vproc_priv.h \
38                    rmd160  ea1fb112d58a168c581ee58e761c26f7caed40ec \
39                    sha256  dcd2786d82865fb10542c20e97d7052110f7ca9a551f2ab5628c607f20e2bb2f
40
41patchfiles          patch-utmp.c.diff \
42                    patch-windowsize.diff \
43                    patch-Makefile.in.diff
44depends_lib         port:ncurses
45
46extract.only        ${distname}${extract.suffix}
47post-extract {
48    file copy ${distpath}/18 ${workpath}
49}
50configure.args      --mandir=${prefix}/share/man \
51                    --infodir=${prefix}/share/info \
52                    --enable-telnet \
53                    --enable-colors256 \
54                    --enable-rxvt_osc
55
56post-destroot {
57    xinstall -m 644 ${workpath}/18 ${destroot}${prefix}/share/${name}/utf8encodings
58    xinstall -m 644 ${worksrcpath}/etc/etcscreenrc ${destroot}${prefix}/etc/screenrc
59    xinstall -m 644 ${worksrcpath}/terminfo/screencap ${destroot}${prefix}/etc/termcap
60    system "tic ${worksrcpath}/terminfo/screeninfo.src"
61}
62
63platform darwin {
64    patchfiles-append   patch-configure-libelf.diff
65}
66
67platform darwin 9 {
68    post-patch {
69        reinplace s|^deflogin|#deflogin| ${worksrcpath}/etc/etcscreenrc
70    }
71
72    # These patches are based on http://www.opensource.apple.com/darwinsource/10.5.6/screen-12/patches/
73    # The vproc_priv.h is the private header from launchd, used in Apple's 10.5 screen patches
74    # We copied the header file from http://launchd.macosforge.org/trac/browser/trunk/launchd/src/vproc_priv.h, r23776
75    distfiles-append    vproc_priv.h:launchd_priv_header
76    post-extract {
77        file copy ${distpath}/vproc_priv.h ${worksrcpath}
78    }
79    patchfiles-append   patch-config.h.in patch-configure patch-window.c patch-screen.c-leopard
80}
81
82if {${os.platform} eq "darwin" && ${os.major} >= 10 && ${os.major} <= 13} {
83    # These patches are based on http://www.opensource.apple.com/source/screen/screen-16/patches/
84    # The vproc_priv.h is the private header from launchd, used in Apple's 10.6 screen patches
85    # We copied the header file from http://launchd.macosforge.org/trac/browser/trunk/launchd/src/vproc_priv.h, r23776
86    distfiles-append    vproc_priv.h:launchd_priv_header
87    post-extract {
88        file copy ${distpath}/vproc_priv.h ${worksrcpath}
89    }
90    patchfiles-append   patch-config.h.in patch-configure patch-window.c patch-screen.c
91}
92
93notes "
94Any screens running before upgrading, will not be available, post-install.
95"
Note: See TracBrowser for help on using the repository browser.