diff options
author | Mark Linimon <linimon@FreeBSD.org> | 2004-09-03 19:44:01 +0000 |
---|---|---|
committer | Mark Linimon <linimon@FreeBSD.org> | 2004-09-03 19:44:01 +0000 |
commit | 60baa01555e0b0e31bf105dc76a51c72a9f34c2d (patch) | |
tree | 7d06a2073aaa511bb9cc2a99ffb6020cec1bac7e /devel | |
parent | eb4429a739fbfdf8f922be45baf8ff2df69eb66f (diff) | |
download | ports-60baa01555e0b0e31bf105dc76a51c72a9f34c2d.tar.gz ports-60baa01555e0b0e31bf105dc76a51c72a9f34c2d.zip |
Notes
Diffstat (limited to 'devel')
-rw-r--r-- | devel/ruby-locale/Makefile | 5 | ||||
-rw-r--r-- | devel/ruby-locale/files/patch-ab | 27 |
2 files changed, 29 insertions, 3 deletions
diff --git a/devel/ruby-locale/Makefile b/devel/ruby-locale/Makefile index aedac2d88fd8..0436fded2672 100644 --- a/devel/ruby-locale/Makefile +++ b/devel/ruby-locale/Makefile @@ -7,21 +7,20 @@ PORTNAME= locale PORTVERSION= 0.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel ruby MASTER_SITES= http://kafka.salemstate.edu/~yashi/ruby/ PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} DISTNAME= ruby-${PORTNAME}-${PORTVERSION} DIST_SUBDIR= ruby -MAINTAINER= knu@FreeBSD.org +MAINTAINER= alecn2002@yandex.ru COMMENT= A simple Ruby module that provides setlocale(3) #USE_BZIP2= yes # only saves 500 bytes.. USE_RUBY= yes USE_RUBY_EXTCONF= yes -WRKSRC= ${WRKDIR}/${DISTNAME} INSTALL_TARGET= site-install post-install: diff --git a/devel/ruby-locale/files/patch-ab b/devel/ruby-locale/files/patch-ab new file mode 100644 index 000000000000..4afd2cead8b6 --- /dev/null +++ b/devel/ruby-locale/files/patch-ab @@ -0,0 +1,27 @@ +--- rblocale.c.orig Fri Apr 14 08:20:58 2000 ++++ rblocale.c Mon Jun 21 20:36:37 2004 +@@ -31,6 +31,16 @@ + return ret == NULL ? Qnil : rb_str_new2(ret); + } + ++VALUE ++locale_get( self, category ) ++ VALUE self, category; ++{ ++ char *ret; ++ ++ ret = setlocale(NUM2INT(category), NULL ); ++ return ret == NULL ? Qnil : rb_str_new2(ret); ++} ++ + void Init_locale() + { + char *curr_locale; +@@ -44,6 +54,7 @@ + } + + rb_define_module_function(mLocale, "set", locale_set, 2); ++ rb_define_module_function(mLocale, "get", locale_get, 1); + + rb_define_const(mLocale, "ALL", INT2FIX(LC_ALL)); + rb_define_const(mLocale, "COLLATE", INT2FIX(LC_COLLATE)); |