From 06956c696b37b91d1a6a44a97130a20d6967d044 Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Sat, 4 Oct 2003 01:07:14 +0000 Subject: [PATCH] New port: devel/ruby-rbprof New port: rbprof. A faster more flexible profiler for Ruby. PR: ports/36913 Submitted by: Sean Chittenden --- devel/Makefile | 1 + devel/ruby-rbprof/Makefile | 36 +++++++++++++++++++ devel/ruby-rbprof/distinfo | 1 + .../patch-aspects::profiler::lib::rbprof.rb | 9 +++++ devel/ruby-rbprof/pkg-descr | 6 ++++ devel/ruby-rbprof/pkg-plist | 6 ++++ 6 files changed, 59 insertions(+) create mode 100644 devel/ruby-rbprof/Makefile create mode 100644 devel/ruby-rbprof/distinfo create mode 100644 devel/ruby-rbprof/files/patch-aspects::profiler::lib::rbprof.rb create mode 100644 devel/ruby-rbprof/pkg-descr create mode 100644 devel/ruby-rbprof/pkg-plist diff --git a/devel/Makefile b/devel/Makefile index bdeec651de72..f00ef80c5204 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -970,6 +970,7 @@ SUBDIR += ruby-racc SUBDIR += ruby-rbbr SUBDIR += ruby-rbison + SUBDIR += ruby-rbprof SUBDIR += ruby-rbtree SUBDIR += ruby-robjectteam SUBDIR += ruby-rreadline diff --git a/devel/ruby-rbprof/Makefile b/devel/ruby-rbprof/Makefile new file mode 100644 index 000000000000..ebf6156273cb --- /dev/null +++ b/devel/ruby-rbprof/Makefile @@ -0,0 +1,36 @@ +# New ports collection makefile for: ruby-rbprof +# Date created: 08 April 2002 +# Whom: Sean Chittenden +# +# $FreeBSD$ +# + +PORTNAME= rbprof +PORTVERSION= 0.2.1 +CATEGORIES= devel ruby +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= aspectr +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: + ${MKDIR} ${PORTDOCS}${RUBY_DOCDIR}/rbprof + ${INSTALL_DATA} ${WRKSRC}/README ${PORTDOCS}${RUBY_DOCDIR}/rbprof/ + ${INSTALL_DATA} ${WRKSRC}/TODO ${PORTDOCS}${RUBY_DOCDIR}/rbprof/ + ${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 diff --git a/devel/ruby-rbprof/distinfo b/devel/ruby-rbprof/distinfo new file mode 100644 index 000000000000..60209983194f --- /dev/null +++ b/devel/ruby-rbprof/distinfo @@ -0,0 +1 @@ +MD5 (ruby/aspectr-0-3-5.tar.gz) = c640a1a82802ddb107c3ee1245a22705 diff --git a/devel/ruby-rbprof/files/patch-aspects::profiler::lib::rbprof.rb b/devel/ruby-rbprof/files/patch-aspects::profiler::lib::rbprof.rb new file mode 100644 index 000000000000..d442ebdbc5cc --- /dev/null +++ b/devel/ruby-rbprof/files/patch-aspects::profiler::lib::rbprof.rb @@ -0,0 +1,9 @@ +--- aspects/profiler/lib/rbprof.rb.orig Tue Jan 29 07:45:45 2002 ++++ aspects/profiler/lib/rbprof.rb Fri Oct 3 18:02:23 2003 +@@ -1,5 +1,5 @@ + require 'aspectr' +-require 'trap_method_definitions' ++require 'rbprof/trap_method_definitions' + + class Profiler < AspectR::Aspect + def initialize diff --git a/devel/ruby-rbprof/pkg-descr b/devel/ruby-rbprof/pkg-descr new file mode 100644 index 000000000000..017f410054ba --- /dev/null +++ b/devel/ruby-rbprof/pkg-descr @@ -0,0 +1,6 @@ +This package is a faster profiler than the bulitin Ruby profiler and +allows Ruby developers to focus on the methods that are hand-written. + +WWW: http://aspectr.sourceforge.net/rbprof/ + +- Sean Chittenden diff --git a/devel/ruby-rbprof/pkg-plist b/devel/ruby-rbprof/pkg-plist new file mode 100644 index 000000000000..eb3da2ed792c --- /dev/null +++ b/devel/ruby-rbprof/pkg-plist @@ -0,0 +1,6 @@ +%%PORTDOCS%%%%RUBY_DOCDIR%%/rbprof/README +%%PORTDOCS%%%%RUBY_DOCDIR%%/rbprof/TODO +%%RUBY_SITELIBDIR%%/rbprof.rb +%%RUBY_SITELIBDIR%%/rbprof/trap_method_definitions.rb +@dirrm %%PORTDOCS%%%%RUBY_DOCDIR%%/rbprof +@dirrm %%RUBY_SITELIBDIR%%/rbprof