# grep/cfg - "Build" settings for package

#---------------------------------------------------------------------

[technotes]

1. This package rebuilds critical component(s).  If  the  "build" pro-
cess  is interrupted, or fails for any reason),  correct  the  problem
(assuming  that  it  wasn't an  accidental control-C)  and  retry  the
"build"  procedure.  If the  "build"  isn't completed,  the system may
operate incorrectly.

#---------------------------------------------------------------------

2. This  package  depends  on  itself (i.e., "grep"). Additionally, it
depends on "mktemp", which may not be built until  a later point.  So,
if you build this distro from scratch,  the bootstrap distro  that you
start with needs to have its own copies of "grep" and "mktemp".

#---------------------------------------------------------------------

[buildtimes]

00.02 hours (or 001.27 minutes) - HP EliteBook 8560w 32GB RAM
00.02 hours (or 001.42 minutes) - ThinkPad E540 i7 4x2 16GB RAM
00.04 hours (or 002.42 minutes) - Compaq 1.7 GHz Intel Pentium 4 512MB
                                  RAM
00.05 hours (or 003.07 minutes) - Toshiba Satellite C655 E-300 CPU 4GB
                                  RAM

#---------------------------------------------------------------------

[settings]
build    = default
compat   = not-musl
license  = See "license*.txt" in installed tree
licfile  = COPYING
master   = glibc
mstatic  = yes
purge    = no                   # This is a critical package
setpaths = pcre

#---------------------------------------------------------------------

[depends]
bison3
coreutils
gawk
grep:forward
mktemp:forward
pcre:forward
pcre2:forward

#---------------------------------------------------------------------

[configure]
MANBASE=$PKGDIR_PROD/man
mkdir -p $MANBASE

bash ./configure \
    --prefix=$PKGDIR_PROD          \
    --build=$LACARCHBUILD          \
    --host=$LACARCHHOST            \
    --disable-dependency-tracking  \
    --disable-nls                  \
    --enable-perl-regexp           \
    --mandir=$MANBASE

#---------------------------------------------------------------------

[postbuild]
MAN1DIR=$PKGDIR_PROD/man/man1
rm -fr           $MAN1DIR
mkdir -p         $MAN1DIR
cp -p doc/grep.1 $MAN1DIR/
ls -l            $MAN1DIR/

#---------------------------------------------------------------------

# Original URLs. These URLs were valid at one point, but may have died
# since then. If you download newer versions of tarballs [etc.], don't
# delete  the  original versions,  as you may not  be able  to replace
# them.

[urls]
url_debian  = http://packages.debian.org/unstable/source/grep
url_home    = http://www.gnu.org/software/grep/

url_lfs     = http://www.linuxfromscratch.org/lfs/view/stable/\
chapter06/grep.html

url_tarball = ftp://ftp.gnu.org/gnu/grep/grep-3.8.tar.xz

#---------------------------------------------------------------------

[history]
181013 Fixed creation of "man" page
220903 Updated to 3.8