From 97b50641659b9cb8463d2c57c6437ec9f4bee492 Mon Sep 17 00:00:00 2001 From: jgh Date: Fri, 11 Jan 2013 22:05:13 +0000 Subject: - update remaining ruby@ maintained ports to new options framework - trim historical header where applicable Reviewed by: swills@ (ruby@) --- www/rubygem-rails/Makefile | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) (limited to 'www') diff --git a/www/rubygem-rails/Makefile b/www/rubygem-rails/Makefile index 19b2a159e97a..7fc159c01bd8 100644 --- a/www/rubygem-rails/Makefile +++ b/www/rubygem-rails/Makefile @@ -1,7 +1,4 @@ -# Ports collection makefile for: rubygem-rails -# Date created: 27 May 2005 -# Whom: Jonathan Weiss () -# +# Created by: Jonathan Weiss () # $FreeBSD$ PORTNAME= rails @@ -44,33 +41,33 @@ USE_RUBY_RDOC= yes USE_RUBYGEMS= yes RUBYGEM_AUTOPLIST= yes -OPTIONS= \ - FCGI "FastCGI backend" Off \ - MONGREL "Mongrel backend" Off \ - MONGRELCLUSTER "Mongrel Cluster backend" Off \ - PASSENGER "Passenger backend" Off \ - MEMCACHE_CLIENT "MemCache-Client support" Off +OPTIONS_DEFINE=FCGI MONGREL MONGRELCLUSTER PASSENGER MEMCACHE_CLIENT +FCGI_DESC= FastCGI backend +MONGREL_DESC= Mongrel backend +MONGRELCLUSTER_DESC= Mongrel Cluster backend +PASSENGER_DESC= Passenger backend +MEMCACHE_CLIENT_DESC= MemCache-Client support OPTIONSFILE= ${PORT_DBDIR}/rubygem-${PORTNAME}/options .include -.if defined(WITH_FCGI) +.if ${PORT_OPTIONS:MFCGI} RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/fcgi.so:${PORTSDIR}/www/ruby-fcgi .endif -.if defined(WITH_MEMCACHE_CLIENT) +.if ${PORT_OPTIONS:MMEMCACHE_CLIENT} RUN_DEPENDS+= rubygem-memcache-client>=1.2.0:${PORTSDIR}/databases/rubygem-memcache-client .endif -.if defined(WITH_MONGREL) +.if ${PORT_OPTIONS:MMONGREL} RUN_DEPENDS+= rubygem-mongrel>=1.1.5:${PORTSDIR}/www/rubygem-mongrel .endif -.if defined(WITH_MONGRELCLUSTER) +.if ${PORT_OPTIONS:MMONGRELCLUSTER} RUN_DEPENDS+= rubygem-mongrel_cluster>=1.0.5:${PORTSDIR}/www/rubygem-mongrel_cluster .endif -.if defined(WITH_PASSENGER) +.if ${PORT_OPTIONS:MPASSENGER} RUN_DEPENDS+= rubygem-passenger>=2.2.15:${PORTSDIR}/www/rubygem-passenger .endif -- cgit