- Implement new knobs for gems and rake (these are included in ruby 1.9 distribution already). Also move gem bits from ruby-gems/Makefile.common to bsd.ruby.mk[1]. Now to depend on gems or rake you should define USE_RUBYGEMS/USE_RAKE accordingly. Also RAKE_BIN variable is provided for pointing to the right rake executable. - Rewrite RUBY_SCHEBANG in awk to eliminate build dependency on ruby. Discussed with: Jonathan Weiss <jw@innerewut.de> [1] (gems maintainer) Tested by: ports@
30 lines
779 B
Makefile
30 lines
779 B
Makefile
# New ports collection makefile for: ferret
|
|
# Date created: 2006-08-10
|
|
# Whom: Cheng-Lung Sung <clsung@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= ferret
|
|
PORTVERSION= 0.11.6
|
|
CATEGORIES= textproc rubygems
|
|
MASTER_SITES= RF
|
|
|
|
MAINTAINER= clsung@FreeBSD.org
|
|
COMMENT= Ferret is a ruby port of Lucene
|
|
|
|
USE_RUBY= yes
|
|
USE_RAKE= yes
|
|
USE_RUBYGEMS= yes
|
|
|
|
post-install:
|
|
@${FIND} ${PREFIX}/${GEM_LIB_DIR} ! -type d | \
|
|
${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
|
|
@${FIND} ${PREFIX}/${GEM_LIB_DIR} -type d | ${SORT} -r | \
|
|
${SED} "s,^${PREFIX}/,@dirrm ," >> ${TMPPLIST}
|
|
@${FIND} ${PREFIX}/${GEM_DOC_DIR} ! -type d | \
|
|
${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
|
|
@${FIND} ${PREFIX}/${GEM_DOC_DIR} -type d | ${SORT} -r | \
|
|
${SED} "s,^${PREFIX}/,@dirrm ," >> ${TMPPLIST}
|
|
|
|
.include <bsd.port.mk>
|