summaryrefslogtreecommitdiff
path: root/repo/devel/gdb.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-02-09 20:32:32 +0000
committerdavidovski <david@davidovski.xyz>2022-02-09 20:32:32 +0000
commit66008866a08ebe74ac6e7bdfa1770f281211371e (patch)
tree8c8d79368873c0b32ce0742da237b8c89d53dddc /repo/devel/gdb.xibuild
parentb38d10b63e750cc8fee6adb08c74b03936d5e394 (diff)
added gdb
Diffstat (limited to 'repo/devel/gdb.xibuild')
-rw-r--r--repo/devel/gdb.xibuild32
1 files changed, 32 insertions, 0 deletions
diff --git a/repo/devel/gdb.xibuild b/repo/devel/gdb.xibuild
new file mode 100644
index 0000000..1e3e95a
--- /dev/null
+++ b/repo/devel/gdb.xibuild
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+MAKEDEPS=(make expat guile pmfr ncurses python xz texinfo)
+DEPS=(python-six doxygen gcc guile python rustc valgrind systemtap)
+
+PKG_VER=11.2
+SOURCE=https://ftp.gnu.org/gnu/gdb/gdb-$PKG_VER.tar.xz
+DESC="The GNU debugger"
+
+build () {
+ mkdir build &&
+ cd build &&
+
+ ../configure --prefix=/usr \
+ --with-system-readline \
+ --with-python=/usr/bin/python3 &&
+ make
+
+}
+
+check () {
+ pushd gdb/testsuite &&
+ make site.exp &&
+ echo "set gdb_test_timeout 120" >> site.exp &&
+ runtest
+ popd
+
+}
+
+package () {
+ make -C gdb DESTDIR=$PKG_DEST install
+}