From abd007e3beefac0845f8b370c1bccb275bac753d Mon Sep 17 00:00:00 2001 From: fbrosson Date: Mon, 2 Apr 2018 15:55:20 +0000 Subject: [PATCH] sed 4.5: add recipe for the latest release but mark it as untested. --- sys-apps/sed/patches/sed-4.5.patchset | 22 ++++++++ sys-apps/sed/sed-4.5.recipe | 77 +++++++++++++++++++++++++++ 2 files changed, 99 insertions(+) create mode 100644 sys-apps/sed/patches/sed-4.5.patchset create mode 100644 sys-apps/sed/sed-4.5.recipe diff --git a/sys-apps/sed/patches/sed-4.5.patchset b/sys-apps/sed/patches/sed-4.5.patchset new file mode 100644 index 000000000..1bae6c284 --- /dev/null +++ b/sys-apps/sed/patches/sed-4.5.patchset @@ -0,0 +1,22 @@ +From 7fc7761c22fbd9f5c481d97d8655f310ecb9180c Mon Sep 17 00:00:00 2001 +From: Oliver Tappe +Date: Thu, 8 Aug 2013 11:44:47 +0200 +Subject: applying patch sed-4.2.1.patch + + +diff --git a/lib/regexec.c b/lib/regexec.c +index fc18850..f6ad711 100644 +--- a/lib/regexec.c ++++ b/lib/regexec.c +@@ -17,6 +17,8 @@ + License along with the GNU C Library; if not, see + . */ + ++#include "stdbool.h" ++ + static reg_errcode_t match_ctx_init (re_match_context_t *cache, int eflags, + Idx n); + static void match_ctx_clean (re_match_context_t *mctx); +-- +2.16.3 + diff --git a/sys-apps/sed/sed-4.5.recipe b/sys-apps/sed/sed-4.5.recipe new file mode 100644 index 000000000..07f1a0abb --- /dev/null +++ b/sys-apps/sed/sed-4.5.recipe @@ -0,0 +1,77 @@ +SUMMARY="The famous stream editor" +DESCRIPTION="Sed is a stream editor, i.e. it can be used to perform basic \ +text transformations on an input stream (a file or input from a pipeline). +While in some ways similar to an editor which permits scripted edits (such as \ +ed), sed works by making only one pass over the input(s), and is consequently \ +more efficient. But it is sed's ability to filter text in a pipeline which \ +particularly distinguishes it from other types of editors." +HOMEPAGE="https://www.gnu.org/software/sed/" +COPYRIGHT="1989-2018 Free Software Foundation, Inc." +LICENSE="GNU GPL v3" +REVISION="1" +SOURCE_URI="https://ftpmirror.gnu.org/sed/sed-$portVersion.tar.xz + https://ftp.gnu.org/gnu/sed/sed-$portVersion.tar.xz" +CHECKSUM_SHA256="7aad73c8839c2bdadca9476f884d2953cdace9567ecd0d90f9959f229d146b40" +PATCHES="sed-$portVersion.patchset" + +ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64 ?arm" +SECONDARY_ARCHITECTURES="?x86" + +commandSuffix=$secondaryArchSuffix +commandBinDir=$binDir +if [ "$targetArchitecture" = x86_gcc2 ]; then + commandSuffix= + commandBinDir=$prefix/bin +fi + +PROVIDES=" + sed$secondaryArchSuffix = $portVersion compat >= 4 + cmd:sed$commandSuffix = $portVersion compat >= 4 + " +REQUIRES=" + haiku$secondaryArchSuffix + " +if [ -n "$secondaryArchSuffix" -a -z "$commandSuffix" ]; then +CONFLICTS=" + sed + " +fi + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:awk + cmd:g++$secondaryArchSuffix + cmd:grep + cmd:ld$secondaryArchSuffix + cmd:make + " + +TEST_REQUIRES=" + cmd:cmp + " + +defineDebugInfoPackage sed$secondaryArchSuffix \ + "$commandBinDir"/sed + + +BUILD() +{ + runConfigure --omit-dirs binDir ./configure --bindir="$commandBinDir" \ + --enable-regex-tests --without-included-regex \ + --disable-rpath --with-gnu-ld + make $jobArgs +} + +INSTALL() +{ + make install + rm "$libDir"/charset.alias + rmdir "$libDir" +} + +TEST() +{ + make check +}