recipe 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # Recipe file for guile.
  2. #
  3. # Maintainers: (C) 2017 Mateus P. Rodrigues, mprodrigues@dragora.org.
  4. #
  5. # Under the terms of the GNU General Public License.
  6. program=guile
  7. version=2.2.2
  8. release=1
  9. description="
  10. GNU Guile is the preferred extension system for the GNU Project.
  11. Guile is an implementation of the Scheme programming language, supporting the
  12. Revised5 and most of the Revised6 language reports, as well as many SRFIs. It
  13. also comes with a library of modules that offer additional features, like an
  14. HTTP server and client, XML parsing, and object-oriented programming.
  15. "
  16. homepage=https://www.gnu.org/software/guile/
  17. license=LGPL
  18. tarname=${program}-${version}.tar.lz
  19. # Remote source(s)
  20. fetch="https://ftp.gnu.org/gnu/guile/${tarname}"
  21. # Source documentation
  22. docs="ABOUT-NLS AUTHORS COPYING* ChangeLog* GUILE-VERSION HACKING LICENSE NEWS README THANKS TODO"
  23. build() {
  24. unpack "${tardir}/$tarname"
  25. cd "$srcdir"
  26. ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
  27. $configure_args \
  28. --libdir=/usr/lib${libSuffix} \
  29. --infodir=$infodir \
  30. --mandir=$mandir \
  31. --docdir=$docdir \
  32. --build="$(cc -dumpmachine)"
  33. make -j${jobs}
  34. make -j${jobs} install DESTDIR="$destdir"
  35. # Delete index file for the package
  36. if test -d "${destdir}/$infodir"
  37. then
  38. rm -f "${destdir}/${infodir}/dir"
  39. fi
  40. # Copy documentation
  41. mkdir -p "${destdir}/usr/local/share/doc/${program}-${version}"
  42. cp -p $docs "${destdir}/usr/local/share/doc/${program}-${version}/"
  43. }