mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
es: new recipe (#2751)
This commit is contained in:
70
app-shells/es/es-0.9.1.recipe
Normal file
70
app-shells/es/es-0.9.1.recipe
Normal file
@@ -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
app-shells/es/patches/es-0.9.1.patchset
Normal file
22
app-shells/es/patches/es-0.9.1.patchset
Normal file
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user