summaryrefslogtreecommitdiff
path: root/development/cgdb
diff options
context:
space:
mode:
authorJoão Felipe Santos <joao.eel[at]gmail.com>2010-05-12 23:28:38 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 23:28:38 +0200
commit93bdcb139c82a1e94c521360cb240109268767c9 (patch)
treeba0bb98b59bbd8f8de4405b72b42ad3ba4b91972 /development/cgdb
parentda51cb3aaec62e628e2ffe18384635bcb7e1ce65 (diff)
downloadslackbuilds-93bdcb139c82a1e94c521360cb240109268767c9.tar.gz
development/cgdb: Added to 12.2 repository
Diffstat (limited to 'development/cgdb')
-rw-r--r--development/cgdb/README7
-rw-r--r--development/cgdb/cgdb.SlackBuild98
-rw-r--r--development/cgdb/cgdb.info8
-rw-r--r--development/cgdb/slack-desc19
4 files changed, 132 insertions, 0 deletions
diff --git a/development/cgdb/README b/development/cgdb/README
new file mode 100644
index 0000000000..4a84d18a93
--- /dev/null
+++ b/development/cgdb/README
@@ -0,0 +1,7 @@
+CGDB is a curses (terminal-based) interface to the GNU Debugger (GDB). Its goal
+is to be lightweight and responsive; not encumbered with unnecessary features.
+
+The primary feature of CGDB is the constant presence of a source display,
+updated as the program executes, to help keep you focused while debugging.
+The interface is inspired by the classic Unix text editor, vi. Those familiar
+with vi (or vim) should feel right at home using CGDB.
diff --git a/development/cgdb/cgdb.SlackBuild b/development/cgdb/cgdb.SlackBuild
new file mode 100644
index 0000000000..82614a15e6
--- /dev/null
+++ b/development/cgdb/cgdb.SlackBuild
@@ -0,0 +1,98 @@
+#!/bin/sh
+
+# Slackware build script for cgdb
+
+# Written by João Felipe Santos <joao.eel@gmail.com>
+
+# Copyright (c) 2009 João Felipe Santos
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+PRGNAM=cgdb
+VERSION=${VERSION:-0.6.4}
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+fi
+
+set -e # Exit on most errors
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --infodir=/usr/info \
+ --build=$ARCH-slackware-linux
+
+make
+make install DESTDIR=$PKG
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+)
+
+( cd $PKG/usr/man
+ find . -type f -exec gzip -9 {} \;
+ for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+)
+
+rm -f $PKG/usr/info/dir
+gzip -9 $PKG/usr/info/*
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS COPYING ChangeLog NEWS README TODO \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/development/cgdb/cgdb.info b/development/cgdb/cgdb.info
new file mode 100644
index 0000000000..bc7fc440c8
--- /dev/null
+++ b/development/cgdb/cgdb.info
@@ -0,0 +1,8 @@
+PRGNAM="cgdb"
+VERSION="0.6.4"
+HOMEPAGE="http://cgdb.sourceforge.net"
+DOWNLOAD="http://downloads.sourceforge.net/cgdb/cgdb-0.6.4.tar.gz"
+MD5SUM="bddcaaee7b20ab2c17f1f4e197db74c0"
+MAINTAINER="João Felipe Santos"
+EMAIL="joao.eel[at]gmail.com"
+APPROVED="rworkman"
diff --git a/development/cgdb/slack-desc b/development/cgdb/slack-desc
new file mode 100644
index 0000000000..65682b1760
--- /dev/null
+++ b/development/cgdb/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|' on
+# the right side marks the last column you can put a character in. You must make
+# exactly 11 lines for the formatting to be correct. It's also customary to
+# leave one space after the ':'.
+
+ |-----handy-ruler-------------------------------------------------------|
+cgdb: cgdb (A curses interface for cgdb)
+cgdb:
+cgdb: CGDB is a curses (terminal-based) interface to the GNU Debugger (GDB).
+cgdb: Its goal is to be lightweight and responsive; not encumbered with
+cgdb: unnecessary features.
+cgdb:
+cgdb: Homepage: http://cgdb.sourceforge.net
+cgdb:
+cgdb:
+cgdb:
+cgdb: