From a0f7e4962a46304a8daf58ffeb45c553787a8000 Mon Sep 17 00:00:00 2001 From: miqlas <5569059+extrowerk@users.noreply.github.com> Date: Sat, 21 Jul 2018 17:41:47 +0200 Subject: [PATCH] es: new recipe (#2751) --- app-shells/es/es-0.9.1.recipe | 70 +++++++++++++++++++++++++ app-shells/es/patches/es-0.9.1.patchset | 22 ++++++++ 2 files changed, 92 insertions(+) create mode 100644 app-shells/es/es-0.9.1.recipe create mode 100644 app-shells/es/patches/es-0.9.1.patchset diff --git a/app-shells/es/es-0.9.1.recipe b/app-shells/es/es-0.9.1.recipe new file mode 100644 index 000000000..6c2060a21 --- /dev/null +++ b/app-shells/es/es-0.9.1.recipe @@ -0,0 +1,70 @@ +SUMMARY="An extensible shell" +DESCRIPTION="The language was derived from the Plan 9 shell, rc, and was \ +influenced by functional programming languages, such as Scheme, and the Tcl \ +embeddable programming language." +HOMEPAGE="https://wryun.github.io/es-shell/" +COPYRIGHT="Paul Haahr and Byron Rakitzis + Soren Dayton + James Haggerty" +LICENSE="Public Domain" +REVISION="1" +SOURCE_URI="https://github.com/wryun/es-shell/releases/download/v$portVersion/es-$portVersion.tar.gz" +CHECKSUM_SHA256="b0b41fce99b122a173a06b899a4d92e5bd3cc48b227b2736159f596a58fff4ba" +SOURCE_DIR="" +PATCHES="es-$portVersion.patchset" + +ARCHITECTURES="!x86_gcc2 ?x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +commandSuffix=$secondaryArchSuffix +commandBinDir=$binDir +if [ "$targetArchitecture" = x86_gcc2 ]; then + commandSuffix= + commandBinDir=$prefix/bin +fi + +PROVIDES=" + es$secondaryArchSuffix = $portVersion + cmd:es$commandSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libreadline$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libreadline$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoconf + cmd:autoheader + cmd:automake + cmd:awk + cmd:bison + cmd:byacc + cmd:gcc$secondaryArchSuffix + cmd:make + " + +defineDebugInfoPackage es$secondaryArchSuffix \ + "$commandBinDir"/es + +BUILD() +{ + export LDFLAGS="-lbsd" + export CFLAGS="-D_BSD_SOURCE" + runConfigure --omit-dirs binDir ./configure --bindir="$commandBinDir" + make $jobArgs +} + +INSTALL() +{ + make install +} + +TEST() +{ + make check +} diff --git a/app-shells/es/patches/es-0.9.1.patchset b/app-shells/es/patches/es-0.9.1.patchset new file mode 100644 index 000000000..073ba613f --- /dev/null +++ b/app-shells/es/patches/es-0.9.1.patchset @@ -0,0 +1,22 @@ +From 4689c8ea909b1ea1fddb59274180b732b4e0cee4 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= +Date: Fri, 29 Jun 2018 21:33:05 +0200 +Subject: Build fix + + +diff --git a/input.c b/input.c +index abf8573..db47ee4 100644 +--- a/input.c ++++ b/input.c +@@ -273,7 +273,7 @@ stdgetenv(name) + } + + char * +-getenv(char *name) ++mygetenv(char *name) + { + return realgetenv(name); + } +-- +2.16.4 +