clx-0.7.4-r1.ebuild 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit common-lisp-3 eutils
  5. DESCRIPTION="CLX is the Common Lisp interface to the X11 protocol primarily for SBCL."
  6. HOMEPAGE="http://www.cliki.net/CLX"
  7. SRC_URI="http://common-lisp.net/~abridgewater/dist/${PN}/${P}.tgz"
  8. LICENSE="HPND"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~ppc ~sparc ~x86"
  11. IUSE="doc"
  12. DEPEND="sys-apps/texinfo
  13. doc? ( virtual/texi2dvi )"
  14. RDEPEND="!dev-lisp/cl-${PN}"
  15. src_prepare() {
  16. rm -v {exclcmac,sockcl,defsystem,provide,cmudep}.lisp || die
  17. eapply "${FILESDIR}"/gentoo-fix-asd.patch
  18. eapply "${FILESDIR}"/gentoo-fix-dep-openmcl.patch
  19. eapply "${FILESDIR}"/gentoo-fix-unused-vars.patch
  20. eapply "${FILESDIR}"/gentoo-fix-obsolete-eval-when.patch
  21. eapply "${FILESDIR}"/gentoo-fix-dynamic-extent-sbcl-1.0.45.patch
  22. eapply_user
  23. }
  24. src_compile() {
  25. cd manual || die
  26. makeinfo ${PN}.texinfo -o ${PN}.info || die "Cannot compile info docs"
  27. if use doc ; then
  28. VARTEXFONTS="${T}"/fonts \
  29. texi2pdf ${PN}.texinfo -o ${PN}.pdf || die "Cannot build PDF docs"
  30. fi
  31. }
  32. src_install() {
  33. common-lisp-install-sources *.lisp debug demo test
  34. common-lisp-install-asdf
  35. dodoc NEWS CHANGES README*
  36. doinfo manual/${PN}.info
  37. use doc && dodoc manual/${PN}.pdf
  38. }