Ticket #50208: patch-geany-1.26.diff
File patch-geany-1.26.diff, 3.4 KB (added by dbevans (David B. Evans), 9 years ago) |
---|
-
Portfile
4 4 PortSystem 1.0 5 5 6 6 name geany 7 version 1.24.1 8 revision 1 7 version 1.26 9 8 license GPL-2+ 10 9 categories devel 11 10 platforms darwin … … 24 23 master_sites http://download.geany.org/ 25 24 use_bzip2 yes 26 25 27 checksums rmd160 f5fd46ed83451147a95516812628a1a6b459a98c\28 sha256 7fb505d9b01fe6874890525f837644a6a38c23a372bb068c65ef3673108a8c3326 checksums rmd160 6f1f73067a0e802a7c335e23526024533b9b2249 \ 27 sha256 e38530e87c577e1e9806be3b40e08fb9ee321eb1abc6361ddacdad89c825f90d 29 28 30 29 depends_build \ 31 30 port:pkgconfig \ 32 port:intltool 31 port:intltool \ 32 port:autoconf \ 33 port:automake \ 34 port:libtool 33 35 depends_lib \ 34 36 port:desktop-file-utils \ 35 37 port:gettext \ … … 36 38 port:gtk2 \ 37 39 port:vte-gtk2-compat 38 40 39 # update m4/intltool.m4 and autoreconf41 # reconfigure using upstream autogen.sh for intltool 0.51 compatibility 40 42 41 pre-configure { 42 copy -force ${prefix}/share/aclocal/intltool.m4 ${worksrcpath}/m4 43 } 43 configure.cmd ./autogen.sh 44 44 45 use_autoreconf yes46 autoreconf.args -fvi47 48 45 configure.args --disable-silent-rules \ 49 46 --enable-vte 50 47 51 platform darwin { 52 patchfiles-append vte-sonames.diff 48 patchfiles vte-sonames.diff 53 49 54 post-patch {55 reinplace "s|@@MP_PREFIX@@|${prefix}|" ${worksrcpath}/src/vte.c56 }57 }58 59 50 variant gtk3 description {Enable experimental gtk3 support} { 60 51 depends_lib-replace port:gtk2 port:gtk3 61 52 depends_lib-replace port:vte-gtk2-compat port:vte-2.90 53 depends_run-append port:gnome-themes-standard 62 54 configure.args-append --enable-gtk3 63 55 } 64 56 65 57 if {[variant_isset gtk3]} { 66 58 set update_icon_cache "gtk-update-icon-cache-3.0" 59 configure.args-append --with-vte-module-path=${prefix}/lib/libvte2_90.dylib 67 60 } else { 61 configure.args-append --with-vte-module-path=${prefix}/lib/libvte.dylib 68 62 set update_icon_cache "gtk-update-icon-cache" 69 63 } 70 64 -
files/vte-sonames.diff
1 1 --- src/vte.c.orig 2014-04-16 08:20:13.000000000 -0700 2 2 +++ 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 @@ 16 4 if (module == NULL) 17 5 { 18 6 vte_info.have_vte = FALSE; … … 21 9 return; 22 10 } 23 11 else 24 --- src/ main.c.orig 2014-04-16 08:20:13.000000000 -070025 +++ src/ main.c 2014-09-22 09:08:22.000000000 -070026 @@ -1 40,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 @@ 27 15 { "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 }, 28 16 #ifdef HAVE_VTE 29 17 { "no-terminal", 't', 0, G_OPTION_ARG_NONE, &no_vte, N_("Don't load terminal support"), NULL },