Skip to content

Commit

Permalink
es: new recipe (#2751)
Browse files Browse the repository at this point in the history
  • Loading branch information
extrowerk committed Jul 21, 2018
1 parent 09fa6b8 commit a0f7e49
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 0 deletions.
70 changes: 70 additions & 0 deletions app-shells/es/es-0.9.1.recipe
Original file line number Diff line number Diff line change
@@ -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
}
22 changes: 22 additions & 0 deletions app-shells/es/patches/es-0.9.1.patchset
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
From 4689c8ea909b1ea1fddb59274180b732b4e0cee4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
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

0 comments on commit a0f7e49

Please sign in to comment.