openbsd-ports/devel/ruby-ref/Makefile
jeremy d32c7798a9 Import ruby-ref-1.0.2.
ruby-ref provides object references for Ruby as well as some common
utilities for working with references. Object references are used to
point to other objects and come in three distinct flavors that interact
differently with the garbage collector.

* Ref::StrongReference - This is a plain old pointer to another object.

* Ref::WeakReference - This is a pointer to another object, but it is
not seen by the garbage collector and the memory used by the object can
be reclaimed at any time.

* Ref::SoftReference - This is similar to a weak reference, but the
garbage collector is not as eager to reclaim the referenced object.

All of these classes extend from a common Ref::Reference class and have
a common interface.

Weak and soft references are useful when you have instantiated objects
that you may want to use again but can recreate if necessary. Since the
garbage collector determines when to reclaim the memory used by the
objects, you don't need to worry about bloating the Ruby heap.

OK abieber@
2012-12-12 21:49:37 +00:00

23 lines
447 B
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2012/12/12 21:49:37 jeremy Exp $
COMMENT = object reference utilities for ruby
DISTNAME = ref-1.0.2
CATEGORIES = devel
HOMEPAGE= https://github.com/bdurand/ref
# MIT
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
MODULES = lang/ruby
CONFIGURE_STYLE = ruby gem
MODRUBY_REGRESS = testrb
MODRUBY_REGRESS_TARGET = test/*_test.rb
.include <bsd.port.mk>