Files
haikuports/dev-tcltk/expect/expect-5.45.4.recipe
PulkoMandy 23ac12d24b expect: fix PTY access
- Fix use of openpty function (it is in libbsd, so link to that)
- Import some Debian patches to fix missing prototypes

Fixes #5820
2023-06-29 23:20:00 +02:00

86 lines
1.7 KiB
Bash

SUMMARY="A tool to automate interactive applications"
DESCRIPTION="expect is a program that performs programmed \
dialogue with other interactive programs."
HOMEPAGE="http://www.nist.gov/el/msid/expect.cfm"
COPYRIGHT="1987-1994 The Regents of the University of California.
1994-1997 Sun Microsystems, Inc.
1993-1996 Lucent Technologies.
1998-1999 Scriptics Corporation."
LICENSE="Public Domain"
REVISION="2"
SOURCE_URI="http://downloads.sourceforge.net/project/expect/Expect/$portVersion/expect$portVersion.tar.gz"
CHECKSUM_SHA256="49a7da83b0bdd9f46d04a04deec19c7767bb9a323e40c4781f89caf760b92c34"
SOURCE_DIR="expect$portVersion"
PATCHES="expect-$portVersion.patchset"
ARCHITECTURES="all"
PROVIDES="
expect = $portVersion
cmd:autoexpect
cmd:autopasswd
cmd:cryptdir
cmd:decryptdir
cmd:dislocate
cmd:expect
cmd:ftp_rfc
cmd:kibitz
cmd:lpunlock
cmd:mkpasswd
cmd:multixterm
cmd:passmass
cmd:rftp
cmd:rlogin_cwd
cmd:timed_read
cmd:timed_run
cmd:tknewsbiff
cmd:tkpasswd
cmd:unbuffer
cmd:weather
cmd:xkibitz
cmd:xpstat
lib:libexpect$portVersion
"
REQUIRES="
haiku
tcl
"
PROVIDES_devel="
expect_devel = $portVersion
devel:libexpect$portVersion
"
REQUIRES_devel="
expect == $portVersion
"
BUILD_REQUIRES="
haiku_devel
tcl_devel
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:gcc
cmd:make
"
BUILD()
{
autoconf -f
LDFLAGS="-lbsd" CFLAGS="-g" runConfigure --omit-dirs "docDir dataRootDir" ./configure \
--with-tcl=$(finddir B_SYSTEM_DEVELOP_DIRECTORY)/lib --enable-symbols
LDFLAGS="-lbsd" CFLAGS="-g" make $jobArgs
}
INSTALL()
{
make install
mv $libDir/expect$portVersion/libexpect$portVersion.so $libDir
prepareInstalledDevelLib libexpect$portVersion
packageEntries devel $developDir
}