summaryrefslogtreecommitdiff
path: root/japanese
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2003-01-22 20:35:03 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2003-01-22 20:35:03 +0000
commitc8e74261eb7acd976c877a010fb7554d550886f6 (patch)
tree4d8b125bd50aa948a2a918a4b6a1b76deddf34ed /japanese
parentReplace one more occurrance of Xft.h. (diff)
Update to 2.1.
Notes
Notes: svn path=/head/; revision=73811
Diffstat (limited to 'japanese')
-rw-r--r--japanese/ruby-eb/Makefile11
-rw-r--r--japanese/ruby-eb/distinfo2
-rw-r--r--japanese/ruby-eb/files/patch-eb.c21
-rw-r--r--japanese/ruby-eb/pkg-plist1
4 files changed, 31 insertions, 4 deletions
diff --git a/japanese/ruby-eb/Makefile b/japanese/ruby-eb/Makefile
index 5158cbdd8a0c..020502db911a 100644
--- a/japanese/ruby-eb/Makefile
+++ b/japanese/ruby-eb/Makefile
@@ -6,9 +6,10 @@
#
PORTNAME= eb
-PORTVERSION= 1.7
+PORTVERSION= 2.1
CATEGORIES= japanese ruby
-MASTER_SITES= http://www.threeweb.ad.jp/~nyasu/software/
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ruby${PORTNAME}
DISTNAME= ruby-${PORTNAME}${PORTVERSION}
DIST_SUBDIR= ruby
@@ -22,6 +23,8 @@ USE_RUBY_EXTCONF= yes
NO_WRKSUBDIR= yes
INSTALL_TARGET= site-install
+EXAMPLES= hook2.rb test.rb
+
.include <bsd.port.pre.mk>
PKGNAMEPREFIX:= ${PKGNAMEPREFIX}${RUBY_PKGNAMEPREFIX}
@@ -29,7 +32,9 @@ PKGNAMEPREFIX:= ${PKGNAMEPREFIX}${RUBY_PKGNAMEPREFIX}
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_MODEXAMPLESDIR}/ja/
- ${INSTALL_DATA} ${WRKSRC}/test.rb ${RUBY_MODEXAMPLESDIR}/ja/
+.for f in ${EXAMPLES}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODEXAMPLESDIR}/ja/
+.endfor
${MKDIR} ${RUBY_MODDOCDIR}/ja
${INSTALL_DATA} ${WRKSRC}/eb.html ${RUBY_MODDOCDIR}/ja/
.endif
diff --git a/japanese/ruby-eb/distinfo b/japanese/ruby-eb/distinfo
index 237d79819f9d..8688e34b1e25 100644
--- a/japanese/ruby-eb/distinfo
+++ b/japanese/ruby-eb/distinfo
@@ -1 +1 @@
-MD5 (ruby/ruby-eb1.7.tar.gz) = ef178abc707974a322f00bfb695902a3
+MD5 (ruby/ruby-eb2.1.tar.gz) = 90f000540fca38f3d2e816a249a3e652
diff --git a/japanese/ruby-eb/files/patch-eb.c b/japanese/ruby-eb/files/patch-eb.c
new file mode 100644
index 000000000000..c17c85797291
--- /dev/null
+++ b/japanese/ruby-eb/files/patch-eb.c
@@ -0,0 +1,21 @@
+--- eb.c.orig Wed Jan 22 23:26:46 2003
++++ eb.c Thu Jan 23 05:22:13 2003
+@@ -1407,18 +1407,16 @@
+ rb_define_const(mod, "HOOK_END_MONO_GRAPHIC", INT2FIX(EB_HOOK_END_MONO_GRAPHIC));
+
+ rb_define_const(mod, "HOOK_BEGIN_GRAY_GRAPHIC", INT2FIX(EB_HOOK_BEGIN_GRAY_GRAPHIC));
+ rb_define_const(mod, "HOOK_END_GRAY_GRAPHIC", INT2FIX(EB_HOOK_END_GRAY_GRAPHIC));
+
+ rb_define_const(mod, "HOOK_BEGIN_COLOR_BMP", INT2FIX(EB_HOOK_BEGIN_COLOR_BMP));
+ rb_define_const(mod, "HOOK_BEGIN_COLOR_JPEG", INT2FIX(EB_HOOK_BEGIN_COLOR_JPEG));
+ rb_define_const(mod, "HOOK_END_COLOR_GRAPHIC", INT2FIX(EB_HOOK_END_COLOR_GRAPHIC));
+- rb_define_const(mod, "HOOK_BEGIN_IN_COLOR_BMP", INT2FIX(EB_HOOK_BEGIN_IN_COLOR_BMP));
+- rb_define_const(mod, "HOOK_BEGIN_IN_COLOR_JPEG", INT2FIX(EB_HOOK_BEGIN_IN_COLOR_JPEG));
+ rb_define_const(mod, "HOOK_END_IN_COLOR_GRAPHIC", INT2FIX(EB_HOOK_END_COLOR_GRAPHIC));
+
+ #if EB_VERSION_MAJOR==3 && EB_VERSION_MINOR < 2
+ rb_define_const(mod, "HOOK_STOP_CODE", INT2FIX(EB_HOOK_STOP_CODE));
+
+ rb_define_const(mod, "HOOK_BEGIN_IN_COLOR_BMP", INT2FIX(EB_HOOK_BEGIN_IN_COLOR_BMP));
+ rb_define_const(mod, "HOOK_BEGIN_IN_COLOR_JPEG", INT2FIX(EB_HOOK_BEGIN_IN_COLOR_JPEG));
+ #else
diff --git a/japanese/ruby-eb/pkg-plist b/japanese/ruby-eb/pkg-plist
index f35e0bae5194..697a78f0657a 100644
--- a/japanese/ruby-eb/pkg-plist
+++ b/japanese/ruby-eb/pkg-plist
@@ -1,4 +1,5 @@
%%RUBY_SITEARCHLIBDIR%%/eb.so
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/ja/hook2.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/ja/test.rb
%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/ja
%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%