source: trunk/dports/sysutils/screen/Portfile

Last change on this file was 140040, checked in by ryandesign@…, 17 months ago

screen: use a different server for 18 and vproc_priv.h distfiles (#48790)

  • 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 140040 2015-09-08 00:02:56Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                screen
7version             4.3.1
8revision            1
9homepage            http://www.gnu.org/software/screen/
10description         Screen manager with VT100/ANSI terminal emulation
11long_description    \
12    Screen is a full-screen window manager that multiplexes a physical \
13    terminal between several processes (typically interactive shells). \
14    Each virtual terminal provides the functions of a DEC VT100 terminal \
15    and, in addition, several control functions from the ANSI X3.64 (ISO \
16    6429) and ISO 2022 standards (e.g. insert/delete line and support for \
17    multiple character sets). There is a scrollback history buffer for each \
18    virtual terminal and a copy-and-paste mechanism that allows moving text \
19    regions between windows.
20categories          sysutils
21license             GPL-3+
22platforms           darwin
23maintainers         gmail.com:youvegotmoxie
24master_sites        gnu:${name} \
25                    http://www.ryandesign.com/macports/distfiles/screen/:encoding \
26                    http://www.ryandesign.com/macports/distfiles/screen/r23776/:launchd_priv_header
27
28# The file '18' above is a fix for UTF8-to-Big5HKSCS encoding translation.
29# Reference: http://freebsd.sinica.edu.tw/~statue/index.php?file=20020513
30distfiles-append    18:encoding
31
32checksums           ${distname}${extract.suffix} \
33                    rmd160  9de183f86e36b211d56c35e58598728f332faec9 \
34                    sha256  fa4049f8aee283de62e283d427f2cfd35d6c369b40f7f45f947dbfd915699d63 \
35                    18 \
36                    rmd160  bd143058417e1d4c040a2589fdfbf8f9203f0b4c \
37                    sha256  4d4b674a61dab6bac9b4207307c5f020fa670fc3948c39e7ea93c7fb9dfb5174 \
38                    vproc_priv.h \
39                    rmd160  ea1fb112d58a168c581ee58e761c26f7caed40ec \
40                    sha256  dcd2786d82865fb10542c20e97d7052110f7ca9a551f2ab5628c607f20e2bb2f
41
42patchfiles          patch-utmp.c.diff \
43                    patch-windowsize.diff \
44                    patch-Makefile.in.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.diff
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.diff patch-configure.diff patch-window.c.diff patch-screen.c-leopard.diff
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.diff patch-configure.diff patch-window.c.diff patch-screen.c.diff
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.