From 66008866a08ebe74ac6e7bdfa1770f281211371e Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 9 Feb 2022 20:32:32 +0000 Subject: added gdb --- repo/devel/gdb.xibuild | 32 ++++++++++++++++++++++++++++++++ repo/system/python-six.xibuild | 16 ++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 repo/devel/gdb.xibuild create mode 100644 repo/system/python-six.xibuild 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 +} diff --git a/repo/system/python-six.xibuild b/repo/system/python-six.xibuild new file mode 100644 index 0000000..56ba330 --- /dev/null +++ b/repo/system/python-six.xibuild @@ -0,0 +1,16 @@ +#!/bin/bash + +MAKEDEPS=(python ) +DEPS=() + +PKG_VER=1.16.0 +SOURCE=https://github.com/benjaminp/six/archive/refs/tags/$PKG_VER.tar.gz +DESC="A python 2 and 3 compatibility library" + +build() { + python setup.py build +} + +package () { + python3 setup.py install --root="$PKG_DEST" --optimize=1 +} -- cgit v1.2.1