Ticket #47469: sl-is-the-greatest-ever.diff
File sl-is-the-greatest-ever.diff, 2.5 KB (added by grimreaper (Eitan Adler), 10 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 1 2 # $Id$ 2 3 3 4 PortSystem 1.0 5 PortGroup github 1.0 4 6 5 name sl 6 version 1.0.0 7 github.setup mtoyoda sl 5.02 7 8 categories games 9 maintainers eitanadler.com:lists 8 10 license Permissive 9 maintainers eitanadler.com:lists 11 10 12 description The infamous sl command 11 13 long_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 13 15 platforms darwin 14 master_sites http://www.tkl.iis.u-tokyo.ac.jp/~toyoda/sl15 16 16 checksums sl.tar \ 17 md5 cc06b159f78f86bfd2d4e0e16330fbae \ 18 sha1 57e18b4333e05be67faff58c42a06fcbc231def9 17 checksums rmd160 6df6fbc6fd14cecb2832725553eafab5714e2f15 \ 18 sha256 44dcba02a9fb0f0f66c8a35423898b3089e5f004ee71442462adb3d8d1639c70 19 19 20 distfiles sl.tar21 worksrcdir sl22 23 20 depends_lib port:ncurses 24 21 25 extract.cmd tar26 extract.pre_args -xf27 extract.post_args ""28 29 patchfiles patch-main.diff30 31 22 use_configure no 32 23 33 24 build { … … destroot { 41 32 xinstall -m 755 ${worksrcpath}/sl ${destroot}${prefix}/bin/sl 42 33 } 43 34 44 variant persistent description {Add gates and different trains. Even more annoying!} {45 # Remove this as it's already included in upstream patch46 patchfiles-delete patch-main.diff47 48 patch_sites-append http://www.izumix.org.uk/sl/49 patchfiles-append sl5-1.patch50 checksums-append sl5-1.patch \51 sha1 4bad34d817f725626c1f1b655d968290ec78a19a \52 rmd160 03feef9ec80e127b0aee3b08b15fa605e9b6aad253 patch.pre_args -p154 }55 56 35 variant universal {} -
files/patch-main.diff
1 --- sl.c.orig 2011-12-04 01:42:40.000000000 +01002 +++ sl.c 2011-12-04 01:45:14.000000000 +01003 @@ -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