Fri Feb 25 02:34:14 2011 UTC ()
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.
Status:
Vendor Tag: TNF
Release Tags: pkgsrc-base
(obache)
diff -r0 -r1.1.1.1 pkgsrc/devel/ruby-memoize/Makefile
diff -r0 -r1.1.1.1 pkgsrc/devel/ruby-memoize/DESCR
diff -r0 -r1.1.1.1 pkgsrc/devel/ruby-memoize/distinfo
diff -r0 -r1.1.1.1 pkgsrc/devel/ruby-memoize/PLIST
diff -r0 -r1.1.1.1 pkgsrc/devel/ruby-memoize/patches/patch-Rakefile
# $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"
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.
$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
@comment $NetBSD: PLIST,v 1.1.1.1 2011/02/25 02:34:13 obache Exp $
${RUBY_VENDORLIB}/memoize.rb
$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