3.15. expect-5.45.4

Dataword tools means the technology of building temporary system, used in LFS before version 10.0.

All datawords in configuration can be checked with command auserdd:

    # first stage
    auserdd lfs,pass1
    # main stage
    auserdd lfs

#!/bin/sh
# Copyright © 1999-2022 Gerard Beekmans
# Copyright © 2017-2022 Random Crew
# Distributed under the terms of MIT License.


MY_P="expect${PV}"

Configuration

String with ause means the block below will be executed, if dataword tools is present in configuration.

String with ause_notenable means the given option will not be added, if tools is present in configuration.

src_config()
{
    if ause 'tools' ; then
        cp configure configure.orig
        sed 's:/usr/local/bin:/bin:' configure.orig > configure
    fi

    ./configure \
        --prefix=${PREFIX}   \
        --with-tcl=${PREFIX}/lib \
        $(ause_notenable 'tools' '--enable-shared' ) \
        $(ause_notenable 'tools' "--mandir=${PREFIX}/share/man" ) \
        --with-tclinclude=${PREFIX}/include
}

Compilation

src_compile()
{
    make ${MAKEOPTS}
}

Installation

src_install()
{
    make $(ause_notenable 'tools' 'SCRIPTS=' ) install ${MAKEOPTS} DESTDIR=${D}
}

Unit testing

src_check()
{
    make test
}

Build code

expect.build

Other files

meta.txt
text

Links

url.lfs: https://linuxfromscratch.org/lfs/view/11.1/chapter08/expect.html
url.lfs.stage1: