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

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

screen: new maintainer. Part of #48583.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.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 139439 2015-08-17 18:47:19Z ionic@macports.org $
3
4PortSystem          1.0
5
6name                screen
7version             4.2.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  20ddf4a33f91e60a42a31f02aa2a30a9c5cba9b5 \
33                    sha256  5468545047e301d2b3579f9d9ce00466d14a7eec95ce806e3834a3d6b0b9b080 \
34                    18 \
35                    rmd160  bd143058417e1d4c040a2589fdfbf8f9203f0b4c \
36                    sha256  4d4b674a61dab6bac9b4207307c5f020fa670fc3948c39e7ea93c7fb9dfb5174 \
37                    vproc_priv.h \
38                    rmd160  ea1fb112d58a168c581ee58e761c26f7caed40ec \
39                    sha256  dcd2786d82865fb10542c20e97d7052110f7ca9a551f2ab5628c607f20e2bb2f
40
41patchfiles          patch-maxargs \
42                    patch-windowsize \
43                    patch-Makefile.in \
44                    patch-process.c-fix-bogus-strncpy-size.diff
45depends_lib         port:ncurses
46
47extract.only        ${distname}${extract.suffix}
48post-extract {
49    file copy ${distpath}/18 ${workpath}
50}
51configure.args      --mandir=${prefix}/share/man \
52                    --infodir=${prefix}/share/info \
53                    --enable-telnet \
54                    --enable-colors256 \
55                    --enable-rxvt_osc
56
57post-destroot {
58    xinstall -m 644 ${workpath}/18 ${destroot}${prefix}/share/${name}/utf8encodings
59    xinstall -m 644 ${worksrcpath}/etc/etcscreenrc ${destroot}${prefix}/etc/screenrc
60    xinstall -m 644 ${worksrcpath}/terminfo/screencap ${destroot}${prefix}/etc/termcap
61    system "tic ${worksrcpath}/terminfo/screeninfo.src"
62}
63
64platform darwin {
65    patchfiles-append   patch-configure-libelf
66}
67
68platform darwin 9 {
69    post-patch {
70        reinplace s|^deflogin|#deflogin| ${worksrcpath}/etc/etcscreenrc
71    }
72
73    # These patches are based on http://www.opensource.apple.com/darwinsource/10.5.6/screen-12/patches/
74    # The vproc_priv.h is the private header from launchd, used in Apple's 10.5 screen patches
75    # We copied the header file from http://launchd.macosforge.org/trac/browser/trunk/launchd/src/vproc_priv.h, r23776
76    distfiles-append    vproc_priv.h:launchd_priv_header
77    post-extract {
78        file copy ${distpath}/vproc_priv.h ${worksrcpath}
79    }
80    patchfiles-append   patch-config.h.in patch-configure patch-window.c patch-screen.c-leopard
81}
82
83if {${os.platform} eq "darwin" && ${os.major} >= 10 && ${os.major} <= 13} {
84    # These patches are based on http://www.opensource.apple.com/source/screen/screen-16/patches/
85    # The vproc_priv.h is the private header from launchd, used in Apple's 10.6 screen patches
86    # We copied the header file from http://launchd.macosforge.org/trac/browser/trunk/launchd/src/vproc_priv.h, r23776
87    distfiles-append    vproc_priv.h:launchd_priv_header
88    post-extract {
89        file copy ${distpath}/vproc_priv.h ${worksrcpath}
90    }
91    patchfiles-append   patch-config.h.in patch-configure patch-window.c patch-screen.c
92}
93
94notes "
95Any screens running before upgrading, will not be available, post-install.
96"
Note: See TracBrowser for help on using the repository browser.