ffcall-1.10.ebuild 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Copyright 1999-2007 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. inherit eutils flag-o-matic
  4. DESCRIPTION="foreign function call libraries"
  5. HOMEPAGE="http://www.haible.de/bruno/packages-ffcall.html"
  6. SRC_URI="ftp://ftp.santafe.edu/pub/gnu/${P}.tar.gz"
  7. # "Ffcall is under GNU GPL. As a special exception, if used in GNUstep
  8. # or in derivate works of GNUstep, the included parts of ffcall are
  9. # under GNU LGPL." -ffcall author
  10. LICENSE="|| ( GPL-2 LGPL-2 )"
  11. SLOT="0"
  12. KEYWORDS="alpha amd64 ~hppa ppc sparc x86 ~x86-fbsd"
  13. IUSE=""
  14. DEPEND=""
  15. RDEPEND=""
  16. src_compile() {
  17. # Because CHOST is set to (for example)
  18. # alphaev67-unknown-linux-gnu, CPU gets set to alphaev67 which
  19. # doesn't work in the Makefile (29 Jan 2004 agriffis)
  20. local cpu_setting
  21. [[ "${ARCH}" == "alpha" ]] && cpu_setting='CPU=alpha'
  22. append-flags -fPIC
  23. econf || die "./configure failed"
  24. make ${cpu_setting} || die
  25. }
  26. src_install() {
  27. dodoc NEWS README
  28. dohtml avcall/avcall.html \
  29. callback/callback.html \
  30. callback/trampoline_r/trampoline_r.html \
  31. trampoline/trampoline.html \
  32. vacall/vacall.html
  33. doman avcall/avcall.3 \
  34. callback/callback.3 \
  35. callback/trampoline_r/trampoline_r.3 \
  36. trampoline/trampoline.3 \
  37. vacall/vacall.3
  38. dolib.a avcall/.libs/libavcall.a \
  39. avcall/.libs/libavcall.la \
  40. vacall/libvacall.a \
  41. callback/.libs/libcallback.a \
  42. callback/.libs/libcallback.la \
  43. trampoline/libtrampoline.a
  44. insinto /usr/include
  45. doins avcall/avcall.h \
  46. callback/callback.h \
  47. trampoline/trampoline.h \
  48. callback/trampoline_r/trampoline_r.h \
  49. vacall/vacall.h \
  50. callback/vacall_r.h
  51. }