From c0783bf7ba0708ede14af45b73078db6813b343a Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Thu, 16 Feb 2017 22:27:21 +0100 Subject: [PATCH] sed: add recipe for version 4.4. --- sys-apps/sed/patches/sed-4.4.patchset | 42 +++++++++++++++++++++ sys-apps/sed/sed-4.4.recipe | 54 +++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) create mode 100644 sys-apps/sed/patches/sed-4.4.patchset create mode 100644 sys-apps/sed/sed-4.4.recipe diff --git a/sys-apps/sed/patches/sed-4.4.patchset b/sys-apps/sed/patches/sed-4.4.patchset new file mode 100644 index 000000000..4fce13eb1 --- /dev/null +++ b/sys-apps/sed/patches/sed-4.4.patchset @@ -0,0 +1,42 @@ +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 45bc796..3d757ca 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) internal_function; + static void match_ctx_clean (re_match_context_t *mctx) internal_function; +-- +2.10.2 + + +From 4b02f1a4b378d25a1595cdbe9c7c3ab483cfa2aa Mon Sep 17 00:00:00 2001 +From: Oliver Tappe +Date: Thu, 8 Aug 2013 11:50:12 +0200 +Subject: Fix path to 'env' in help2man + + +diff --git a/build-aux/help2man b/build-aux/help2man +index ac3b293..590a5f2 100755 +--- a/build-aux/help2man ++++ b/build-aux/help2man +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/bin/env perl + + # Generate a short man page from --help and --version output. + # Copyright (C) 1997-2017 Free Software Foundation, Inc. +-- +2.10.2 + diff --git a/sys-apps/sed/sed-4.4.recipe b/sys-apps/sed/sed-4.4.recipe new file mode 100644 index 000000000..d50de5498 --- /dev/null +++ b/sys-apps/sed/sed-4.4.recipe @@ -0,0 +1,54 @@ +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="http://www.gnu.org/software/sed" +COPYRIGHT="1989-2009 Free Software Foundation, Inc." +LICENSE="GNU GPL v3" +REVISION="1" +SOURCE_URI="http://ftp.gnu.org/gnu/sed/sed-$portVersion.tar.xz" +CHECKSUM_SHA256="cbd6ebc5aaf080ed60d0162d7f6aeae58211a1ee9ba9bb25623daa6cd942683b" +PATCHES="sed-$portVersion.patchset" + +ARCHITECTURES="?x86_gcc2 ?x86 x86_64 ?arm" + +PROVIDES=" + sed = $portVersion compat >= 4 + cmd:sed = $portVersion compat >= 4 + " +REQUIRES=" + haiku + " + +BUILD_REQUIRES=" + haiku_devel + " +BUILD_PREREQUIRES=" + cmd:gcc + cmd:ld + cmd:make + cmd:awk + cmd:grep + " + +defineDebugInfoPackage sed \ + $binDir/sed + + +BUILD() +{ + runConfigure ./configure \ + --enable-regex-tests --without-included-regex \ + --disable-rpath --with-gnu-ld + make $jobArgs +} + +INSTALL() +{ + make install + rm $libDir/charset.alias + rmdir $libDir +}