From 6ecf45d21998d686816dfaaa031967517d20a149 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Fri, 11 Apr 2025 12:50:07 -0600 Subject: [PATCH] ncursesw: convert to toml --- recipes/libs/ncursesw/01-config-sub.patch | 21 ----------------- recipes/libs/ncursesw/recipe.sh | 28 ----------------------- recipes/libs/ncursesw/recipe.toml | 25 ++++++++++++++++++++ 3 files changed, 25 insertions(+), 49 deletions(-) delete mode 100644 recipes/libs/ncursesw/01-config-sub.patch delete mode 100644 recipes/libs/ncursesw/recipe.sh create mode 100644 recipes/libs/ncursesw/recipe.toml diff --git a/recipes/libs/ncursesw/01-config-sub.patch b/recipes/libs/ncursesw/01-config-sub.patch deleted file mode 100644 index 8ed32be67..000000000 --- a/recipes/libs/ncursesw/01-config-sub.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff -ru source/config.sub source-new/config.sub ---- source/config.sub 2015-05-02 13:52:04.000000000 +0200 -+++ source-new/config.sub 2017-08-13 13:12:16.485670615 +0200 -@@ -2,7 +2,7 @@ - # Configuration validation subroutine script. - # Copyright 1992-2015 Free Software Foundation, Inc. - --timestamp='2015-03-08' -+timestamp='2017-08-13' - - # This file is free software; you can redistribute it and/or modify it - # under the terms of the GNU General Public License as published by -@@ -1371,7 +1371,7 @@ - # The portable systems comes first. - # Each alternative MUST END IN A *, to match a version number. - # -sysv* is not here because it comes later, after sysvr4. -- -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ -+ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* | -redox* \ - | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ - | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ - | -sym* | -kopensolaris* | -plan9* \ diff --git a/recipes/libs/ncursesw/recipe.sh b/recipes/libs/ncursesw/recipe.sh deleted file mode 100644 index 05c8e6ab9..000000000 --- a/recipes/libs/ncursesw/recipe.sh +++ /dev/null @@ -1,28 +0,0 @@ -VERSION=6.0 -TAR=https://ftp.gnu.org/gnu/ncurses/ncurses-$VERSION.tar.gz -DEPENDS="terminfo" - -function recipe_version { - echo "$VERSION" - skip=1 -} - -function recipe_build { - export CPPFLAGS="-P" - ./configure --build=${BUILD} --host=${HOST} --prefix="" --enable-widec --disable-db-install - "$REDOX_MAKE" -j"$($NPROC)" - skip=1 -} - -function recipe_clean { - "$REDOX_MAKE" clean - skip=1 -} - -function recipe_stage { - dest="$(realpath $1)" - "$REDOX_MAKE" DESTDIR="$dest" install - rm -rf "$1"/bin - rm -rf "$1"/share/{doc,info,man} - skip=1 -} diff --git a/recipes/libs/ncursesw/recipe.toml b/recipes/libs/ncursesw/recipe.toml new file mode 100644 index 000000000..f1733fe43 --- /dev/null +++ b/recipes/libs/ncursesw/recipe.toml @@ -0,0 +1,25 @@ +[source] +tar = "https://ftp.gnu.org/gnu/ncurses/ncurses-6.4.tar.gz" +blake3 = "0d1c9fdf53c0ca4bd66ba707d49a079d2dd6f5a960cdec74a56e29952c4ffe73" + +[build] +template = "custom" +script = """ +COOKBOOK_CONFIGURE_FLAGS+=( + --disable-db-install + --disable-ext-colors + --enable-widec + --without-ada + --without-cxx-binding + --without-tests + cf_cv_func_mkstemp=yes + cf_cv_wint_t=yes +) +cookbook_configure +rm -rfv "${COOKBOOK_STAGE}/bin" "${COOKBOOK_STAGE}/share/"{doc,info,man} +""" + +[package] +dependencies = [ + "terminfo", +]