freebsd-ports/devel/rubygem-arrayfields/Makefile
Martin Wilke 2dfb96a62b 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>
2008-11-09 23:05:41 +00:00

27 lines
962 B
Makefile

# 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>