Ticket #50208: patch-geany-1.26.diff

File patch-geany-1.26.diff, 3.4 KB (added by dbevans (David B. Evans), 8 years ago)

Proposed patch

  • Portfile

     
    44PortSystem      1.0
    55
    66name            geany
    7 version         1.24.1
    8 revision        1
     7version         1.26
    98license         GPL-2+
    109categories      devel
    1110platforms       darwin
     
    2423master_sites    http://download.geany.org/
    2524use_bzip2       yes
    2625
    27 checksums       rmd160  f5fd46ed83451147a95516812628a1a6b459a98c \
    28                 sha256  7fb505d9b01fe6874890525f837644a6a38c23a372bb068c65ef3673108a8c33
     26checksums       rmd160  6f1f73067a0e802a7c335e23526024533b9b2249 \
     27                sha256  e38530e87c577e1e9806be3b40e08fb9ee321eb1abc6361ddacdad89c825f90d
    2928
    3029depends_build \
    3130    port:pkgconfig \
    32     port:intltool
     31    port:intltool \
     32    port:autoconf \
     33    port:automake \
     34    port:libtool
    3335depends_lib \
    3436    port:desktop-file-utils \
    3537    port:gettext \
     
    3638    port:gtk2 \
    3739    port:vte-gtk2-compat
    3840
    39 # update m4/intltool.m4 and autoreconf
     41# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
    4042
    41 pre-configure {
    42     copy -force ${prefix}/share/aclocal/intltool.m4 ${worksrcpath}/m4
    43 }
     43configure.cmd       ./autogen.sh
    4444
    45 use_autoreconf      yes
    46 autoreconf.args     -fvi
    47 
    4845configure.args      --disable-silent-rules \
    4946                    --enable-vte
    5047
    51 platform darwin {
    52     patchfiles-append vte-sonames.diff
     48patchfiles          vte-sonames.diff
    5349
    54     post-patch {
    55         reinplace "s|@@MP_PREFIX@@|${prefix}|" ${worksrcpath}/src/vte.c
    56     }
    57 }
    58 
    5950variant gtk3 description {Enable experimental gtk3 support} {
    6051    depends_lib-replace port:gtk2 port:gtk3
    6152    depends_lib-replace port:vte-gtk2-compat port:vte-2.90
     53    depends_run-append  port:gnome-themes-standard
    6254    configure.args-append --enable-gtk3
    6355}
    6456
    6557if {[variant_isset gtk3]} {
    6658    set update_icon_cache "gtk-update-icon-cache-3.0"
     59    configure.args-append --with-vte-module-path=${prefix}/lib/libvte2_90.dylib
    6760} else {
     61    configure.args-append --with-vte-module-path=${prefix}/lib/libvte.dylib
    6862    set update_icon_cache "gtk-update-icon-cache"
    6963}
    7064
  • files/vte-sonames.diff

     
    11--- src/vte.c.orig      2014-04-16 08:20:13.000000000 -0700
    22+++ src/vte.c   2014-09-22 09:04:22.000000000 -0700
    3 @@ -203,9 +203,9 @@
    4                 gint i;
    5                 const gchar *sonames[] = {
    6  #if GTK_CHECK_VERSION(3, 0, 0)
    7 -                       "libvte2_90.so", "libvte2_90.so.9",
    8 +                       "@@MP_PREFIX@@/lib/libvte2_90.dylib",
    9  #else
    10 -                       "libvte.so", "libvte.so.4", "libvte.so.8", "libvte.so.9",
    11 +                       "@@MP_PREFIX@@/lib/libvte.dylib",
    12  #endif
    13                         NULL
    14                 };
    15 @@ -219,7 +219,7 @@
     3@@ -234,7 +234,7 @@
    164        if (module == NULL)
    175        {
    186                vte_info.have_vte = FALSE;
     
    219                return;
    2210        }
    2311        else
    24 --- src/main.c.orig     2014-04-16 08:20:13.000000000 -0700
    25 +++ src/main.c  2014-09-22 09:08:22.000000000 -0700
    26 @@ -140,7 +140,7 @@
     12--- src/libmain.c.orig  2014-04-16 08:20:13.000000000 -0700
     13+++ src/libmain.c       2014-09-22 09:08:22.000000000 -0700
     14@@ -136,7 +136,7 @@
    2715        { "no-session", 's', G_OPTION_FLAG_REVERSE, G_OPTION_ARG_NONE, &cl_options.load_session, N_("Don't load the previous session's files"), NULL },
    2816 #ifdef HAVE_VTE
    2917        { "no-terminal", 't', 0, G_OPTION_ARG_NONE, &no_vte, N_("Don't load terminal support"), NULL },