freebsd-ports/www/rubygem-mongrel_cluster/Makefile
Philip M. Gollucci 2c48b50a7b - Prep ruby Rails 3
Convert to RG

With Hat:       ruby
Sponsored by:   RideCharge Inc. / Taximagic
2010-09-02 02:33:34 +00:00

32 lines
908 B
Makefile

# Ports collection makefile for: mongrel_cluster
# Date created: 20 May 2006
# Whom: Rui Lopes (<rgl ruilopes com>)
#
# $FreeBSD$
PORTNAME= mongrel_cluster
PORTVERSION= 1.0.5
PORTREVISION= 1
CATEGORIES= www rubygems
MASTER_SITES= RG
MAINTAINER= avl@FreeBSD.org
COMMENT= Manages multiple Mongrel processes
RUN_DEPENDS= rubygem-mongrel>=1.0.2:${PORTSDIR}/www/rubygem-mongrel
USE_RC_SUBR= mongrel_cluster
USE_RUBY= yes
USE_RUBYGEMS= yes
RUBYGEM_AUTOPLIST= yes
REINPLACE_ARGS= -i ""
PLIST_FILES= bin/mongrel_cluster_ctl
post-install:
@${REINPLACE_CMD} -e 's|/usr/bin/env ruby|${RUBY}|' ${PREFIX}/bin/mongrel_cluster_ctl
@${REINPLACE_CMD} -e 's|mongrel_rails|${PREFIX}/bin/mongrel_rails|g' \
${PREFIX}/${GEM_LIB_DIR}/bin/mongrel_cluster_ctl
@${REINPLACE_CMD} -e 's|\"mongrel_rails\"|\"${PREFIX}/bin/mongrel_rails\"|g' \
${PREFIX}/${GEM_LIB_DIR}/lib/${PORTNAME}/init.rb
.include <bsd.port.mk>