Ticket #25729: patch-midori-0.2.7-bundles.diff
File patch-midori-0.2.7-bundles.diff, 4.8 KB (added by elelay (Eric Le Lay), 14 years ago) |
---|
-
files/patch-wscript.diff
1 --- wscript.old 2010-09-14 23:02:24.000000000 +0200 2 +++ wscript 2010-09-14 23:02:31.000000000 +0200 3 @@ -87,6 +87,7 @@ 4 return dirvalue 5 6 conf.check_tool ('compiler_cc') 7 + conf.check_tool ('osx') 8 if option_enabled ('vala'): 9 if find_program_impl (conf.env, 'valac'): 10 conf.check_tool ('vala') 11 @@ -331,6 +332,7 @@ 12 if unique == 'yes' and conf.check_cfg (modversion='unique-1.0') == '1.0.4': 13 Utils.pprint ('RED', 'unique 1.0.4 found, this version is erroneous.') 14 Utils.pprint ('RED', 'Please use an older or newer version.') 15 + conf.env['macbundle_PATTERN'] = '%s.so' 16 17 def set_options (opt): 18 def is_maemo (): return os.path.exists ('/etc/osso-af-init/') 19 @@ -345,6 +347,7 @@ 20 default=disable, help='Disable ' + desc, dest='disable_' + option_) 21 22 opt.tool_options ('compiler_cc') 23 + opt.tool_options ('osx') 24 opt.get_option_group ('--check-c-compiler').add_option('-d', '--debug-level', 25 action = 'store', default = '', 26 help = 'Specify the debugging level. [\'none\', \'debug\', \'full\']', 27 @@ -505,7 +508,7 @@ 28 if os.path.exists (source): 29 bld.install_files ('${SYSCONFDIR}/xdg/' + APPNAME + \ 30 '/extensions/' + folder, source) 31 - elif Options.platform == 'linux': 32 + else: 33 extensions = os.listdir ('data/extensions') 34 for extension in extensions: 35 folder = 'lib' + extension + '.so' -
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-extensions-wscript_build.diff
1 --- extensions/wscript_build.old 2010-09-14 23:02:47.000000000 +0200 2 +++ extensions/wscript_build 2010-09-14 23:03:25.000000000 +0200 3 @@ -38,3 +38,4 @@ 4 obj.install_path = '${LIBDIR}/midori' 5 if bld.env['platform'] == 'win32': 6 obj.uselib_local = 'midori' 7 + obj.mac_bundle = True -
Portfile
3 3 PortSystem 1.0 4 4 5 5 name midori 6 version 0.1.2 7 revision 1 6 version 0.2.7 8 7 categories www 9 8 description Midori is a lightweight web browser 10 9 long_description ${description} 11 10 homepage http://www.twotoasts.de/index.php?/pages/midori_summary.html 12 11 platforms darwin 13 12 maintainers afb openmaintainer 14 master_sites http://goodies.xfce.org/releases/midori/ 13 14 set branch [join [lrange [split ${version} .] 0 1] .] 15 master_sites http://archive.xfce.org/src/apps/midori/${branch} 15 16 use_bzip2 yes 16 checksums md5 5169ead6783f374cedf3f89bf399bd75 \ 17 sha1 7bcace4b766da58e312b494220b15e88a983b8ac \ 18 rmd160 d7756231bd86aea5f5535d10bed0daa7128e3fe7 17 18 checksums md5 638a16424b444837d319723de5942a33 \ 19 sha1 61e6a802e0a561394b06bd75b0077549d1834d55 \ 20 rmd160 f0c9c87358faace9bfcdfbc73e0f16c07cd8a2a7 21 22 # patch-extensions-mouse-gestures-c.diff reported as 23 # http://www.twotoasts.de/bugs/index.php?do=details&task_id=903 24 patchfiles patch-extensions-mouse-gestures-c.diff \ 25 patch-extensions-wscript_build.diff \ 26 patch-wscript.diff 27 19 28 # glib 2.16.5 or later is required: 20 29 depends_lib port:gtk2 path:include/gio/gio.h:glib2 \ 21 30 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 23 34 35 # libnotify doesn't build without X11 (that is on a gtk +quartz stack) 36 variant no_x11 { 37 depends_lib-delete port:libnotify 38 configure.cmd-append --disable-libnotify 39 } 40 24 41 configure.env-append LINKFLAGS="-L${prefix}/lib -undefined dynamic_lookup"