Ticket #25729: midori-0.2.6.diff

File midori-0.2.6.diff, 3.0 KB (added by elelay (Eric Le Lay), 14 years ago)

update midori to 0.2.6 + don't use libnotify with no_x11

  • files/patch-extensions-mouse-gestures-c.diff

     
     1--- extensions/mouse-gestures.c.orig    2010-05-24 19:34:44.000000000 +0200
     2+++ extensions/mouse-gestures.c 2010-07-17 19:02:02.000000000 +0200
     3@@ -25,7 +25,7 @@
     4 struct MouseGestureNode {
     5     double x;
     6     double y;
     7-} MouseGestureNode_t;
     8+};
     9 
     10 struct _MouseGesture {
     11     MouseButton button;
     12@@ -38,7 +38,7 @@
     13 #define DEVIANCE 20
     14 #define MINLENGTH 50
     15 
     16-MouseGesture *gesture;
     17+MouseGesture *gesture = NULL;
     18 
     19 void mouse_gesture_clear (MouseGesture *g)
     20 {
  • files/patch-midori-main-c.diff

     
     1--- midori/main.c.old   2010-05-24 19:34:44.000000000 +0200
     2+++ midori/main.c       2010-07-18 20:09:28.000000000 +0200
     3@@ -59,7 +59,7 @@
     4     #include <X11/extensions/scrnsaver.h>
     5     #include <gdk/gdkx.h>
     6 #endif
     7-
     8+#define G_MODULE_SUFFIX "dylib"
     9 static gchar*
     10 build_config_filename (const gchar* filename)
     11 {
  • Portfile

     
    33PortSystem 1.0
    44
    55name            midori
    6 version         0.1.2
    7 revision        1
     6version         0.2.6
    87categories      www
    98description     Midori is a lightweight web browser
    109long_description        ${description}
    1110homepage        http://www.twotoasts.de/index.php?/pages/midori_summary.html
    1211platforms       darwin
    1312maintainers     afb openmaintainer
    14 master_sites    http://goodies.xfce.org/releases/midori/
     13
     14set branch              [join [lrange [split ${version} .] 0 1] .]
     15master_sites    http://archive.xfce.org/src/apps/midori/${branch}
    1516use_bzip2       yes
    16 checksums       md5 5169ead6783f374cedf3f89bf399bd75 \
    17                 sha1 7bcace4b766da58e312b494220b15e88a983b8ac \
    18                 rmd160 d7756231bd86aea5f5535d10bed0daa7128e3fe7
     17
     18checksums       md5     249ddb3485d8246e0fda25dd735953f0 \
     19                sha1    c70f6d75e2ea2947dcf05201192b9405bb4036f4 \
     20                rmd160  9086330cedc3dba15474dc0c6919fbffeba7d296
     21
     22# patch-extensions-mouse-gestures-c.diff reported as
     23# http://www.twotoasts.de/bugs/index.php?do=details&task_id=903
     24# patch-midori-main-c.diff lets extensions be found
     25patchfiles      patch-extensions-mouse-gestures-c.diff \
     26                patch-midori-main-c.diff
     27
    1928                # glib 2.16.5 or later is required:
    2029depends_lib     port:gtk2 path:include/gio/gio.h:glib2 \
    2130                port:webkit-gtk lib:libxml2:libxml2 \
    22                 port:libtool port:intltool
     31                port:libtool port:intltool \
     32                port:libunique  port:libnotify port:vala
     33                # last line is optional
    2334
     35# libnotify doesn't build without X11 (that is on a gtk +quartz stack)
     36variant no_x11 {
     37        depends_lib-delete      port:libnotify
     38        configure.cmd-append    --disable-libnotify
     39}
     40
    2441configure.env-append    LINKFLAGS="-L${prefix}/lib -undefined dynamic_lookup"