sed: add recipe for version 4.4.

This commit is contained in:
Jerome Duval
2017-02-16 22:27:21 +01:00
parent 31f6cb6033
commit c0783bf7ba
2 changed files with 96 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
From 7fc7761c22fbd9f5c481d97d8655f310ecb9180c Mon Sep 17 00:00:00 2001
From: Oliver Tappe <zooey@hirschkaefer.de>
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
<http://www.gnu.org/licenses/>. */
+#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 <zooey@hirschkaefer.de>
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

View File

@@ -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
}