wok annotate gdb-python/receipt @ rev 25000

updated nms (0.3.3 -> 1.0.1)
author Hans-G?nter Theisgen
date Mon May 16 13:53:18 2022 +0100 (2022-05-16)
parents 71360a13cd94
children d79ed38ace18
rev   line source
erjo@4819 1 # SliTaz package receipt.
erjo@4819 2
erjo@4819 3 PACKAGE="gdb-python"
Hans-G?nter@24587 4 VERSION="11.2"
erjo@4819 5 CATEGORY="development"
erjo@4819 6 SHORT_DESC="The GNU Project Debugger with Python support."
erjo@4819 7 MAINTAINER="erjo@slitaz.org"
Hans-G?nter@24587 8 LICENSE="GPL3"
Hans-G?nter@24587 9 WEB_SITE="https://www.gnu.org/software/gdb/"
Hans-G?nter@24587 10
erjo@4820 11 SOURCE="gdb"
Hans-G?nter@24587 12 TARBALL="$SOURCE-$VERSION.tar.xz"
slaxemulator@11008 13 WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL"
erjo@4819 14 PROVIDE="gdb"
Hans-G?nter@24587 15 SUGGESTED="gdb-lang"
Hans-G?nter@24587 16 DEPENDS="expat gcc83-lib-base glibc-dev gmp ncurses python"
Hans-G?nter@24587 17 BUILD_DEPENDS="gcc83 gmp-dev ncurses-dev python-dev"
pascal@15000 18
pascal@24336 19 # What is the latest version available today?
pascal@24336 20 current_version()
pascal@24336 21 {
pascal@24336 22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24336 23 sed "/latest/d;/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24336 24 }
pascal@24336 25
erjo@4819 26 # Rules to configure and make the package.
erjo@4819 27 compile_rules()
erjo@4819 28 {
Hans-G?nter@24587 29 ./configure \
Hans-G?nter@24587 30 CC=gcc-83 \
Hans-G?nter@24587 31 CXX=g++-83 \
Hans-G?nter@24587 32 --disable-werror \
pankso@16316 33 $CONFIGURE_ARGS &&
Hans-G?nter@24587 34 make $MAKEFLAGS &&
Hans-G?nter@24587 35 make install
erjo@4819 36 }
erjo@4819 37
erjo@4819 38 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@4819 39 genpkg_rules()
erjo@4819 40 {
pascal@18163 41 mkdir -p $fs/usr/share
Hans-G?nter@24587 42
Hans-G?nter@24587 43 cook_copy_folders bin
Hans-G?nter@24587 44 cook_copy_folders lib
pascal@18163 45 cp -a $install/usr/share/gdb $fs/usr/share
erjo@4819 46 }