freebsd-ports/www/rubygem-mongrel_cluster/Makefile
Alexander Logvinov 29c6893e43 - Re-assign all my ruby* ports to ruby@
Discussed with:	pgollucci, stas
2010-12-08 23:08:04 +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= 2
CATEGORIES= www rubygems
MASTER_SITES= RG
MAINTAINER= ruby@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>