Ticket #47469: sl-is-the-greatest-ever.diff

File sl-is-the-greatest-ever.diff, 2.5 KB (added by grimreaper (Eitan Adler), 9 years ago)
  • Portfile

     
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8::et:sw=4:ts=4:sts=4
    12# $Id$
    23
    34PortSystem          1.0
     5PortGroup           github 1.0
    46
    5 name                sl
    6 version             1.0.0
     7github.setup        mtoyoda sl 5.02
    78categories          games
     9maintainers         eitanadler.com:lists
    810license             Permissive
    9 maintainers         eitanadler.com:lists
     11
    1012description         The infamous sl command
    1113long_description    Corrects you if you type sl instead of ls
    12 homepage            http://www.tkl.iis.u-tokyo.ac.jp/~toyoda/index_e.html
     14
    1315platforms           darwin
    14 master_sites        http://www.tkl.iis.u-tokyo.ac.jp/~toyoda/sl
    1516
    16 checksums           sl.tar \
    17                     md5 cc06b159f78f86bfd2d4e0e16330fbae \
    18                     sha1 57e18b4333e05be67faff58c42a06fcbc231def9
     17checksums           rmd160  6df6fbc6fd14cecb2832725553eafab5714e2f15 \
     18                    sha256  44dcba02a9fb0f0f66c8a35423898b3089e5f004ee71442462adb3d8d1639c70
    1919
    20 distfiles           sl.tar
    21 worksrcdir          sl
    22 
    2320depends_lib         port:ncurses
    2421
    25 extract.cmd         tar
    26 extract.pre_args    -xf
    27 extract.post_args   ""
    28 
    29 patchfiles          patch-main.diff
    30 
    3122use_configure       no
    3223
    3324build {
    destroot { 
    4132    xinstall -m 755 ${worksrcpath}/sl ${destroot}${prefix}/bin/sl
    4233}
    4334
    44 variant persistent description {Add gates and different trains. Even more annoying!} {
    45     # Remove this as it's already included in upstream patch
    46     patchfiles-delete   patch-main.diff
    47 
    48     patch_sites-append  http://www.izumix.org.uk/sl/
    49     patchfiles-append   sl5-1.patch
    50     checksums-append    sl5-1.patch \
    51                         sha1    4bad34d817f725626c1f1b655d968290ec78a19a \
    52                         rmd160  03feef9ec80e127b0aee3b08b15fa605e9b6aad2
    53     patch.pre_args      -p1
    54 }
    55 
    5635variant universal {}
  • files/patch-main.diff

     
    1 --- sl.c.orig   2011-12-04 01:42:40.000000000 +0100
    2 +++ sl.c        2011-12-04 01:45:14.000000000 +0100
    3 @@ -59,7 +59,7 @@
    4      }
    5  }
    6  
    7 -void main(int argc, char *argv[])
    8 +int main(int argc, char *argv[])
    9  {
    10      int x, i;
    11  
    12 @@ -85,6 +85,8 @@
    13      }
    14      mvcur(0, COLS - 1, LINES - 1, 0);
    15      endwin();
    16 +
    17 +    return 0;
    18  }
    19  
    20