aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ruby-rbprof
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-10-04 09:07:14 +0800
committeredwin <edwin@FreeBSD.org>2003-10-04 09:07:14 +0800
commit286ccfaca5fa25984d182409924ee3d0af224f6a (patch)
treef2cc8434cf29f19755e69b880ba7ba3b0b63e77e /devel/ruby-rbprof
parent6cb3dcdce330433126c7db929f9c5dfed9869402 (diff)
downloadfreebsd-ports-gnome-286ccfaca5fa25984d182409924ee3d0af224f6a.tar.gz
freebsd-ports-gnome-286ccfaca5fa25984d182409924ee3d0af224f6a.tar.zst
freebsd-ports-gnome-286ccfaca5fa25984d182409924ee3d0af224f6a.zip
New port: devel/ruby-rbprof
New port: rbprof. A faster more flexible profiler for Ruby. PR: ports/36913 Submitted by: Sean Chittenden <sean@chittenden.org>
Diffstat (limited to 'devel/ruby-rbprof')
-rw-r--r--devel/ruby-rbprof/Makefile36
-rw-r--r--devel/ruby-rbprof/distinfo1
-rw-r--r--devel/ruby-rbprof/files/patch-aspects::profiler::lib::rbprof.rb9
-rw-r--r--devel/ruby-rbprof/pkg-descr6
-rw-r--r--devel/ruby-rbprof/pkg-plist6
5 files changed, 58 insertions, 0 deletions
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 <sean@chittenden.org>
+#
+# $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 <bsd.port.mk>
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 <sean@chittenden.org>
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