Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bashdb port #1

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions devel/bashdb/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# New ports collection makefile for: bashdb
# Date created: 2013-01-26
# Whom: rocky
#
# $FreeBSD$

PORTNAME= bashdb
PORTVERSION= 0.8
CATEGORIES= devel
MASTER_SITES= SF
MASTER_SITE_SUBDIR=bashdb/code/
DISTNAME= bashdb-4.2-${PORTVERSION}

MAINTAINER= rocky@gnu.org
COMMENT= Bash debugger

LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING

RUN_DEPENDS= bash:${PORTSDIR}/shells/bash

GNU_CONFIGURE= yes
USE_BZIP2= yes
USE_GMAKE= yes

.include <bsd.port.mk>
2 changes: 2 additions & 0 deletions devel/bashdb/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SHA256 (bashdb-4.2-0.8.tar.bz2) = 4c4f5a24570710726eac9ab2e72e53e7bc91d25e2f186a42a4d7a704f8363385
SIZE (bashdb-4.2-0.8.tar.bz2) = 556311
33 changes: 33 additions & 0 deletions devel/bashdb/files/patch-Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
--- Makefile.am.orig
+++ Makefile.am
@@ -57,18 +57,18 @@ data_DATA =
# the basename that bash wants to use is symlinked to the main name
# that this distribution uses dbg-main.sh, unless those are the same.
#
-OLD_DIR = $(dir @DBGR_MAIN@)
-OLD_MAIN = $(notdir @DBGR_MAIN@)
-PARENT_DIR = $(dir $(OLD_DIR))
-install-data-hook:
- @if test -d $(DESTDIR)$(OLD_DIR) ; then \
- $(RM) -f $(DESTDIR)$(OLD_DIR)/* || true; \
- $(MAKE) $(AM_MAKEFLAGS) install-pkgdataDATA; \
- else if test -L $(DESTDIR)$(OLD_DIR:/=) ; then \
- $(RM) -f $(DESTDIR)$(OLD_DIR:/=) || true; \
- $(MAKE) $(AM_MAKEFLAGS) install-pkgdataDATA; \
- fi; fi
- test -d $(DESTDIR)$(PKGDATADIR) || $(mkdir_p) $(DESTDIR)$(PKGDATADIR)
+# OLD_DIR = $(dir @DBGR_MAIN@)
+# OLD_MAIN = $(notdir @DBGR_MAIN@)
+# PARENT_DIR = $(dir $(OLD_DIR))
+# install-data-hook:
+# @if test -d $(DESTDIR)$(OLD_DIR) ; then \
+# $(RM) -f $(DESTDIR)$(OLD_DIR)/* || true; \
+# $(MAKE) $(AM_MAKEFLAGS) install-pkgdataDATA; \
+# else if test -L $(DESTDIR)$(OLD_DIR:/=) ; then \
+# $(RM) -f $(DESTDIR)$(OLD_DIR:/=) || true; \
+# $(MAKE) $(AM_MAKEFLAGS) install-pkgdataDATA; \
+# fi; fi
+# test -d $(DESTDIR)$(PKGDATADIR) || $(mkdir_p) $(DESTDIR)$(PKGDATADIR)

# Unit testing
check-unit: test-unit
59 changes: 59 additions & 0 deletions devel/bashdb/files/patch-command_Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
--- command/Makefile.am.orig
+++ command/Makefile.am
@@ -1,6 +1,55 @@
SUBDIRS = info_sub set_sub show_sub
pkgdatadir = ${datadir}/@PACKAGE@/command
-pkgdata_DATA = $(wildcard *.sh)
+pkgdata_DATA = \
+ action.sh \
+ alias.sh \
+ backtrace.sh \
+ break.sh \
+ clear.sh \
+ commands.sh \
+ complete.sh \
+ condition.sh \
+ continue.sh \
+ debug.sh \
+ delete.sh \
+ disable.sh \
+ display.sh \
+ down.sh \
+ edit.sh \
+ enable.sh \
+ eval.sh \
+ examine.sh \
+ export.sh \
+ file.sh \
+ finish.sh \
+ frame.sh \
+ handle.sh \
+ help.sh \
+ history.sh \
+ info.sh \
+ kill.sh \
+ list.sh \
+ load.sh \
+ log.sh \
+ next.sh \
+ pwd.sh \
+ quit.sh \
+ return.sh \
+ run.sh \
+ search.sh \
+ set.sh \
+ shell.sh \
+ show.sh \
+ signal.sh \
+ skip.sh \
+ source.sh \
+ step.sh \
+ trace.sh \
+ tty.sh \
+ undisplay.sh \
+ untrace.sh \
+ up.sh \
+ watch.sh

EXTRA_DIST = $(pkgdata_DATA)

27 changes: 27 additions & 0 deletions devel/bashdb/files/patch-doc_Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
--- doc/Makefile.am.orig
+++ doc/Makefile.am
@@ -42,14 +42,14 @@ html: @PACKAGE@.html @PACKAGE@-man.html
$(man1_MANS): @PACKAGE@-man.pod
pod2man --release=$(PACKAGE_VERSION) --name=@PACKAGE@ --center="GNU Tools" --section=$(EXT) $(srcdir)/@PACKAGE@-man.pod >$@

-%.ps.gz: %.ps
- gzip -9c $< > $@
+#%.ps.gz: %.ps
+# gzip -9c $< > $@

.texi.pdf:
- $(TEXI2PDF) -I $(srcdir) $<
+ $(TEXI2PDF) -I $(srcdir) $< || true

.texi.dvi:
- $(TEXI2DVI) -I $(srcdir) $<
+ $(TEXI2DVI) -I $(srcdir) $< || true

.dvi.ps:
test -d $(docdir) || mkdir $(docdir)
@@ -63,4 +63,4 @@ $(man1_MANS): @PACKAGE@-man.pod

all-formats: pdf dvi txt ps html

-MOSTLYCLEANFILES = @PACKAGE@.tgs @PACKAGE@.ps.gz @PACKAGE@.pdf @PACKAGE@.html @PACKAGE@_toc.html @PACKAGE@_foot.html $(man1_MANS) @PACKAGE@-man.html
+MOSTLYCLEANFILES = @PACKAGE@.tgs @PACKAGE@.ps.gz @PACKAGE@.pdf @PACKAGE@.html @PACKAGE@_toc.html @PACKAGE@_foot.html $(man1_MANS) @PACKAGE@-man.html pod2htm?.tmp @PACKAGE@.info
25 changes: 25 additions & 0 deletions devel/bashdb/files/patch-info_sub_Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
--- command/info_sub/Makefile.am.orig
+++ command/info_sub/Makefile.am
@@ -1,7 +1,20 @@
MOSTLYCLEANFILES = *.orig *.rej

pkgdatadir = ${datadir}/@PACKAGE@/command/info_sub
-pkgdata_DATA = $(wildcard *.sh)
-pkgdatadir = ${datadir}/@PACKAGE@/command/info_sub
+pkgdata_DATA = \
+ args.sh \
+ breakpoints.sh \
+ display.sh \
+ files.sh \
+ functions.sh \
+ handle.sh \
+ line.sh \
+ program.sh \
+ signals.sh \
+ source.sh \
+ stack.sh \
+ variables.sh \
+ warranty.sh \
+ watchpoints.sh

EXTRA_DIST = $(pkgdata_DATA)
14 changes: 14 additions & 0 deletions devel/bashdb/files/patch-init_Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- init/Makefile.am.orig
+++ init/Makefile.am
@@ -1,5 +1,10 @@
pkgdatadir = ${datadir}/@PACKAGE@/init
-pkgdata_DATA = $(wildcard *.sh)
+pkgdata_DATA = \
+ io.sh \
+ opts.sh \
+ pre.sh \
+ require.sh \
+ vars.sh

EXTRA_DIST = $(pkgdata_DATA)
MOSTLYCLEANFILES = *.orig *.rej
72 changes: 72 additions & 0 deletions devel/bashdb/files/patch-test_interation_Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
--- test/integration/Makefile.am.orig
+++ test/integration/Makefile.am
@@ -1,8 +1,27 @@
-test_in_files := $(wildcard test-*.in)
-tests_from_in_files := $(notdir $(test_in_files:.in=))
+test_in_files = \
+ Makefile.in \
+ check-common.sh.in \
+ test-bug-step-subshell.in \
+ test-debug.in \
+ test-delete.in \
+ test-export.in \
+ test-info-args.in \
+ test-misc.in \
+ test-setshow.in \
+ test-sig.in
+
+tests_from_in_files = \
+ test-bug-step-subshell \
+ test-debug \
+ test-delete \
+ test-export \
+ test-info-args \
+ test-misc \
+ test-setshow \
+ test-sig

check_DATA = \
- $(data_in_files) \
+ $(test_in_files) \
check-common.sh.in \
interrupt.tests \
interrupt-3.tests \
@@ -13,37 +32,7 @@ check_DATA = \
trace.tests \
trace2.tests

-TESTS = \
- $(tests_from_in_files) \
- test-action \
- test-brkpt \
- test-bug-args \
- test-bugI \
- test-bugIFS \
- test-bug-source \
- test-command \
- test-complete \
- test-display \
- test-enable \
- test-file-with-spaces \
- test-finish \
- test-frame \
- test-interrupt \
- test-list \
- test-lopts \
- test-multi \
- test-parm \
- test-restart \
- test-search \
- test-settrace \
- test-skip \
- test-sopts \
- test-bug-step \
- test-subshell \
- test-tbreak \
- test-trace \
- test-watch1 \
- test-watch2
+TESTS = $(tests_from_in_files)

TESTS_ENVIRONMENT = \
srcdir="$(abs_srcdir)" \
5 changes: 5 additions & 0 deletions devel/bashdb/pkg-descr
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
bashdb is a Bash debugger similar to gdb.

If you have pygments installed it can colorize source code listing.

WWW: http://bashdb.sourceforge.net
Loading