mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
sed 4.5: add recipe for the latest release but mark it as untested.
This commit is contained in:
22
sys-apps/sed/patches/sed-4.5.patchset
Normal file
22
sys-apps/sed/patches/sed-4.5.patchset
Normal file
@@ -0,0 +1,22 @@
|
||||
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 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
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
+#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
|
||||
|
||||
77
sys-apps/sed/sed-4.5.recipe
Normal file
77
sys-apps/sed/sed-4.5.recipe
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user