From f4359dc2fd34d930d3f7d26053c87087910b5ca2 Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Sat, 19 Apr 2014 21:08:35 +0000 Subject: [PATCH] dash: add a recipe for version 0.5.7 * still broken, loops in wait3(). --- app-shells/dash/dash-0.5.7.recipe | 47 +++++++++++++++++++++ app-shells/dash/patches/dash-0.5.7.patchset | 21 +++++++++ 2 files changed, 68 insertions(+) create mode 100644 app-shells/dash/dash-0.5.7.recipe create mode 100644 app-shells/dash/patches/dash-0.5.7.patchset diff --git a/app-shells/dash/dash-0.5.7.recipe b/app-shells/dash/dash-0.5.7.recipe new file mode 100644 index 000000000..826bcad9b --- /dev/null +++ b/app-shells/dash/dash-0.5.7.recipe @@ -0,0 +1,47 @@ +SUMMARY="POSIX-compliant implementation of /bin/sh." +DESCRIPTION=" +Dash is a POSIX-compliant implementation of /bin/sh that aims to be as small \ +as possible. It does this without sacrificing speed where possible. In fact, \ +it is significantly faster than bash (the GNU Bourne-Again Shell) for most tasks. +" +HOMEPAGE="http://gondor.apana.org/~herbert/dash/" +SRC_URI="http://gondor.apana.org/~herbert/dash/files/dash-0.5.7.tar.gz" +CHECKSUM_SIZE="223794" +CHECKSUM_RMD160="1878942f8ab5723ccfb2eded34169606b4cec475" +CHECKSUM_SHA512="77ad016fa5fb3fcb0d940b29d3fa914f546d79cdf2221ed47e4dec6d3a005b25d2d32ee1fdd4f662a7a84274572b72235b82e4c39995c7ca0bb049a7d88595b5" +REVISION="1" +LICENSE="GNU GPL v3" +COPYRIGHT="Copyright (c) 1989-1994 The Regents of the University of California. 1997 Christos Zoulas. 1997-2005 Herbert Xu." + +ARCHITECTURES="?x86_gcc2 ?x86 !x86_64" + +PATCHES="dash-0.5.7.patchset" + +PROVIDES=" + dash = $portVersion + cmd:dash = $portVersion + " + +REQUIRES=" + haiku >= $haikuVersion + lib:libreadline + lib:libncursesw + " + +BUILD_REQUIRES=" + haiku_devel >= $haikuVersion + cmd:gcc + cmd:awk + cmd:make + " + +BUILD() +{ + runConfigure ./configure + make $jobArgs LIBS=-lbsd +} + +INSTALL() +{ + make install +} diff --git a/app-shells/dash/patches/dash-0.5.7.patchset b/app-shells/dash/patches/dash-0.5.7.patchset new file mode 100644 index 000000000..fc88d2dc2 --- /dev/null +++ b/app-shells/dash/patches/dash-0.5.7.patchset @@ -0,0 +1,21 @@ +From bf0f50131da4ab31343b239a7e4360ffeb82779a Mon Sep 17 00:00:00 2001 +From: Jerome Duval +Date: Sat, 19 Apr 2014 20:07:51 +0000 +Subject: string.h needs __USE_GNU + + +diff --git a/src/mystring.h b/src/mystring.h +index 083ea98..0381f6c 100644 +--- a/src/mystring.h ++++ b/src/mystring.h +@@ -35,6 +35,7 @@ + */ + + #include ++#define __USE_GNU + #include + + extern const char snlfmt[]; +-- +1.8.3.4 +