Skip to content

Instantly share code, notes, and snippets.

diff -Naur libXft-2.1.14.orig/src/xftglyphs.c libXft-2.1.14/src/xftglyphs.c
--- libXft-2.1.14.orig/src/xftglyphs.c 2009-01-30 08:19:09.000000000 +0900
+++ libXft-2.1.14/src/xftglyphs.c 2010-03-08 18:09:52.000000000 +0900
@@ -21,27 +21,18 @@
*/
#include "xftint.h"
-#include <freetype/ftoutln.h>
-#if HAVE_FT_GLYPHSLOT_EMBOLDEN
diff -Naur cairo-1.8.8.orig//src/cairo-ft-font.c cairo-1.8.8//src/cairo-ft-font.c
--- cairo-1.8.8.orig//src/cairo-ft-font.c 2009-06-07 00:16:41.000000000 +0900
+++ cairo-1.8.8//src/cairo-ft-font.c 2010-03-09 00:25:19.000000000 +0900
@@ -57,6 +57,8 @@
#include FT_SYNTHESIS_H
#endif
+#include FT_LCD_FILTER_H
+
#define DOUBLE_TO_26_6(d) ((FT_F26Dot6)((d) * 64.0))
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Generic names -->
<alias>
<family>sans-serif</family>
<prefer>
<family>TakaoExGothic</family>
<family>TakaoPGothic</family>
<family>TakaoGothic</family>
@matsuu
matsuu / ibus-mozc-9999.ebuild
Created May 11, 2010 14:22
ebuild for ibus-mozc
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
PYTHON_DEPEND="2"
inherit multilib python subversion toolchain-funcs
DESCRIPTION="The Mozc engine for IBus Framework"
HOMEPAGE="http://code.google.com/p/mozc/"
diff -Naur ruby-tcpwrap.orig//tcpwrap.c ruby-tcpwrap//tcpwrap.c
--- ruby-tcpwrap.orig//tcpwrap.c 2003-08-20 12:30:10.000000000 +0900
+++ ruby-tcpwrap//tcpwrap.c 2010-05-28 01:54:50.000000000 +0900
@@ -25,7 +25,11 @@
*/
#include "ruby.h"
+#ifdef HAVE_RUBY_IO_H
+#include "ruby/io.h"
+#else
diff -Naur '--exclude=Makefile.in' '--exclude=extconf.rb.in' rskkserv-2.95.4.orig/ext/skkdic.c rskkserv-2.95.4/ext/skkdic.c
--- rskkserv-2.95.4.orig/ext/skkdic.c 2005-05-05 22:46:06.000000000 +0900
+++ rskkserv-2.95.4/ext/skkdic.c 2010-05-29 18:26:56.000000000 +0900
@@ -39,6 +39,13 @@
#include <string.h>
#include <ruby.h>
+#ifndef RSTRING_LEN
+#define RSTRING_LEN(str) RSTRING(str)->len
+#endif
/usr/sbin/skkserv.rb:235: [BUG] Segmentation fault
ruby 1.9.1p376 (2009-12-07 revision 26041) [x86_64-linux]
-- control frame ----------
c:0010 p:---- s:0028 b:0028 l:000027 d:000027 CFUNC :accept
c:0009 p:0012 s:0025 b:0025 l:000015 d:000024 BLOCK /usr/sbin/skkserv.rb:235
c:0008 p:---- s:0021 b:0021 l:000020 d:000020 FINISH
c:0007 p:---- s:0019 b:0019 l:000018 d:000018 CFUNC :loop
c:0006 p:0011 s:0016 b:0016 l:000015 d:000015 METHOD /usr/sbin/skkserv.rb:233
c:0005 p:0011 s:0013 b:0013 l:000012 d:000012 METHOD /usr/sbin/skkserv.rb:188
diff -Naur refe-0.8.0.orig/lib/refe/mygetopt.rb refe-0.8.0/lib/refe/mygetopt.rb
--- refe-0.8.0.orig/lib/refe/mygetopt.rb 2003-04-02 07:38:41.000000000 +0900
+++ refe-0.8.0/lib/refe/mygetopt.rb 2010-05-30 00:54:04.000000000 +0900
@@ -11,7 +11,7 @@
alias orignew new
def new( usage, descripter )
- parser = orignew( * descripter.map {|line|
+ parser = orignew( * descripter.split(/^/).map {|line|
line.strip!
var focusableTags = [];
var focusedIndex = -1;
yak.functions.add({
getFocusableTags: function() {
if(focusableTags.length == 0) {
var tmpTags = document.getElementsByTagName("a");
for(var i = 0; i < tmpTags.length; i++) {
var tag = tmpTags[i];
var href = tag.getAttribute("href");
def find_start(start)
case start
when nil?:
when @next_release: return "master"
else return start
end
end
# $ ruby18 -v hoge.rb
# ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]