diff options
author | obache <obache@pkgsrc.org> | 2011-02-25 02:34:13 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2011-02-25 02:34:13 +0000 |
commit | fdb620b3f5961cde05e5fda3bbd5da179103e911 (patch) | |
tree | f25c2b6be5882cc7f87d6d20dfcedad225711ebd /devel/ruby-memoize | |
parent | 17250ee217d90a37d851c5a21a3f4ecd52863963 (diff) | |
download | pkgsrc-fdb620b3f5961cde05e5fda3bbd5da179103e911.tar.gz |
Import ruby-memoize-1.3.1 as devel/ruby-memoize.
The memoize library allows you to cache methods for faster lookup.
Cached results can either be stored in memory (the default) or to
a file.
Diffstat (limited to 'devel/ruby-memoize')
-rw-r--r-- | devel/ruby-memoize/DESCR | 3 | ||||
-rw-r--r-- | devel/ruby-memoize/Makefile | 30 | ||||
-rw-r--r-- | devel/ruby-memoize/PLIST | 2 | ||||
-rw-r--r-- | devel/ruby-memoize/distinfo | 6 | ||||
-rw-r--r-- | devel/ruby-memoize/patches/patch-Rakefile | 19 |
5 files changed, 60 insertions, 0 deletions
diff --git a/devel/ruby-memoize/DESCR b/devel/ruby-memoize/DESCR new file mode 100644 index 00000000000..73a44cac348 --- /dev/null +++ b/devel/ruby-memoize/DESCR @@ -0,0 +1,3 @@ +The memoize library allows you to cache methods for faster lookup. +Cached results can either be stored in memory (the default) or to +a file. diff --git a/devel/ruby-memoize/Makefile b/devel/ruby-memoize/Makefile new file mode 100644 index 00000000000..70b22c4e39b --- /dev/null +++ b/devel/ruby-memoize/Makefile @@ -0,0 +1,30 @@ +# $NetBSD: Makefile,v 1.1.1.1 2011/02/25 02:34:13 obache Exp $ +# + +DISTNAME= memoize-1.3.1 +CATEGORIES= devel +MASTER_SITES= http://rubyforge.org/frs/download.php/61790/ + +MAINTAINER= obache@NetBSD.org +HOMEPAGE= http://www.rubyforge.org/projects/shards +COMMENT= Speeds up methods at the cost of memory (or disk space) +LICENSE= artistic-2.0 + +PKG_DESTDIR_SUPPORT= user-destdir + +USE_LANGUAGES= # none +NO_BUILD= yes +USE_RAKE= yes + +INSTALLATION_DIRS+= ${RUBY_VENDORLIB} + +do-test: + ${RUN} cd ${WRKSRC}; \ + ${SETENV} ${TEST_ENV} ${RAKE} test + +do-install: + ${RUN} cd ${WRKSRC}; \ + ${SETENV} ${MAKE_ENV} ${INSTALL_ENV} ${RAKE} install + +.include "../../lang/ruby/modules.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/ruby-memoize/PLIST b/devel/ruby-memoize/PLIST new file mode 100644 index 00000000000..aaa1b84afbf --- /dev/null +++ b/devel/ruby-memoize/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2011/02/25 02:34:13 obache Exp $ +${RUBY_VENDORLIB}/memoize.rb diff --git a/devel/ruby-memoize/distinfo b/devel/ruby-memoize/distinfo new file mode 100644 index 00000000000..a8acc8cb228 --- /dev/null +++ b/devel/ruby-memoize/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2011/02/25 02:34:13 obache Exp $ + +SHA1 (memoize-1.3.1.tar.gz) = 421dd0587ff836bbb38d018ee460be343ca06d80 +RMD160 (memoize-1.3.1.tar.gz) = 6206c7c262122486be2c8461e23b0c86a84529ed +Size (memoize-1.3.1.tar.gz) = 4492 bytes +SHA1 (patch-Rakefile) = 7e7ab2d75a3bfeea340506b0477845987468898e diff --git a/devel/ruby-memoize/patches/patch-Rakefile b/devel/ruby-memoize/patches/patch-Rakefile new file mode 100644 index 00000000000..1ca84a510ff --- /dev/null +++ b/devel/ruby-memoize/patches/patch-Rakefile @@ -0,0 +1,19 @@ +$NetBSD: patch-Rakefile,v 1.1.1.1 2011/02/25 02:34:13 obache Exp $ + +* install into vendorlibdir +* staged installation + +--- Rakefile.orig 2009-08-08 14:36:30.000000000 +0000 ++++ Rakefile +@@ -5,7 +5,10 @@ include Config + + desc 'Install the memoize library (non-gem)' + task :install do +- sitelibdir = CONFIG['sitelibdir'] ++ sitelibdir = CONFIG['vendorlibdir'] ++ if (destdir = ENV['DESTDIR']) ++ sitelibdir = File.join(destdir, sitelibdir) ++ end + file = 'lib/memoize.rb' + FileUtils.cp(file, sitelibdir, :verbose => true) + end |