aboutsummaryrefslogtreecommitdiff
path: root/devel/ruby-rbprof/Makefile
blob: 1faf5a2face9dc38d131b623c0f0025e79388e91 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# New ports collection makefile for:	ruby-rbprof
# Date created:		08 April 2002
# Whom:			Sean Chittenden <sean@chittenden.org>
#
# $FreeBSD$
#

PORTNAME=	rbprof
PORTVERSION=	0.2.1
CATEGORIES=	devel ruby
MASTER_SITES=	SF/aspectr/aspectr/0.3.5
DISTNAME=	aspectr-0-3-5
DIST_SUBDIR=	ruby

MAINTAINER=	sean@chittenden.org
COMMENT=	A flexible Ruby profiler

#RUN_DEPENDS=	${RUBY_SITELIBDIR}/runit/error.rb:${PORTSDIR}/devel/ruby-unit \
#		${RUBY_SITELIBDIR}/aspectr.rb:${PORTSDIR}/devel/ruby-aspectr

USE_RUBY=	yes

NO_BUILD=	yes

do-install:
.ifndef NOPORTDOCS
	@${MKDIR} ${PORTDOCS}${RUBY_DOCDIR}/rbprof
	${INSTALL_DATA} ${WRKSRC}/README ${PORTDOCS}${RUBY_DOCDIR}/rbprof/
	${INSTALL_DATA} ${WRKSRC}/TODO ${PORTDOCS}${RUBY_DOCDIR}/rbprof/
.endif
	${RUBY} -p -i -e 'gsub(/\r\n/, "\n")' ${WRKSRC}/aspects/profiler/lib/rbprof.rb
	${RUBY} -p -i -e 'gsub(/\r\n/, "\n")' ${WRKSRC}/aspects/profiler/lib/trap_method_definitions.rb
	${INSTALL_DATA} ${WRKSRC}/aspects/profiler/lib/rbprof.rb ${RUBY_SITELIBDIR}/
	${MKDIR} ${RUBY_SITELIBDIR}/rbprof
	${INSTALL_DATA} ${WRKSRC}/aspects/profiler/lib/trap_method_definitions.rb ${RUBY_SITELIBDIR}/rbprof/

.include <bsd.port.mk>