cld 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,14 @@
1
+ AC_INIT(cld, 0.6.0)
2
+ AC_CONFIG_AUX_DIR(build_aux)
3
+ AM_INIT_AUTOMAKE(cld, 0.6.0)
4
+
5
+ LT_INIT
6
+
7
+ # Checks for a C++ compiler.
8
+ AC_PROG_CXX
9
+
10
+ # Check for stdc headers.
11
+ AC_HEADER_STDC
12
+
13
+ AC_CONFIG_FILES(Makefile)
14
+ AC_OUTPUT
@@ -1,2 +1,4 @@
1
1
  #require 'mkmf'
2
2
  #create_makefile('cld/cld')
3
+
4
+ system "./configure --prefix=#{Dir.pwd}" unless File.exists?('Makefile')
@@ -58,8 +58,7 @@ static const LanguageInfo kLanguageInfoTable[] = {
58
58
  { "IRISH", "ga", "gle", NULL},
59
59
  { "GALICIAN", "gl", "glg", NULL},
60
60
  // Impossible to tell Tagalog from Filipino at the moment.
61
- // Use ISO 639-2 code for Filipino here.
62
- { "TAGALOG", NULL, "fil", NULL},
61
+ { "TAGALOG", "tl", "tgl", NULL},
63
62
  { "TURKISH", "tr", "tur", NULL},
64
63
  { "UKRAINIAN", "uk", "ukr", NULL},
65
64
  { "HINDI", "hi", "hin", NULL},
data/lib/cld.rb CHANGED
@@ -16,6 +16,6 @@ module CLD
16
16
  end
17
17
 
18
18
  GEM_ROOT = File.expand_path("../../", __FILE__)
19
- ffi_lib "#{GEM_ROOT}/ext/cld/cld.so"
19
+ ffi_lib "#{GEM_ROOT}/ext/cld/lib/cld.so"
20
20
  attach_function "detect_language_ext","detectLanguageThunkInt", [:buffer_in, :bool], ReturnValue.by_value
21
21
  end
@@ -1,3 +1,3 @@
1
1
  module CLD
2
- VERSION = "0.6.0"
2
+ VERSION = "0.7.0"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: cld
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.6.0
5
+ version: 0.7.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jason Toy
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-05-31 00:00:00 Z
13
+ date: 2013-02-14 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: ffi
@@ -51,7 +51,9 @@ files:
51
51
  - README.md
52
52
  - Rakefile
53
53
  - cld.gemspec
54
- - ext/cld/Makefile
54
+ - ext/cld/Makefile.am
55
+ - ext/cld/Makefile.in
56
+ - ext/cld/aclocal.m4
55
57
  - ext/cld/base/basictypes.h
56
58
  - ext/cld/base/build_config.h
57
59
  - ext/cld/base/casts.h
@@ -71,7 +73,15 @@ files:
71
73
  - ext/cld/base/template_util.h
72
74
  - ext/cld/base/type_traits.h
73
75
  - ext/cld/base/vlog_is_on.h
76
+ - ext/cld/build_aux/config.guess
77
+ - ext/cld/build_aux/config.sub
78
+ - ext/cld/build_aux/depcomp
79
+ - ext/cld/build_aux/install-sh
80
+ - ext/cld/build_aux/ltmain.sh
81
+ - ext/cld/build_aux/missing
74
82
  - ext/cld/cld_encodings.h
83
+ - ext/cld/configure
84
+ - ext/cld/configure.ac
75
85
  - ext/cld/encodings/compact_lang_det/#cldutil.cc#
76
86
  - ext/cld/encodings/compact_lang_det/#cldutil.h#
77
87
  - ext/cld/encodings/compact_lang_det/#compact_lang_det_impl.h#
@@ -1,31 +0,0 @@
1
- CFLAGS=-fPIC -I. -O2 -DCLD_WINDOWS
2
- LDFLAGS=-L.
3
- CC=g++
4
- AR=ar
5
- SOURCES=encodings/compact_lang_det/cldutil.cc \
6
- encodings/compact_lang_det/cldutil_dbg_empty.cc \
7
- encodings/compact_lang_det/compact_lang_det.cc \
8
- encodings/compact_lang_det/compact_lang_det_impl.cc \
9
- encodings/compact_lang_det/ext_lang_enc.cc \
10
- encodings/compact_lang_det/getonescriptspan.cc \
11
- encodings/compact_lang_det/letterscript_enum.cc \
12
- encodings/compact_lang_det/tote.cc \
13
- encodings/compact_lang_det/generated/cld_generated_score_quadchrome_0406.cc \
14
- encodings/compact_lang_det/generated/compact_lang_det_generated_cjkbis_0.cc \
15
- encodings/compact_lang_det/generated/compact_lang_det_generated_ctjkvz.cc \
16
- encodings/compact_lang_det/generated/compact_lang_det_generated_deltaoctachrome.cc \
17
- encodings/compact_lang_det/generated/compact_lang_det_generated_quadschrome.cc \
18
- encodings/compact_lang_det/win/cld_htmlutils_windows.cc \
19
- encodings/compact_lang_det/win/cld_unilib_windows.cc \
20
- encodings/compact_lang_det/win/cld_utf8statetable.cc \
21
- encodings/compact_lang_det/win/cld_utf8utils_windows.cc \
22
- encodings/internal/encodings.cc \
23
- languages/internal/languages.cc \
24
- thunk.cc
25
-
26
- install:
27
- rm -f *.o
28
- rm -f libcld.a
29
- $(CC) -c $(CFLAGS) $(SOURCES)
30
- $(AR) rcs libcld.a *.o
31
- $(CC) -DCLD_WINDOWS -I. -L. -shared -o cld.so -lstdc++ *.o