Ticket #47258: nano-2.4.patch

File nano-2.4.patch, 2.0 KB (added by jeremyhu (Jeremy Huddleston Sequoia), 10 years ago)

nano-2.4.patch

  • Portfile

     
    44PortSystem      1.0
    55
    66name            nano
    7 version         2.2.6
     7version         2.4.0
    88categories      editors
    99platforms       darwin freebsd
    1010license         GPL-3
     
    2020homepage        http://www.nano-editor.org/
    2121master_sites    ${homepage}dist/v[strsed ${version} {/\.[0-9]*$//}]/ gnu
    2222
    23 checksums       rmd160  c7178c45c44ef2c3237811ac16b3d343b4ab6cd4 \
    24                 sha256  be68e133b5e81df41873d32c517b3e5950770c00fc5f4dd23810cd635abce67a
     23checksums       rmd160  1894305efdf30af7265c282e875dc7c4a1a1d9b4 \
     24                sha256  5076fb502680503e648cbdcbf2077e39fba193420ae19203f0a54cb2d94a75bd
    2525
    2626depends_lib     port:ncurses \
    2727                port:gettext \
    2828                port:libiconv
    2929
     30patchfiles \
     31    time_t.patch
     32
    3033configure.args  --disable-wrapping-as-root \
    3134                --enable-utf8
    3235
     
    3841
    3942post-destroot {
    4043    xinstall -d $destroot$docdir/html
    41     xinstall -m 644 -W $worksrcpath AUTHORS BUGS COPYING ChangeLog INSTALL NEWS \
     44    xinstall -m 644 -W $worksrcpath AUTHORS COPYING ChangeLog INSTALL NEWS \
    4245        README THANKS TODO doc/nanorc.sample ${destroot}${docdir}
    4346    xinstall -m 644 -W $worksrcpath/doc faq.html texinfo/nano.html $destroot$docdir/html
    4447}
  • files/time_t.patch

     
     1--- src/text.c.orig     2015-03-24 18:33:14.000000000 -0700
     2+++ src/text.c  2015-03-24 18:33:21.000000000 -0700
     3@@ -2664,7 +2664,7 @@ const char *do_alt_speller(char *tempfil
     4     ssize_t current_y_save = openfile->current_y;
     5     ssize_t lineno_save = openfile->current->lineno;
     6     struct stat spellfileinfo;
     7-    __time_t timestamp;
     8+    time_t timestamp;
     9     pid_t pid_spell;
     10     char *ptr;
     11     static int arglen = 3;