aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2013-10-20 11:47:09 +0800
committerswills <swills@FreeBSD.org>2013-10-20 11:47:09 +0800
commitc902aeeb5aff0c54b1a644a100ec573e1b589bed (patch)
tree44fbbd83062e4974b1d42556544d3e3c700dab64
parent3611250cddac1d7745cbd73049d9bce662529f6d (diff)
downloadfreebsd-ports-gnome-c902aeeb5aff0c54b1a644a100ec573e1b589bed.tar.gz
freebsd-ports-gnome-c902aeeb5aff0c54b1a644a100ec573e1b589bed.tar.zst
freebsd-ports-gnome-c902aeeb5aff0c54b1a644a100ec573e1b589bed.zip
debugger is a fast implementation of the standard Ruby debugger debug.rb. It
is implemented by utilizing a new Ruby C API hook. The core component provides support that front-ends can build on. It provides breakpoint handling, bindings for stack frames among other things. WWW: http://github.com/cldwalker/debugger PR: ports/183036 Submitted by: Vladimir Kondratiev <wulf@mail.mipt.ru>
-rw-r--r--devel/Makefile1
-rw-r--r--devel/rubygem-debugger/Makefile39
-rw-r--r--devel/rubygem-debugger/distinfo2
-rw-r--r--devel/rubygem-debugger/files/patch-debugger-1.6.2.gemspec25
-rw-r--r--devel/rubygem-debugger/files/patch-ext-ruby_debug-extconf.rb21
-rw-r--r--devel/rubygem-debugger/pkg-descr6
6 files changed, 94 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 0971b188a30b..4e14fd8beb32 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4053,6 +4053,7 @@
SUBDIR += rubygem-cri
SUBDIR += rubygem-daemon_controller
SUBDIR += rubygem-daemons
+ SUBDIR += rubygem-debugger
SUBDIR += rubygem-debugger-linecache
SUBDIR += rubygem-deeptest
SUBDIR += rubygem-delayed_job
diff --git a/devel/rubygem-debugger/Makefile b/devel/rubygem-debugger/Makefile
new file mode 100644
index 000000000000..b8c2e4e93653
--- /dev/null
+++ b/devel/rubygem-debugger/Makefile
@@ -0,0 +1,39 @@
+# Created by: Vladimir Kondratiev <wulf@mail.mipt.ru>
+# $FreeBSD$
+
+PORTNAME= debugger
+PORTVERSION= 1.6.2
+CATEGORIES= devel rubygems
+MASTER_SITES= RG
+
+MAINTAINER= wulf@mail.mipt.ru
+COMMENT= Fast implementation of the standard Ruby debugger
+
+RUN_DEPENDS= rubygem-columnize>=0.3.1:${PORTSDIR}/devel/rubygem-columnize \
+ rubygem-debugger-linecache>=1.2.0:${PORTSDIR}/devel/rubygem-debugger-linecache
+
+USE_RUBY= yes
+USE_RUBYGEMS= yes
+RUBYGEM_AUTOPLIST= yes
+PLIST_FILES= bin/rdebug
+MAN1= rdebug.1
+
+CONFIGURE_ARGS= --with-ruby-include=${WRKDIR}/ruby
+
+post-extract:
+ ${LN} -sf `cd ${PORTSDIR}/${RUBY_PORT}; make -V WRKSRC` ${WRKDIR}/ruby
+
+post-install:
+ @${INSTALL_MAN} ${WRKSRC}/man/rdebug.1 ${PREFIX}/man/man1
+
+NO_STAGE= yes
+
+.include <bsd.port.pre.mk>
+
+BUILD_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/${RUBY_PORT}:patch
+
+.if ${RUBY_VER} == 1.8
+BROKEN= does not work with ruby 1.8
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/rubygem-debugger/distinfo b/devel/rubygem-debugger/distinfo
new file mode 100644
index 000000000000..bf173d70054d
--- /dev/null
+++ b/devel/rubygem-debugger/distinfo
@@ -0,0 +1,2 @@
+SHA256 (rubygem/debugger-1.6.2.gem) = 4df316df5121b6327b8e79b73da49239e1f036dd2089af18f1919b4d199f2fa1
+SIZE (rubygem/debugger-1.6.2.gem) = 282112
diff --git a/devel/rubygem-debugger/files/patch-debugger-1.6.2.gemspec b/devel/rubygem-debugger/files/patch-debugger-1.6.2.gemspec
new file mode 100644
index 000000000000..e59712e51512
--- /dev/null
+++ b/devel/rubygem-debugger/files/patch-debugger-1.6.2.gemspec
@@ -0,0 +1,25 @@
+--- debugger-1.6.2.gemspec.orig 2013-07-27 12:49:18.000000000 +0400
++++ debugger-1.6.2.gemspec 2013-07-27 13:03:58.000000000 +0400
+@@ -30,22 +30,6 @@
+ - !ruby/object:Gem::Version
+ version: 0.3.1
+ - !ruby/object:Gem::Dependency
+- name: debugger-ruby_core_source
+- requirement: !ruby/object:Gem::Requirement
+- none: false
+- requirements:
+- - - ~>
+- - !ruby/object:Gem::Version
+- version: 1.2.3
+- type: :runtime
+- prerelease: false
+- version_requirements: !ruby/object:Gem::Requirement
+- none: false
+- requirements:
+- - - ~>
+- - !ruby/object:Gem::Version
+- version: 1.2.3
+-- !ruby/object:Gem::Dependency
+ name: debugger-linecache
+ requirement: !ruby/object:Gem::Requirement
+ none: false
diff --git a/devel/rubygem-debugger/files/patch-ext-ruby_debug-extconf.rb b/devel/rubygem-debugger/files/patch-ext-ruby_debug-extconf.rb
new file mode 100644
index 000000000000..5c32eaac077f
--- /dev/null
+++ b/devel/rubygem-debugger/files/patch-ext-ruby_debug-extconf.rb
@@ -0,0 +1,21 @@
+--- ext/ruby_debug/extconf.rb.orig 2013-07-27 13:58:53.000000000 +0400
++++ ext/ruby_debug/extconf.rb 2013-07-27 14:01:30.000000000 +0400
+@@ -13,7 +13,6 @@
+ end
+
+ require "mkmf"
+-require "debugger/ruby_core_source"
+ require 'fileutils'
+
+ if RUBY_VERSION < "1.9"
+@@ -84,7 +83,9 @@
+ end
+
+ dir_config("ruby")
+-if !Debugger::RubyCoreSource.create_makefile_with_core(hdrs, "ruby_debug")
++if hdrs.call
++ create_makefile("ruby_debug")
++else
+ STDERR.print("Makefile creation failed\n")
+ STDERR.print("*************************************************************\n\n")
+ STDERR.print(" NOTE: If your headers were not found, try passing\n")
diff --git a/devel/rubygem-debugger/pkg-descr b/devel/rubygem-debugger/pkg-descr
new file mode 100644
index 000000000000..54dd654d91e7
--- /dev/null
+++ b/devel/rubygem-debugger/pkg-descr
@@ -0,0 +1,6 @@
+debugger is a fast implementation of the standard Ruby debugger debug.rb. It
+is implemented by utilizing a new Ruby C API hook. The core component
+provides support that front-ends can build on. It provides breakpoint
+handling, bindings for stack frames among other things.
+
+WWW: http://github.com/cldwalker/debugger