Ticket #37735: weechat-0.4.0-works.diff

File weechat-0.4.0-works.diff, 6.2 KB (added by ryandesign (Ryan Carsten Schmidt), 11 years ago)

working update to 0.4.0

  • files/patch-src_plugins_Makefile.diff

     
    1 --- src/plugins/Makefile.in.orig        2012-12-16 00:47:36.000000000 +0100
    2 +++ src/plugins/Makefile.in     2012-12-16 00:48:49.000000000 +0100
    3 @@ -831,8 +831,8 @@
     1--- src/plugins/Makefile.am.orig        2013-01-20 02:21:06.000000000 -0600
     2+++ src/plugins/Makefile.am     2013-01-21 23:40:25.000000000 -0600
     3@@ -117,8 +117,8 @@
    44 # install plugin header
    55 
    66 install-data-hook:
    77-       $(INSTALL) -d $(includedir)/$(PACKAGE)
    88-       $(INSTALL_DATA) $(abs_top_srcdir)/src/plugins/weechat-plugin.h $(includedir)/$(PACKAGE)
    9 +       $(INSTALL) -d $(DESTDIR)/$(includedir)/$(PACKAGE)
    10 +       $(INSTALL_DATA) $(abs_top_srcdir)/src/plugins/weechat-plugin.h $(DESTDIR)/$(includedir)/$(PACKAGE)
     9+       $(INSTALL) -d $(DESTDIR)$(includedir)/$(PACKAGE)
     10+       $(INSTALL_DATA) $(abs_top_srcdir)/src/plugins/weechat-plugin.h $(DESTDIR)$(includedir)/$(PACKAGE)
    1111 
    1212 # uninstall plugin header
    1313 
  • files/patch-src_plugins_script_script_repo.diff

     
    1 --- src/plugins/script/script-repo.h.orig       2012-12-16 00:15:16.000000000 +0100
    2 +++ src/plugins/script/script-repo.h    2012-12-16 00:15:36.000000000 +0100
    3 @@ -57,7 +57,7 @@
    4  extern struct t_script_repo *scripts_repo;
    5  extern struct t_script_repo *last_script_repo;
    6  extern int script_repo_count, script_repo_count_displayed;
    7 -struct t_hashtable *script_repo_max_length_field;
    8 +extern struct t_hashtable *script_repo_max_length_field;
    9  extern char *script_repo_filter;
    10  
    11  extern int script_repo_script_valid (struct t_script_repo *script);
  • Portfile

     
    11# -*- 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
    22# $Id$
    33
    4 PortSystem 1.0
     4PortSystem  1.0
     5PortGroup   cmake 1.0
    56
    67name        weechat
    7 version     0.3.9
     8version     0.4.0
    89categories  irc
    910maintainers otherware.org:nefar openmaintainer
    1011license     GPL-3
     
    2425platforms   darwin
    2526master_sites    ${homepage}files/src
    2627
    27 checksums           rmd160  eb159b3ff8b074aaeb6002a2247b2d909cbf1937 \
    28                     sha256  9e121aba26b6bb5cef94db22d7d77b2d8f189c910bf07ffc542a08baab79deb0
     28checksums           rmd160  70a3b67762227c8408b8ca880ea1af15fcc7fe81 \
     29                    sha256  1df12201d8b0ac25f62ddbfb675e8f3d978e52bc5b644d55ccf4c755956fa60d
    2930
    30 depends_build   port:pkgconfig
    31 depends_lib port:gettext port:libiconv port:ncurses port:libgcrypt
     31depends_lib-append  port:gettext \
     32                    port:libgcrypt \
     33                    port:libiconv \
     34                    port:ncurses
    3235
    33 patchfiles       \
    34     patch-src_plugins_Makefile.diff \
    35     patch-src_plugins_script_script_repo.diff
     36patchfiles          patch-src_plugins_Makefile.diff
    3637
    37 configure.args  --without-debug --disable-gnutls --disable-lua \
    38         --disable-perl --disable-python --disable-ruby --disable-aspell --disable-guile
     38configure.args-append   -DENABLE_GNUTLS=OFF \
     39                        -DENABLE_LUA=OFF \
     40                        -DENABLE_GUILE=OFF \
     41                        -DENABLE_PERL=OFF \
     42                        -DENABLE_PYTHON=OFF \
     43                        -DENABLE_RUBY=OFF \
     44                        -DENABLE_ASPELL=OFF
    3945
    4046use_bzip2   yes
    4147
    4248variant aspell description {Support for aspell} {
    43     configure.args-delete   --disable-aspell
    44     configure.args-append   --enable-aspell
     49    configure.args-delete   -DENABLE_ASPELL=OFF
     50    configure.args-append   -DENABLE_ASPELL=ON
    4551    depends_lib-append      port:aspell
    4652}
    4753
    4854variant lua description {Bindings for lua plugins} {
    49     configure.args-delete --disable-lua
    50     configure.args-append --enable-lua
     55    configure.args-delete -DENABLE_LUA=OFF
     56    configure.args-append -DENABLE_LUA=ON
    5157    depends_lib-append    port:lua
    5258}
    5359
    5460variant scheme description {Bindings for Scheme (guile) plugins} {
    55     configure.args-delete --disable-guile
    56     configure.args-append --enable-guile
     61    configure.args-delete -DENABLE_GUILE=OFF
     62    configure.args-append -DENABLE_GUILE=ON
    5763    depends_lib-append    port:guile
    5864}
    5965
    6066variant perl description {Bindings for perl plugins} {
    61     configure.args-delete --disable-perl
    62     configure.args-append --enable-perl
     67    configure.args-delete -DENABLE_PERL=OFF
     68    configure.args-append -DENABLE_PERL=ON
    6369    depends_lib-append    path:bin/perl:perl5
    6470}
    6571
    6672variant python description {Bindings for python plugins} {
    67     configure.args-delete   --disable-python
    68     configure.args-append   --enable-python
     73    configure.args-delete   -DENABLE_PYTHON=OFF
     74    configure.args-append   -DENABLE_PYTHON=ON
    6975    depends_lib-append      path:bin/python:python26
    7076}
    7177
    7278variant ruby description {Bindings for ruby plugins} {
    73     configure.args-delete --disable-ruby
    74     configure.args-append --enable-ruby
     79    configure.args-delete -DENABLE_RUBY=OFF
     80    configure.args-append -DENABLE_RUBY=ON
    7581    depends_lib-append    port:ruby
    7682}
    7783
    7884variant tls description {Support for secure connecting} {
    79     configure.args-delete --disable-gnutls
    80     configure.args-append --enable-gnutls
     85    configure.args-delete -DENABLE_GNUTLS=OFF
     86    configure.args-append -DENABLE_GNUTLS=ON
    8187    depends_lib-append    port:gnutls
    8288}
    8389
    8490post-destroot {
    8591    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    86     xinstall -m 644 -W ${worksrcpath} COPYING README AUTHORS NEWS ABOUT-NLS ChangeLog \
     92    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
    8793        ${destroot}${prefix}/share/doc/${name}
    8894    eval xinstall -m 644 -W ${worksrcpath} [glob doc/en/weechat*.txt] \
    8995        ${destroot}${prefix}/share/doc/${name}
    90 
    91     xinstall -m 755 ${worksrcpath}/doc/weechat-curses.1 ${destroot}${prefix}/share/man/man1
    92 
    93     eval delete [glob -type l ${destroot}${prefix}/lib/weechat/plugins/*.so]
    9496}
    9597
    9698post-install {