diff options
author | miwi <miwi@FreeBSD.org> | 2008-11-10 07:05:41 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2008-11-10 07:05:41 +0800 |
commit | f6844dcf2ec73fe68d5bcfcb4911a42d6a860e26 (patch) | |
tree | 5bcffaa678668b23342606e9dd06a9740ae2c16e /devel/rubygem-arrayfields | |
parent | 75480dc1193fd1c8bee29cd39437d4234ed5fcf2 (diff) | |
download | freebsd-ports-gnome-f6844dcf2ec73fe68d5bcfcb4911a42d6a860e26.tar.gz freebsd-ports-gnome-f6844dcf2ec73fe68d5bcfcb4911a42d6a860e26.tar.zst freebsd-ports-gnome-f6844dcf2ec73fe68d5bcfcb4911a42d6a860e26.zip |
arrayfields allow keyword access to array instances.
arrayfields works by adding only a few methods to arrays,
namely #fields= and fields, but the #fields= method is
hooked to extend an array on a per object basis.In
otherwords __only__ those arrays whose fields are set
will have auto-magical keyword access bestowed on
them - all other arrays remain unaffected.arrays with
keyword access require much less memory when compared
to hashes/objects and yet still provide fast lookup and
preserve data order.
WWW: http://codeforpeople.com/lib/ruby/arrayfields/
PR: ports/128663
Submitted by: Wen Heping <wenheping at gmail.com>
Diffstat (limited to 'devel/rubygem-arrayfields')
-rw-r--r-- | devel/rubygem-arrayfields/Makefile | 27 | ||||
-rw-r--r-- | devel/rubygem-arrayfields/distinfo | 3 | ||||
-rw-r--r-- | devel/rubygem-arrayfields/pkg-descr | 12 |
3 files changed, 42 insertions, 0 deletions
diff --git a/devel/rubygem-arrayfields/Makefile b/devel/rubygem-arrayfields/Makefile new file mode 100644 index 000000000000..1540c9235e98 --- /dev/null +++ b/devel/rubygem-arrayfields/Makefile @@ -0,0 +1,27 @@ +# New ports collection makefile for: rubygem-arrayfields +# Date created: 07, Nov 2008 +# Whom: Wen Heping <wenheping@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= arrayfields +PORTVERSION= 4.6.0 +CATEGORIES= devel rubygems +MASTER_SITES= RF/codeforpeople + +MAINTAINER= wenheping@gmail.com +COMMENT= Allow Keyword Access to Array Instances + +USE_RUBY= yes +USE_RUBYGEMS= yes + +post-install: + @${ECHO} ${GEM_CACHE} > ${TMPPLIST} + @${FIND} ${PREFIX}/${GEM_DOC_DIR} -type f | ${SED} -e 's,${PREFIX}/${GEM_DOC_DIR},${GEM_DOC_DIR},' >> ${TMPPLIST} + @${FIND} ${PREFIX}/${GEM_LIB_DIR} -type f | ${SED} -e 's,${PREFIX}/${GEM_LIB_DIR},${GEM_LIB_DIR},' >> ${TMPPLIST} + @${ECHO} ${GEM_SPEC} >> ${TMPPLIST} + @${FIND} ${PREFIX}/${GEM_LIB_DIR} -type d -depth | ${SED} -e 's,${PREFIX}/${GEM_LIB_DIR},@dirrm ${GEM_LIB_DIR},' >> ${TMPPLIST} + @${FIND} ${PREFIX}/${GEM_DOC_DIR} -type d -depth | ${SED} -e 's,${PREFIX}/${GEM_DOC_DIR},@dirrm ${GEM_DOC_DIR},' >> ${TMPPLIST} + +.include <bsd.port.mk> diff --git a/devel/rubygem-arrayfields/distinfo b/devel/rubygem-arrayfields/distinfo new file mode 100644 index 000000000000..f7f7a068c3fc --- /dev/null +++ b/devel/rubygem-arrayfields/distinfo @@ -0,0 +1,3 @@ +MD5 (rubygem/arrayfields-4.6.0.gem) = 1fc502b73d1c0061232e306f881c17ea +SHA256 (rubygem/arrayfields-4.6.0.gem) = 1a4a3563d026d6c11c3bee7a0ea1222cc7d4c4b152da86aa7ee3aa40951de59f +SIZE (rubygem/arrayfields-4.6.0.gem) = 13312 diff --git a/devel/rubygem-arrayfields/pkg-descr b/devel/rubygem-arrayfields/pkg-descr new file mode 100644 index 000000000000..145f36919ebb --- /dev/null +++ b/devel/rubygem-arrayfields/pkg-descr @@ -0,0 +1,12 @@ +arrayfields allow keyword access to array instances. +arrayfields works by adding only a few methods to arrays, +namely #fields= and fields, but the #fields= method is +hooked to extend an array on a per object basis.In +otherwords __only__ those arrays whose fields are set +will have auto-magical keyword access bestowed on +them - all other arrays remain unaffected.arrays with +keyword access require much less memory when compared +to hashes/objects and yet still provide fast lookup and +preserve data order. + +WWW: http://codeforpeople.com/lib/ruby/arrayfields/ |