updated bash and readline

This commit is contained in:
Julien Lepiller
2014-03-15 20:11:49 +01:00
parent f92737d5b1
commit ff1dcecb3a
3 changed files with 155 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
SUMMARY="The GNU Bourne Again Shell"
DESCRIPTION="
Bash is an sh-compatible command language interpreter that \
executes commands read from the standard input or from a file. Bash also \
incorporates useful features from the Korn and C shells (ksh and csh).
"
HOMEPAGE="http://tiswww.case.edu/php/chet/bash/bashtop.html"
SRC_URI="ftp://ftp.gnu.org/gnu/bash/bash-4.3.tar.gz"
CHECKSUM_SHA512="a852b8e46ee55568dce9d23a30a9dbd1c770c2d2a4bc91e1c3177d723b31b32c5d69d19704a93f165891b409b9dd2cc65723372044e2bd0ee49ed59a11512651"
REVISION="1"
LICENSE="GNU GPL v3"
COPYRIGHT="1989, Brian Fox; 2010, Chet Ramey"
ARCHITECTURES="?x86_gcc2 ?x86 ?x86_64"
PROVIDES="
bash = $portVersion
cmd:bash = $portVersion
cmd:bashbug = $portVersion
"
REQUIRES="
haiku >= $haikuVersion
lib:libreadline
lib:libncursesw
"
BUILD_REQUIRES="
haiku_devel
devel:libreadline
devel:libncursesw
cmd:gcc
cmd:bison
cmd:make
cmd:awk
"
#PATCHES="
# "
BUILD()
{
runConfigure ./configure --without-bash-malloc --with-installed-readline
make $jobArgs
}
INSTALL()
{
make install
}

View File

@@ -0,0 +1,24 @@
diff -ur orig/readline-6.2/support/shlib-install readline-6.2/support/shlib-install
--- orig/readline-6.2/support/shlib-install 2009-10-28 14:30:18.057409536 +0100
+++ readline-6.2/support/shlib-install 2013-05-03 01:12:28.695468032 +0200
@@ -117,7 +117,7 @@
# Create symlinks to the installed library. This section is incomplete.
#
case "$host_os-$host_vendor" in
-*linux*|freebsd*-gentoo)
+*linux*|freebsd*-gentoo|haiku*)
# libname.so.M -> libname.so.M.N
${echo} ${RM} ${INSTALLDIR}/$LINK2
if [ -z "$uninstall" ]; then
diff -ur orig/readline-6.2/support/shobj-conf readline-6.2/support/shobj-conf
--- orig/readline-6.2/support/shobj-conf 2009-10-28 14:20:21.057147392 +0100
+++ readline-6.2/support/shobj-conf 2013-05-03 01:12:38.631242752 +0200
@@ -109,7 +109,7 @@
;;
# All versions of Linux (including Gentoo/FreeBSD) or the semi-mythical GNU Hurd.
-linux*-*|gnu*-*|k*bsd*-gnu-*|freebsd*-gentoo)
+linux*-*|gnu*-*|k*bsd*-gnu-*|freebsd*-gentoo|haiku*)
SHOBJ_CFLAGS=-fPIC
SHOBJ_LD='${CC}'
SHOBJ_LDFLAGS='-shared -Wl,-soname,$@'

View File

@@ -0,0 +1,80 @@
SUMMARY="The GNU Readline library"
DESCRIPTION="
The GNU Readline library provides a set of functions for use by applications \
that allow users to edit command lines as they are typed in. Both Emacs and vi \
editing modes are available. The Readline library includes additional \
functions to maintain a list of previously-entered command lines, to recall \
and perhaps reedit those lines, and perform csh-like history expansion on \
previous commands.
The history facilites are also placed into a separate library, the History \
library, as part of the build process. The History library may be used without \
Readline in applications which desire its capabilities.
"
HOMEPAGE="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html"
COPYRIGHT="1989-2011 Free Software Foundation, Inc."
LICENSE="GNU GPL v3"
SRC_URI="ftp://ftp.gnu.org/gnu/readline/readline-6.3.tar.gz"
CHECKSUM_MD5="33c8fb279e981274f485fd91da77e94a"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PATCHES="readline-6.3.patch"
PROVIDES="
readline$secondaryArchSuffix = $portVersion compat >= 6
lib:libhistory$secondaryArchSuffix = $portVersion compat >= 6
lib:libreadline$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
lib:libncurses$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
devel:libncurses$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize
cmd:make
"
BUILD()
{
libtoolize --force --copy --install
aclocal
autoconf
runConfigure ./configure \
--with-curses
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libhistory libreadline
rmdir $binDir
# devel package
packageEntries devel \
$dataDir \
$developDir \
$documentationDir
}
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
readline${secondaryArchSuffix}_devel = $portVersion
devel:libhistory$secondaryArchSuffix = $portVersion compat >= 6
devel:libreadline$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES_devel="
readline$secondaryArchSuffix == $portVersion base
"