Ticket #45129: patch-geany-1.24.1.diff
File patch-geany-1.24.1.diff, 4.4 KB (added by dbevans (David B. Evans), 10 years ago) |
---|
-
Portfile
4 4 PortSystem 1.0 5 5 6 6 name geany 7 version 1.22 8 revision 2 7 version 1.24.1 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 d0296f2930aa6e6b4dd7a95061c58645d9c4c1ba\28 sha256 901a35a7395ef10a80fb10b3ab63bae3871693a4e82d56388e9521a27877577e26 checksums rmd160 f5fd46ed83451147a95516812628a1a6b459a98c \ 27 sha256 7fb505d9b01fe6874890525f837644a6a38c23a372bb068c65ef3673108a8c33 29 28 30 29 depends_build \ 31 30 port:pkgconfig \ … … 35 34 port:gtk2 \ 36 35 port:vte-gtk2-compat 37 36 38 patchfiles patch-no-export-dynamic.diff39 40 37 # update m4/intltool.m4 and autoreconf 41 38 42 39 pre-configure { … … 46 43 use_autoreconf yes 47 44 autoreconf.args -fvi 48 45 49 configure.args --disable-silent-rules 46 configure.args --disable-silent-rules \ 47 --enable-vte 50 48 51 49 platform darwin { 52 50 patchfiles-append vte-sonames.diff 51 52 post-patch { 53 reinplace "s|@@MP_PREFIX@@|${prefix}|" ${worksrcpath}/src/vte.c 54 } 53 55 } 56 57 variant gtk3 description {Enable experimental gtk3 support} { 58 depends_lib-replace port:gtk2 port:gtk3 59 depends_lib-replace port:vte-gtk2-compat port:vte 60 configure.args-append --enable-gtk3 61 } 62 63 livecheck.type regex 64 livecheck.url ${master_sites} 65 livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}" -
files/patch-no-export-dynamic.diff
1 https://github.com/geany/geany/commit/d11f9a51b939bf39c3c1676ab823147d460ede752 --- wscript.orig 2012-06-17 17:24:32.000000000 -05003 +++ wscript 2012-10-24 21:28:41.000000000 -05004 @@ -309,7 +309,6 @@5 source = geany_sources,6 includes = ['.', 'scintilla/include/', 'tagmanager/include/'],7 defines = ['G_LOG_DOMAIN="Geany"', 'GEANY_PRIVATE'],8 - linkflags = [] if is_win32 else ['-Wl,--export-dynamic'],9 uselib = ['GTK', 'GLIB', 'GMODULE', 'GIO', 'GTHREAD', 'WIN32', 'SUNOS_SOCKET'],10 use = ['scintilla', 'tagmanager', 'mio'])11 12 --- src/Makefile.am.orig 2014-07-17 21:00:18.000000000 -070013 +++ src/Makefile.am 2014-07-17 21:01:10.000000000 -070014 @@ -126,7 +126,7 @@15 -DGTK \16 -DG_LOG_DOMAIN=\""Geany"\"17 18 -geany_LDFLAGS = -Wl,--export-dynamic19 +geany_LDFLAGS =20 21 clean-local:22 -
files/vte-sonames.diff
1 --- src/vte.c.orig 2012-06-17 17:47:13.000000000 -0500 2 +++ src/vte.c 2012-10-24 21:28:41.000000000 -0500 3 @@ -199,8 +199,8 @@ 4 if (module == NULL) 5 { 1 --- src/vte.c.orig 2014-04-16 08:20:13.000000000 -0700 2 +++ src/vte.c 2014-09-22 09:04:22.000000000 -0700 3 @@ -203,9 +203,9 @@ 6 4 gint i; 7 - const gchar *sonames[] = { "libvte.so", "libvte.so.4", 8 - "libvte.so.8", "libvte.so.9", NULL }; 9 + const gchar *sonames[] = { "libvte.dylib", "libvte.4.dylib", 10 + "libvte.8.dylib", "libvte.9.dylib", NULL }; 11 12 for (i = 0; sonames[i] != NULL && module == NULL; i++) 13 { 14 @@ -211,7 +211,7 @@ 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 @@ 15 16 if (module == NULL) 16 17 { 17 18 vte_info.have_vte = FALSE; … … 20 21 return; 21 22 } 22 23 else 23 --- src/main.c.orig 201 2-06-17 17:44:36.000000000 -050024 +++ src/main.c 201 2-10-24 21:28:41.000000000 -050025 @@ -1 39,7 +139,7 @@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 @@ 26 27 { "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 }, 27 28 #ifdef HAVE_VTE 28 29 { "no-terminal", 't', 0, G_OPTION_ARG_NONE, &no_vte, N_("Don't load terminal support"), NULL },