yui 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/yui/extconf.rb +4 -5
- data/ext/yui/yui_ruby.cxx +13 -0
- metadata +4 -4
data/ext/yui/extconf.rb
CHANGED
@@ -5,16 +5,15 @@
|
|
5
5
|
require 'mkmf'
|
6
6
|
# $CFLAGS = "#{$CFLAGS} -Werror"
|
7
7
|
|
8
|
-
|
9
|
-
|
8
|
+
Config::CONFIG['CC'] = "g++"
|
9
|
+
Config::CONFIG['CPP'] = "g++ -E"
|
10
|
+
|
10
11
|
have_library('stdc++')
|
11
12
|
|
12
|
-
unless have_library('
|
13
|
+
unless have_library('yui', 'YUI::widgetFactory', 'yui/YUI.h')
|
13
14
|
STDERR.puts "Cannot find libyui"
|
14
15
|
STDERR.puts "Is libyui-devel installed ?"
|
15
16
|
end
|
16
17
|
find_header 'YUI.h', '/usr/include/yui'
|
17
18
|
|
18
|
-
$CPPFLAGS = "-I/usr/include/yui -I.."
|
19
|
-
|
20
19
|
create_makefile('_yui')
|
data/ext/yui/yui_ruby.cxx
CHANGED
@@ -1998,6 +1998,19 @@ static VALUE mYui;
|
|
1998
1998
|
#include <sstream>
|
1999
1999
|
#include <stdexcept>
|
2000
2000
|
|
2001
|
+
#if defined(SWIGRUBY)
|
2002
|
+
|
2003
|
+
extern "C" {
|
2004
|
+
/* Init_ for the %module, defined by Swig */
|
2005
|
+
SWIGEXPORT void Init_yui(void);
|
2006
|
+
|
2007
|
+
/* Init_ for the .so lib, called by Ruby */
|
2008
|
+
SWIGEXPORT void Init__yui(void) {
|
2009
|
+
Init_yui();
|
2010
|
+
}
|
2011
|
+
}
|
2012
|
+
#endif
|
2013
|
+
|
2001
2014
|
#define YUILogComponent "bindings"
|
2002
2015
|
#include "yui/YUILog.h"
|
2003
2016
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
|
-
- 0
|
8
7
|
- 1
|
9
8
|
- 0
|
10
|
-
|
9
|
+
- 0
|
10
|
+
version: 1.0.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Klaus K\xC3\xA4mpf"
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-06-
|
18
|
+
date: 2012-06-13 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|