fae8e0f615
- 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@
42 lines
851 B
Makefile
42 lines
851 B
Makefile
# New ports collection makefile for: RubyGems
|
|
# Date created: 07 July 2004
|
|
# Whom: Alexander Novitsky <alecn2002@yandex.ru>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= gems
|
|
PORTVERSION= 1.0.1
|
|
PORTREVISION= 4
|
|
CATEGORIES= devel ruby
|
|
MASTER_SITES= ${MASTER_SITE_RUBYFORGE}
|
|
MASTER_SITE_SUBDIR= ruby${PORTNAME}
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
|
DISTNAME= ruby${PORTNAME}-${PORTVERSION}
|
|
EXTRACT_SUFX= .tgz
|
|
DIST_SUBDIR= ruby
|
|
|
|
MAINTAINER= jw@innerewut.de
|
|
COMMENT= Package management framework for the Ruby language
|
|
|
|
USE_RUBY= yes
|
|
RUBY_SETUP= setup.rb
|
|
RUBY_VER= 1.8
|
|
|
|
NO_BUILD= yes
|
|
|
|
PLIST_SUB+= DISTNAME="${DISTNAME}"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${RUBY_VER} == 1.9
|
|
IGNORE= already included in this ruby distribution
|
|
.endif
|
|
|
|
do-install:
|
|
cd ${WRKSRC}; ${RUBY} ${RUBY_SETUP}
|
|
|
|
post-install:
|
|
@${LN} -sf ${PREFIX}/bin/gem18 ${PREFIX}/bin/gem
|
|
|
|
.include <bsd.port.post.mk>
|