rubysdl 2.1.2 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. data/NEWS.en +8 -0
  2. data/NEWS.ja +8 -0
  3. data/README.en +22 -15
  4. data/README.ja +31 -20
  5. data/depend +2 -0
  6. data/doc-en/event.rsd +3 -0
  7. data/doc-en/time.rsd +1 -1
  8. data/doc-en/video.rsd +8 -8
  9. data/doc.txt +32 -0
  10. data/doc/event.rsd +5 -0
  11. data/doc/opengl.rsd +160 -0
  12. data/doc/rsd.rb +4 -3
  13. data/doc/time.rsd +1 -1
  14. data/doc/video.rsd +8 -8
  15. data/extconf.rb +30 -15
  16. data/lib/sdl.rb +2 -1
  17. data/lib/sdl1_compatible.rb +20 -0
  18. data/mkpkg.sh +28 -0
  19. data/rubysdl.gemspec +21 -0
  20. data/rubysdl.h +1 -0
  21. data/rubysdl_cdrom.c +0 -10
  22. data/rubysdl_event.c +30 -11
  23. data/rubysdl_event_key.c +0 -5
  24. data/rubysdl_image.c +2 -2
  25. data/rubysdl_joystick.c +0 -18
  26. data/rubysdl_kanji.c +0 -5
  27. data/rubysdl_main.c +0 -2
  28. data/rubysdl_mixer.c +2 -18
  29. data/rubysdl_mouse.c +0 -4
  30. data/rubysdl_rwops.c +4 -0
  31. data/rubysdl_sdlskk.c +0 -3
  32. data/rubysdl_sge_video.c +0 -14
  33. data/rubysdl_smpeg.c +0 -1
  34. data/rubysdl_time.c +0 -10
  35. data/rubysdl_ttf.c +0 -3
  36. data/rubysdl_video.c +2 -30
  37. data/rubysdl_wm.c +0 -5
  38. data/sample/caption.rb +21 -0
  39. data/sge/INSTALL +72 -0
  40. data/sge/LICENSE +504 -0
  41. data/sge/Makefile +83 -0
  42. data/sge/Makefile.conf +63 -0
  43. data/sge/README +219 -0
  44. data/sge/Todo +7 -0
  45. data/sge/WhatsNew +224 -0
  46. data/sge/sge.h +31 -0
  47. data/sge/sge_blib.cpp +1939 -0
  48. data/sge/sge_blib.h +68 -0
  49. data/sge/sge_bm_text.cpp +451 -0
  50. data/sge/sge_bm_text.h +71 -0
  51. data/sge/sge_collision.cpp +388 -0
  52. data/sge/sge_collision.h +54 -0
  53. data/sge/sge_config.h +6 -0
  54. data/sge/sge_internal.h +152 -0
  55. data/sge/sge_misc.cpp +92 -0
  56. data/sge/sge_misc.h +37 -0
  57. data/sge/sge_primitives.cpp +2516 -0
  58. data/sge/sge_primitives.h +111 -0
  59. data/sge/sge_rotation.cpp +683 -0
  60. data/sge/sge_rotation.h +46 -0
  61. data/sge/sge_shape.cpp +762 -0
  62. data/sge/sge_shape.h +365 -0
  63. data/sge/sge_surface.cpp +1090 -0
  64. data/sge/sge_surface.h +100 -0
  65. data/sge/sge_textpp.cpp +785 -0
  66. data/sge/sge_textpp.h +270 -0
  67. data/sge/sge_tt_text.cpp +1456 -0
  68. data/sge/sge_tt_text.h +114 -0
  69. data/utils/buildtest.sh +29 -0
  70. data/win32/README.en.win32 +72 -0
  71. data/win32/README.ja.win32 +80 -0
  72. data/win32/install_rubysdl.rb +30 -0
  73. data/win32/mkpkg.sh +72 -0
  74. metadata +136 -113
  75. data/rubysdl_ref.en.html +0 -5879
  76. data/rubysdl_ref.en.rd +0 -6601
  77. data/rubysdl_ref.html +0 -6194
  78. data/rubysdl_ref.rd +0 -6950
