123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- set -e
- program=bison
- version=3.8.2
- release=1
- pkgcategory=devel
- tarname=${program}-${version}.tar.lz
- fetch=https://ftp.gnu.org/gnu/bison/$tarname
- description="
- GNU parser generator.
- Bison is a general-purpose parser generator that converts an annotated
- context-free grammar into a deterministic LR or generalized LR (GLR)
- parser employing LALR(1) parser tables. As an experimental feature,
- bison can also generate IELR(1) or canonical LR(1) parser tables.
- Once you are proficient with Bison, you can use it to develop a wide
- range of language parsers, from those used in simple desk calculators
- to complex programming languages.
- "
- homepage=https://www.gnu.org/software/bison
- license=GPLv3+
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
- ./configure CPPFLAGS="$QICPPFLAGS" CFLAGS="$QICFLAGS" \
- LDFLAGS="$QILDFLAGS -static" \
- $configure_args \
- --libdir=/usr/lib${libSuffix} \
- --infodir=$infodir \
- --docdir=$docsdir \
- --enable-threads=posix \
- --enable-nls \
- --build="$(gcc -dumpmachine)"
- make -j${jobs} V=1
- make -j1 install DESTDIR="$destdir"
-
- rm -f "${destdir}/usr/lib${libSuffix}/charset.alias"
-
- if test -d "${destdir}/$infodir"
- then
- rm -f "${destdir}/${infodir}/dir"
- lzip -9 "${destdir}/${infodir}"/*
- fi
-
- if test -d "${destdir}/$mandir"
- then
- lzip -9 "${destdir}/${mandir}"/man?/*
- fi
- }
|