caps-20071115.ebuild 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils multilib
  5. DESCRIPTION="Support library that allows third party applications access and use C.A.P.S. images"
  6. HOMEPAGE="http://www.softpres.org/"
  7. SRC_URI="mirror://gentoo/ipfdevlib_linux-20060612.tgz
  8. amd64? ( mirror://gentoo/ipflib_linux-amd64-${PV}.tgz )
  9. doc? ( mirror://gentoo/ipfdoc102a.zip )
  10. mirror://gentoo/config_uae_ocs13_512c-512s.zip"
  11. LICENSE="CAPS"
  12. SLOT="0"
  13. KEYWORDS="amd64 ppc x86"
  14. IUSE="doc"
  15. RESTRICT="strip"
  16. DEPEND="app-arch/unzip"
  17. RDEPEND=""
  18. S=${WORKDIR}
  19. QA_PREBUILT="usr/lib*/libcapsimage.so* usr/bin/ipfinfo"
  20. src_install() {
  21. insinto /usr/include/caps
  22. doins ipfdevlib_linux/include/caps/capsimage.h
  23. case ${ARCH} in
  24. ppc)
  25. dolib.so ipfdevlib_linux/lib/ppc/libcapsimage.so.2.0
  26. dobin ipfdevlib_linux/examples/ppc/ipfinfo
  27. ;;
  28. x86)
  29. dolib.so ipfdevlib_linux/lib/i686/libcapsimage.so.2.0
  30. dobin ipfdevlib_linux/examples/i686/ipfinfo
  31. ;;
  32. amd64)
  33. dolib.so ipflib_linux-amd64/libcapsimage.so.2.3
  34. dobin ipflib_linux-amd64/ipfinfo
  35. ;;
  36. *)
  37. eerror "Unsupported platform"
  38. ;;
  39. esac
  40. case ${ARCH} in
  41. ppc|x86)
  42. dosym libcapsimage.so.2.0 \
  43. /usr/$(get_libdir)/libcapsimage.so.2
  44. dodoc ipfdevlib_linux/{HISTORY,README}
  45. ;;
  46. amd64)
  47. dosym libcapsimage.so.2.3 \
  48. /usr/$(get_libdir)/libcapsimage.so.2
  49. dodoc ipflib_linux-amd64/{HISTORY,README}
  50. ;;
  51. esac
  52. insinto /usr/share/${PN}
  53. doins OCS_13_1Mb_800_600.uae
  54. doins ipfdevlib_linux/examples/ipfinfo.c
  55. use doc && dodoc CAPSLib102a-40.pdf
  56. }