@@ -0,0 +1,114 @@
1
+ /*
2
+ * SDL Graphics Extension
3
+ * Text/TrueType functions (header)
4
+ *
5
+ * Started 990815
6
+ *
7
+ * License: LGPL v2+ (see the file LICENSE)
8
+ * (c)1999-2003 Anders Lindstr�m
9
+ *
10
+ * Uses the excellent FreeType 2 library, available at:
11
+ * http://www.freetype.org/
12
+ */
13
+
14
+ /*********************************************************************
15
+ * This library is free software; you can redistribute it and/or *
16
+ * modify it under the terms of the GNU Library General Public *
17
+ * License as published by the Free Software Foundation; either *
18
+ * version 2 of the License, or (at your option) any later version. *
19
+ *********************************************************************/
20
+
21
+ #ifndef sge_tt_text_H
22
+ #define sge_tt_text_H
23
+
24
+ #include "SDL.h"
25
+ #include "sge_internal.h"
26
+
27
+ /* Text input flags */
28
+ #define SGE_IBG SGE_FLAG1
29
+ #define SGE_IDEL SGE_FLAG2
30
+ #define SGE_INOKR SGE_FLAG3
31
+
32
+ #ifndef _SGE_NOTTF
33
+
34
+ /* the truetype font structure */
35
+ typedef struct _sge_TTFont sge_TTFont;
36
+
37
+ /* Font style */
38
+ #define SGE_TTF_NORMAL SGE_FLAG0
39
+ #define SGE_TTF_BOLD SGE_FLAG1
40
+ #define SGE_TTF_ITALIC SGE_FLAG2
41
+ #define SGE_TTF_UNDERLINE SGE_FLAG3
42
+
43
+ /* ZERO WIDTH NO-BREAKSPACE (Unicode byte order mark) */
44
+ #define UNICODE_BOM_NATIVE 0xFEFF
45
+ #define UNICODE_BOM_SWAPPED 0xFFFE
46
+
47
+ #endif /* _SGE_NOTTF */
48
+
49
+
50
+
51
+ #ifdef _SGE_C
52
+ extern "C" {
53
+ #endif
54
+ #ifndef _SGE_NOTTF
55
+ DECLSPEC void sge_TTF_AAOff(void);
56
+ DECLSPEC void sge_TTF_AAOn(void);
57
+ DECLSPEC void sge_TTF_AA_Alpha(void);
58
+ DECLSPEC void sge_TTF_ByteSwappedUNICODE(int swapped);
59
+
60
+ DECLSPEC int sge_TTF_Init(void);
61
+ DECLSPEC sge_TTFont *sge_TTF_OpenFont(const char *file, int ptsize);
62
+ DECLSPEC sge_TTFont *sge_TTF_OpenFontRW( SDL_RWops *src, int freesrc, int ptsize, int xdpi, int ydpi);
63
+ DECLSPEC sge_TTFont *sge_TTF_OpenFontIndex(const char *file, int ptsize, long index, int xdpi, int ydpi);
64
+ DECLSPEC sge_TTFont *sge_TTF_OpenFontIndexRW(SDL_RWops *src, int freesrc, int ptsize, long index, int xdpi, int ydpi);
65
+ DECLSPEC int sge_TTF_SetFontSize(sge_TTFont *font, int ptsize);
66
+ DECLSPEC int sge_TTF_SetFontSizeDPI(sge_TTFont *font, int ptsize, int xdpi, int ydpi);
67
+
68
+ DECLSPEC int sge_TTF_FontHeight(sge_TTFont *font);
69
+ DECLSPEC int sge_TTF_FontAscent(sge_TTFont *font);
70
+ DECLSPEC int sge_TTF_FontDescent(sge_TTFont *font);
71
+ DECLSPEC int sge_TTF_FontLineSkip(sge_TTFont *font);
72
+ DECLSPEC long sge_TTF_FontFaces(sge_TTFont *font);
73
+ DECLSPEC int sge_TTF_FontFaceIsFixedWidth(sge_TTFont *font);
74
+ DECLSPEC char *sge_TTF_FontFaceFamilyName(sge_TTFont *font);
75
+ DECLSPEC char *sge_TTF_FontFaceStyleName(sge_TTFont *font);
76
+
77
+ DECLSPEC void sge_TTF_SetFontStyle(sge_TTFont *font, Uint8 style);
78
+ DECLSPEC Uint8 sge_TTF_GetFontStyle(sge_TTFont *font);
79
+
80
+ DECLSPEC void sge_TTF_CloseFont(sge_TTFont *font);
81
+
82
+ DECLSPEC SDL_Rect sge_TTF_TextSizeUNI(sge_TTFont *font, const Uint16 *text);
83
+ DECLSPEC SDL_Rect sge_TTF_TextSize(sge_TTFont *Font, char *Text);
84
+
85
+ DECLSPEC SDL_Rect sge_tt_textout(SDL_Surface *Surface, sge_TTFont *font, const char *string, Sint16 x, Sint16 y, Uint32 fcolor, Uint32 bcolor, int Alpha);
86
+ DECLSPEC SDL_Rect sge_tt_textout_UTF8(SDL_Surface *Surface, sge_TTFont *font, const char *string, Sint16 x, Sint16 y, Uint32 fcolor, Uint32 bcolor, int Alpha);
87
+ DECLSPEC SDL_Rect sge_tt_textout_UNI(SDL_Surface *Surface, sge_TTFont *font, const Uint16 *uni, Sint16 x, Sint16 y, Uint32 fcolor, Uint32 bcolor, int Alpha);
88
+
89
+ DECLSPEC SDL_Rect sge_tt_textoutf(SDL_Surface *Surface, sge_TTFont *font, Sint16 x, Sint16 y, Uint8 fR, Uint8 fG, Uint8 fB, Uint8 bR, Uint8 bG, Uint8 bB, int Alpha ,char *format,...);
90
+
91
+ DECLSPEC int sge_tt_input_UNI(SDL_Surface *screen,sge_TTFont *font,Uint16 *string,Uint8 flags, int pos,int len,Sint16 x,Sint16 y, Uint32 fcol, Uint32 bcol, int Alpha);
92
+ DECLSPEC int sge_tt_input(SDL_Surface *screen,sge_TTFont *font,char *string,Uint8 flags, int pos,int len,Sint16 x,Sint16 y, Uint32 fcol, Uint32 bcol, int Alpha);
93
+
94
+ DECLSPEC SDL_Surface *sge_TTF_Render(sge_TTFont *font,const Uint16 *text, SDL_Color fg, SDL_Color bg, int alpha_level);
95
+ DECLSPEC SDL_Surface *sge_TTF_RenderUNICODE(sge_TTFont *font,const Uint16 *text, SDL_Color fg, SDL_Color bg);
96
+ #endif /* _SGE_NOTTF */
97
+
98
+ DECLSPEC Uint16 *sge_Latin1_Uni(const char *text);
99
+ #ifdef _SGE_C
100
+ }
101
+ #endif
102
+
103
+
104
+ #ifndef sge_C_ONLY
105
+ #ifndef _SGE_NOTTF
106
+ DECLSPEC SDL_Rect sge_tt_textout(SDL_Surface *Surface, sge_TTFont *font, const char *string, Sint16 x, Sint16 y, Uint8 fR, Uint8 fG, Uint8 fB, Uint8 bR, Uint8 bG, Uint8 bB, int Alpha);
107
+ DECLSPEC SDL_Rect sge_tt_textout_UTF8(SDL_Surface *Surface, sge_TTFont *font, const char *string, Sint16 x, Sint16 y, Uint8 fR, Uint8 fG, Uint8 fB, Uint8 bR, Uint8 bG, Uint8 bB, int Alpha);
108
+ DECLSPEC SDL_Rect sge_tt_textout_UNI(SDL_Surface *Surface, sge_TTFont *font, const Uint16 *uni, Sint16 x, Sint16 y, Uint8 fR, Uint8 fG, Uint8 fB, Uint8 bR, Uint8 bG, Uint8 bB, int Alpha);
109
+ DECLSPEC int sge_tt_input_UNI(SDL_Surface *screen,sge_TTFont *font,Uint16 *string,Uint8 flags, int pos,int len,Sint16 x,Sint16 y, Uint8 fR, Uint8 fG, Uint8 fB, Uint8 bR,Uint8 bG,Uint8 bB, int Alpha);
110
+ DECLSPEC int sge_tt_input(SDL_Surface *screen,sge_TTFont *font,char *string,Uint8 flags, int pos,int len,Sint16 x,Sint16 y, Uint8 fR, Uint8 fG, Uint8 fB, Uint8 bR,Uint8 bG,Uint8 bB, int Alpha);
111
+ #endif /* _SGE_NOTTF */
112
+ #endif /* sge_C_ONLY */
113
+
114
+ #endif /* sge_tt_text_H */
@@ -0,0 +1,29 @@
1
+ #!/bin/sh
2
+
3
+ RBENV_VERSION=trunk-modified ruby extconf.rb
4
+ make clean; make
5
+ RBENV_VERSION=trunk-modified ruby -I lib -I. sample/sgetest.rb
6
+
7
+ RBENV_VERSION=trunk-modified ruby extconf.rb --enable-imported-sge
8
+ make clean; make
9
+ RBENV_VERSION=trunk-modified ruby -I lib -I. sample/sgetest.rb
10
+
11
+ ruby extconf.rb
12
+ make clean; make
13
+ ruby -I lib -I. sample/sgetest.rb
14
+
15
+ ruby extconf.rb --enable-imported-sge
16
+ make clean; make
17
+ ruby -I lib -I. sample/sgetest.rb
18
+
19
+ ruby1.9.1 extconf.rb
20
+ make clean; make
21
+ ruby1.9.1 -I lib -I. sample/sgetest.rb
22
+
23
+ ruby1.9.1 extconf.rb --enable-imported-sge
24
+ make clean; make
25
+ ruby1.9.1 -I lib -I. sample/sgetest.rb
26
+
27
+ ruby1.8 extconf.rb
28
+ make clean; make
29
+ ruby1.8 -I lib -I. sample/sgetest.rb
@@ -0,0 +1,72 @@
1
+
2
+ Ruby/SDL 2.1.0 Win32's binary
3
+ Ohbayashi Ippei
4
+
5
+ 1 What's Ruby/SDL?
6
+
7
+ Ruby/SDL is the ruby extension library to use SDL.
8
+ SDL(Simple DirectMedia Layer) is a cross-platform multimedia library
9
+ designed to provide fast access to the graphics framebuffer and audio
10
+ device. See http://www.libsdl.org/ if you want to know SDL in detail.
11
+
12
+ 2 Platform
13
+
14
+ This library supports
15
+ Linux on X,Win32,FreeBSD and BeOS.
16
+
17
+ And this archive contains compiled Ruby/SDL for win32 mingw's Ruby.
18
+ This binary is tested on WindowsXP, Ruby 1.8.5-p12 mswin32 and SDL 1.2.11.
19
+
20
+ 3 Install
21
+
22
+ First, install mingw32 Ruby.
23
+ You can get that from
24
+ http://www.garbagecollect.jp/ruby/mswin32/en/download/release.html
25
+
26
+ Therefore, you should run command prompt, change directory(cd) here,
27
+ and type
28
+ ruby install_rubysdl.rb
29
+ then all files are copyed and finish installation.
30
+
31
+ 3.1 Another way to install
32
+ Copy ext\sdl.so, ext\opengl.so, lib\sdl.rb, lib\rubysdl_aliases.rb
33
+ and all DLL files in dll\ to appropriate folder.
34
+ If you have installed Ruby at
35
+ C:\ruby ( in other words ruby.exe is under C:\ruby\bin ) ,
36
+ you'll copy sdl.so, and opengl.so to C:\ruby\lib\ruby\site-ruby\1.8\i386-msvcrt,
37
+ copy sdl.rb and rubysdl_aliases.rb to C:\ruby\lib\ruby\site-ruby\1.8\,
38
+ and copy all DLL files to PATH directory.
39
+
40
+ Therefore that's all right.
41
+
42
+ 4 How to use
43
+
44
+ You can find documents and samples in this archive.
45
+
46
+ 5 License
47
+
48
+ sdl.so, sdl.rb are under LGPL version 2.1.
49
+ opengl.so is under Ruby's Licence.
50
+
51
+ Ohbayashi Ippei has sdl.so, rubysdl_aliases and sdl.rb 's copyright, and
52
+ Yoshiyuki Kusano hase opengl.so's copyright.
53
+
54
+ 6 Note
55
+ Perhaps you cannot use hardware surface.
56
+
57
+ 7 Version information
58
+ Ruby 1.8.5-p12
59
+ SDL 1.2.11
60
+ SDL_image 1.2.5
61
+ SDL_ttf 2.0.7
62
+ SDL_mixer 1.2.7
63
+ SGE 030809 + patch for overflow error
64
+ Ruby/opengl 0.32g
65
+ iconv 1.11
66
+ sdlskk 0.4+
67
+
68
+ 8 Other
69
+
70
+ Please send comments and bug reports to the author or rubyforge's BTS.
71
+ RubyForge's project page: http://rubyforge.org/projects/rubysdl/
72
+ Author's mail address: ohai@kmc.gr.jp
@@ -0,0 +1,80 @@
1
+
2
+ Ruby/SDL 2.1.0 win32 �o�C�i��
3
+ ��шꕽ
4
+
5
+ 1 �T�v
6
+
7
+ ����́ARuby����SDL�̋@�\���g�����߂̊g�����C�u�����ł��B
8
+ SDL�Ƃ́AWin32,Linux,BeOS,MacOS,FreeBSD,Solaris���œ����A�N���X�v���b�g�t�H�[���ȃQ�[���J���p���C�u�����ł��B
9
+
10
+
11
+ 2 ����‹�
12
+ ���̃��C�u������Linux��X��AWin32�AFreeBSD�ABeOS�œ��삪�m�F����Ă��܂��B
13
+ ���̃A�[�J�C�u�ɂ́Amswin32 �� Ruby �p�̃R���p�C���ς݂̃��C�u������
14
+ �܂܂�Ă��܂��B
15
+ ����́ARuby 1.8.5-p12�œ�����m�F���Ă��܂��B
16
+
17
+
18
+ 3 �C���X�g�[��
19
+ Win32�ł̃C���X�g�[����������܂��B
20
+ �܂��A
21
+ http://www.ruby-lang.org/ja/install.cgi?cmd=view;name=mswin32+%28%A5%D0%A5%A4%A5%CA%A5%EA%29
22
+ �̉�����Q�l�ɂ���Ruby���C���X�g�[�����Ă��������B
23
+ Ruby�́A
24
+ http://www.garbagecollect.jp/ruby/mswin32/ja/
25
+ �ɂ���o�C�i�����g���܂��B
26
+
27
+ ���ɃR�}���h�v�����v�g���N�����A���̃A�[�J�C�u��W�J�����t�H���_��
28
+ cd �ňړ����܂��B���̌�
29
+ ruby install_rubysdl.rb
30
+ �Ƃ���ƕK�v�ȃt�@�C�����C���X�g�[������܂��B
31
+ �܂��A
32
+ ruby install_rubysdl.rb --help
33
+ �Ƃ��邱�ƂŃI�v�V�������\������܂��B
34
+ �ȏ�ŃC���X�g�[���͊����ł��B
35
+
36
+ 3.1 �ʕ��@�̂ŃC���X�g�[��
37
+ ���̃A�[�J�C�u�Ɋ܂܂��
38
+ dll/*.dll, lib/*.rb, ext/*.so
39
+ �Ƃ����t�@�C����K���ȃt�H���_�ɃR�s�[������@�ł��C���X�g�[���ł��܂��B
40
+ ruby���C���X�g�[���������t�H���_��
41
+ C:\ruby\
42
+ �Ƃ����(�‚܂� C:\ruby\bin �� ruby.exe ������Ƃ����)
43
+ C:\ruby\lib\ruby\site-ruby\1.8\ �� sdl.rb ��rubysdl_aliases.rb ���A
44
+ C:\ruby\lib\ruby\site-ruby\1.8\i386-msvcrt �� sdl.so��opengl.so ��
45
+ ���ꂼ��R�s�[���Ă��������BDLL�̓p�X�̒ʂ����t�H���_�ɃR�s�[���Ă��������B
46
+
47
+ 4 �g����
48
+ �A�[�J�C�u�Ƀh�L�������g��T���v������������Ă���̂ł�����
49
+ �Q�Ƃ��Ă��������B
50
+
51
+ 5 ���C�Z���X
52
+ GNU LGPL(GNU Lesser General Public License) version 2.1 �ȍ~�ɏ]���܂��B
53
+
54
+ �������Aopengl.so �� Yoshiyuki Kusano ���񂪍�������̂ł���A
55
+ ���쌠�͔ނɂ���A���̃��C�Z���X�� Ruby's License �ɏ]���܂��B
56
+
57
+ ���̑�Ruby��SDL�֘A�ȂǓ����̃t�@�C���͂��ꂼ�꒘�쌠�ҁA���C�Z���X��
58
+ �قȂ�܂��B�S�̂Ƃ��Ă�GPL�������ƍl���Ă��܂��܂���B
59
+
60
+
61
+ 6 ���ӂȂ�
62
+ ActiveRuby�ł����̃o�C�i���͗��p�”\�ł��B
63
+
64
+ 7 �o�[�W�������
65
+ Ruby 1.8.5
66
+ SDL 1.2.11
67
+ SDL_image 1.2.5
68
+ SDL_ttf 2.0.7
69
+ SDL_mixer 1.2.7
70
+ SGE 030809 + patch for overflow error
71
+ Ruby/opengl 0.32g
72
+ iconv 1.11
73
+ sdlskk 0.4+
74
+
75
+ 8 ���̑�
76
+ �v�]�A�o�O�񍐓��́Aohai@kmc.gr.jp�Ƀ��[�����o���Ă��������B
77
+ http://rubyforge.org/projects/rubysdl/��BTS������܂��̂ł�����ł�
78
+ �񍐂͉”\�ł��B�܂��Aruby-list�Aruby-ext�����Ă��܂��̂ŁA
79
+ �����ɕ񍐂��Ă���Ă����\�ł��B
80
+
@@ -0,0 +1,30 @@
1
+
2
+ require 'rbconfig'
3
+ require 'fileutils'
4
+ require 'optparse'
5
+
6
+ dlldir = nil
7
+ option = { :noop => false, :verbose => true }
8
+
9
+ ARGV.options do |opt|
10
+ opt.on('--dlldir DIR'){|dir| dlldir = dir}
11
+ opt.on('--no-harm'){ option[:noop] = true }
12
+ opt.on('--quiet'){ option[:verbose] = false }
13
+
14
+ opt.parse!
15
+ end
16
+
17
+ dlldir ||= Config::CONFIG["bindir"]
18
+ sitelibdir = Config::CONFIG["sitelibdir"]
19
+ sitearchdir = Config::CONFIG["sitearchdir"]
20
+
21
+
22
+ FileUtils.mkpath(dlldir, option)
23
+ FileUtils.mkpath(sitelibdir, option)
24
+ FileUtils.mkpath(sitearchdir, option)
25
+
26
+ Dir.glob("dll/*.dll"){|fname| FileUtils.install(fname, dlldir, option)}
27
+ Dir.glob("ext/*.so"){|fname| FileUtils.install(fname, sitearchdir, option)}
28
+ Dir.glob("lib/*.rb"){|fname| FileUtils.install(fname, sitelibdir, option)}
29
+
30
+
@@ -0,0 +1,72 @@
1
+ #!/bin/sh
2
+
3
+ # current directory should be rubysdl/win32
4
+
5
+ if [ "$1" = "" ]; then
6
+ echo "usage: $0 VERSION"
7
+ exit 1
8
+ fi
9
+ VERSION=$1
10
+ RUBY_VERSION=1.8.4
11
+ OPENGLDIR=../../opengl-0.32g
12
+ DLLDIR=../../lib
13
+
14
+ DIRNAME=rubysdl-$VERSION-mswin32-${RUBY_VERSION}
15
+ RUBYARCHIVE=ruby-1.8.4-i386-mswin32.zip
16
+ PACKAGE=${DIRNAME}.zip
17
+ PACK_PACKAGE=${DIRNAME}-pack.zip
18
+
19
+ mkdir $DIRNAME
20
+ mkdir $DIRNAME/lib
21
+ mkdir $DIRNAME/ext
22
+ mkdir $DIRNAME/dll
23
+ mkdir $DIRNAME/doc
24
+ mkdir $DIRNAME/sample
25
+ mkdir ruby
26
+ (cd ruby; unzip -q ../$RUBYARCHIVE)
27
+ PACKDOCDIR=ruby/doc/rubysdl-$VERSION
28
+ echo $PACKDOCDIR
29
+ mkdir $PACKDOCDIR
30
+ mkdir $PACKDOCDIR/sample
31
+ mkdir $PACKDOCDIR/doc
32
+
33
+ for fname in `cat ../MANIFEST`; do
34
+ case $fname in
35
+ sample/*)
36
+ cp ../$fname $DIRNAME/sample/
37
+ cp ../$fname $PACKDOCDIR/sample/
38
+ ;;
39
+ doc/*)
40
+ cp ../$fname $DIRNAME/doc/
41
+ cp ../$fname $PACKDOCDIR/doc/
42
+ ;;
43
+ esac
44
+ done
45
+ make -C ../doc/
46
+ cp ../doc/rubysdl_ref.rd ../doc/rubysdl_ref.html $DIRNAME
47
+ cp ../rubysdl_doc_old.rd ../rubysdl_doc.en.rd $DIRNAME
48
+ cp ../doc/rubysdl_ref.rd ../doc/rubysdl_ref.html $PACKDOCDIR
49
+ cp ../rubysdl_doc_old.rd ../rubysdl_doc.en.rd $PACKDOCDIR
50
+
51
+ cp README.en.win32 README.ja.win32 $DIRNAME
52
+ cp ../README.ja ../README.en $DIRNAME
53
+ cp ../NEWS.ja ../NEWS.en $DIRNAME
54
+ cp ../sdl.so $OPENGLDIR/opengl.so $DIRNAME/ext
55
+ cp ../lib/*.rb $DIRNAME/lib
56
+ cp $DLLDIR/*.dll $DIRNAME/dll
57
+
58
+ PACK_LIBDIR=ruby/lib/ruby/site_ruby/1.8
59
+ PACK_EXTDIR=$PACK_LIBDIR/i386-msvcrt
60
+ cp README.en.win32 README.ja.win32 $PACKDOCDIR
61
+ cp ../NEWS.ja ../NEWS.en $PACKDOCDIR
62
+ cp ../README.ja ../README.en $PACKDOCDIR
63
+ cp ../sdl.so $OPENGLDIR/opengl.so ruby/lib/ruby/site_ruby/1.8/i386-msvcrt
64
+ cp ../lib/*.rb ruby/lib/ruby/site_ruby/1.8/
65
+ cp $DLLDIR/*.dll ruby/bin
66
+
67
+ cp install_rubysdl.rb $DIRNAME
68
+
69
+ zip -q -r $PACKAGE $DIRNAME
70
+ zip -q -r $PACK_PACKAGE ruby
71
+ rm -r $DIRNAME
72
+ rm -r ruby
metadata CHANGED
@@ -1,162 +1,185 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rubysdl
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 2
7
- - 1
8
- - 2
9
- version: 2.1.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.1.3
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Ohbayashi Ippei
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2012-04-08 00:00:00 +09:00
18
- default_executable:
12
+ date: 2013-11-16 00:00:00.000000000 Z
19
13
  dependencies: []
20
-
21
- description: " Ruby/SDL is an extension library to use SDL(Simple DirectMedia\n Layer). This library enables you to control audio, keyboard,\n mouse, joystick, 3D hardware via OpenGL, and 2D video \n framebuffer. Ruby/SDL is used by games and visual demos.\n"
14
+ description: ! " Ruby/SDL is an extension library to use SDL(Simple DirectMedia\n
15
+ \ Layer). This library enables you to control audio, keyboard,\n mouse, joystick,
16
+ 3D hardware via OpenGL, and 2D video \n framebuffer. Ruby/SDL is used by games
17
+ and visual demos.\n"
22
18
  email: ohai@kmc.gr.jp
23
19
  executables: []
24
-
25
- extensions:
20
+ extensions:
26
21
  - extconf.rb
27
22
  extra_rdoc_files: []
28
-
29
- files:
23
+ files:
24
+ - LICENSE
30
25
  - MANIFEST
31
- - README.ja
32
- - README.en
33
- - NEWS.ja
34
26
  - NEWS.en
35
- - LICENSE
27
+ - NEWS.ja
28
+ - README.en
29
+ - README.ja
30
+ - SDL_kanji.c
31
+ - SDL_kanji.h
36
32
  - depend
33
+ - doc-en/Makefile
34
+ - doc-en/cdrom.rsd
35
+ - doc-en/collision.rsd
36
+ - doc-en/event.rsd
37
+ - doc-en/font.rsd
38
+ - doc-en/general.rsd
39
+ - doc-en/init.rsd
40
+ - doc-en/joystick.rsd
41
+ - doc-en/mixer.rsd
42
+ - doc-en/mpeg.rsd
43
+ - doc-en/opengl.rsd
44
+ - doc-en/sdlskk.rsd
45
+ - doc-en/time.rsd
46
+ - doc-en/video.rsd
47
+ - doc-en/wm.rsd
48
+ - doc.txt
49
+ - doc/Makefile
50
+ - doc/cdrom.rsd
51
+ - doc/collision.rsd
52
+ - doc/event.rsd
53
+ - doc/font.rsd
54
+ - doc/general.rsd
55
+ - doc/init.rsd
56
+ - doc/joystick.rsd
57
+ - doc/mixer.rsd
58
+ - doc/mpeg.rsd
59
+ - doc/opengl.rsd
60
+ - doc/rsd.rb
61
+ - doc/sdlskk.rsd
62
+ - doc/time.rsd
63
+ - doc/video.rsd
64
+ - doc/wm.rsd
37
65
  - extconf.rb
38
66
  - lib/rubysdl_aliases.rb
39
- - lib/sdl.rb
40
67
  - lib/rubysdl_compatible_ver1.rb
68
+ - lib/sdl.rb
69
+ - lib/sdl1_compatible.rb
70
+ - mkpkg.sh
71
+ - rubysdl.gemspec
41
72
  - rubysdl.h
42
- - rubysdl_ref.rd
43
- - rubysdl_ref.html
44
- - rubysdl_ref.en.rd
45
- - rubysdl_ref.en.html
73
+ - rubysdl_cdrom.c
46
74
  - rubysdl_event.c
47
75
  - rubysdl_event_key.c
76
+ - rubysdl_image.c
77
+ - rubysdl_joystick.c
78
+ - rubysdl_kanji.c
48
79
  - rubysdl_main.c
49
80
  - rubysdl_mixer.c
50
81
  - rubysdl_mouse.c
82
+ - rubysdl_opengl.c
83
+ - rubysdl_pixel.c
84
+ - rubysdl_rwops.c
85
+ - rubysdl_sdlskk.c
51
86
  - rubysdl_sge_video.c
87
+ - rubysdl_smpeg.c
52
88
  - rubysdl_time.c
89
+ - rubysdl_ttf.c
53
90
  - rubysdl_video.c
54
91
  - rubysdl_wm.c
55
- - rubysdl_ttf.c
56
- - rubysdl_cdrom.c
57
- - rubysdl_joystick.c
58
- - rubysdl_image.c
59
- - rubysdl_opengl.c
60
- - rubysdl_pixel.c
61
- - rubysdl_smpeg.c
62
- - rubysdl_sdlskk.c
63
- - rubysdl_kanji.c
64
- - rubysdl_rwops.c
65
- - SDL_kanji.c
66
- - SDL_kanji.h
67
- - sample/testsprite.rb
68
- - sample/playwave.rb
69
- - sample/movesp.rb
92
+ - sample/aadraw.rb
70
93
  - sample/alpha.rb
71
- - sample/sgetest.rb
72
- - sample/font.rb
94
+ - sample/alphadraw.rb
95
+ - sample/bfont.rb
96
+ - sample/caption.rb
73
97
  - sample/cdrom.rb
74
- - sample/playmod.rb
75
- - sample/testgl.rb
76
- - sample/testgl_old.rb
77
- - sample/icon.bmp
98
+ - sample/collision.rb
99
+ - sample/cursor.bmp
78
100
  - sample/cursor.rb
101
+ - sample/ellipses.rb
79
102
  - sample/event2.rb
103
+ - sample/font.bmp
104
+ - sample/font.rb
105
+ - sample/fpstimer.rb
106
+ - sample/icon.bmp
107
+ - sample/icon.bmp.gz
108
+ - sample/icon.png
80
109
  - sample/joy2.rb
110
+ - sample/kanji.rb
111
+ - sample/load_from_io.rb
112
+ - sample/movesp.rb
113
+ - sample/playmod.rb
81
114
  - sample/plaympeg.rb
82
- - sample/cursor.bmp
83
- - sample/transformblit.rb
115
+ - sample/playwave.rb
84
116
  - sample/randrect.rb
117
+ - sample/sample.ttf
85
118
  - sample/sdlskk.rb
86
- - sample/ellipses.rb
87
- - sample/collision.rb
119
+ - sample/sgetest.rb
88
120
  - sample/stetris.rb
89
- - sample/aadraw.rb
90
- - sample/alphadraw.rb
91
- - sample/fpstimer.rb
92
- - sample/bfont.rb
93
- - sample/font.bmp
94
- - sample/kanji.rb
95
- - sample/sample.ttf
96
- - sample/load_from_io.rb
97
- - sample/icon.png
98
- - sample/icon.bmp.gz
99
- - doc/Makefile
100
- - doc/rsd.rb
101
- - doc/cdrom.rsd
102
- - doc/collision.rsd
103
- - doc/event.rsd
104
- - doc/font.rsd
105
- - doc/general.rsd
106
- - doc/init.rsd
107
- - doc/joystick.rsd
108
- - doc/mixer.rsd
109
- - doc/mpeg.rsd
110
- - doc/sdlskk.rsd
111
- - doc/time.rsd
112
- - doc/video.rsd
113
- - doc/wm.rsd
114
- - doc-en/Makefile
115
- - doc-en/cdrom.rsd
116
- - doc-en/collision.rsd
117
- - doc-en/event.rsd
118
- - doc-en/font.rsd
119
- - doc-en/general.rsd
120
- - doc-en/init.rsd
121
- - doc-en/joystick.rsd
122
- - doc-en/mixer.rsd
123
- - doc-en/mpeg.rsd
124
- - doc-en/opengl.rsd
125
- - doc-en/sdlskk.rsd
126
- - doc-en/time.rsd
127
- - doc-en/video.rsd
128
- - doc-en/wm.rsd
129
- has_rdoc: true
121
+ - sample/testgl.rb
122
+ - sample/testgl_old.rb
123
+ - sample/testsprite.rb
124
+ - sample/transformblit.rb
125
+ - sge/INSTALL
126
+ - sge/LICENSE
127
+ - sge/Makefile
128
+ - sge/Makefile.conf
129
+ - sge/README
130
+ - sge/Todo
131
+ - sge/WhatsNew
132
+ - sge/sge.h
133
+ - sge/sge_blib.cpp
134
+ - sge/sge_blib.h
135
+ - sge/sge_bm_text.cpp
136
+ - sge/sge_bm_text.h
137
+ - sge/sge_collision.cpp
138
+ - sge/sge_collision.h
139
+ - sge/sge_config.h
140
+ - sge/sge_internal.h
141
+ - sge/sge_misc.cpp
142
+ - sge/sge_misc.h
143
+ - sge/sge_primitives.cpp
144
+ - sge/sge_primitives.h
145
+ - sge/sge_rotation.cpp
146
+ - sge/sge_rotation.h
147
+ - sge/sge_shape.cpp
148
+ - sge/sge_shape.h
149
+ - sge/sge_surface.cpp
150
+ - sge/sge_surface.h
151
+ - sge/sge_textpp.cpp
152
+ - sge/sge_textpp.h
153
+ - sge/sge_tt_text.cpp
154
+ - sge/sge_tt_text.h
155
+ - utils/buildtest.sh
156
+ - win32/README.en.win32
157
+ - win32/README.ja.win32
158
+ - win32/install_rubysdl.rb
159
+ - win32/mkpkg.sh
130
160
  homepage: http://www.kmc.gr.jp/~ohai/
131
161
  licenses: []
132
-
133
162
  post_install_message:
134
163
  rdoc_options: []
135
-
136
- require_paths:
164
+ require_paths:
137
165
  - lib
138
- required_ruby_version: !ruby/object:Gem::Requirement
166
+ required_ruby_version: !ruby/object:Gem::Requirement
139
167
  none: false
140
- requirements:
141
- - - ">="
142
- - !ruby/object:Gem::Version
143
- segments:
144
- - 0
145
- version: "0"
146
- required_rubygems_version: !ruby/object:Gem::Requirement
168
+ requirements:
169
+ - - ! '>='
170
+ - !ruby/object:Gem::Version
171
+ version: '0'
172
+ required_rubygems_version: !ruby/object:Gem::Requirement
147
173
  none: false
148
- requirements:
149
- - - ">="
150
- - !ruby/object:Gem::Version
151
- segments:
152
- - 0
153
- version: "0"
174
+ requirements:
175
+ - - ! '>='
176
+ - !ruby/object:Gem::Version
177
+ version: '0'
154
178
  requirements: []
155
-
156
179
  rubyforge_project: rubysdl
157
- rubygems_version: 1.3.7
180
+ rubygems_version: 1.8.23
158
181
  signing_key:
159
182
  specification_version: 3
160
183
  summary: The simple ruby extension library to use SDL
161
184
  test_files: []
162
-
185
+ has_rdoc: false