active-dvi-1.10.2-r1.ebuild 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="5"
  4. inherit eutils autotools texlive-common
  5. MY_PN=${PN/ctive-/}
  6. MY_P=${MY_PN}-${PV}
  7. S=${WORKDIR}/${MY_P}
  8. DESCRIPTION="A DVI previewer and a presenter for slides written in LaTeX"
  9. SRC_URI="http://gallium.inria.fr/advi/${MY_P}.tar.gz"
  10. HOMEPAGE="http://gallium.inria.fr/advi/"
  11. LICENSE="LGPL-2.1"
  12. IUSE="+ocamlopt"
  13. SLOT="0"
  14. KEYWORDS="~amd64 ~ppc x86"
  15. RDEPEND=">=dev-lang/ocaml-3.11.2:=[ocamlopt?]
  16. >=dev-ml/camlimages-4.0.1:=[truetype,tiff,jpeg,postscript,X]
  17. virtual/latex-base
  18. app-text/ghostscript-gpl
  19. x11-libs/libXinerama"
  20. DEPEND="${RDEPEND}
  21. dev-texlive/texlive-pstricks
  22. dev-texlive/texlive-pictures
  23. dev-texlive/texlive-latexextra
  24. x11-proto/xineramaproto
  25. dev-ml/findlib
  26. app-text/htmlc
  27. dev-tex/hevea"
  28. DOCS=( "README" "TODO" )
  29. src_prepare() {
  30. epatch "${FILESDIR}/${PN}-1.9-htmlcflags.patch"
  31. AT_M4DIR="." eautoreconf
  32. }
  33. src_configure() {
  34. TEXMFMAIN="${EPREFIX}"/usr/share/texmf-site econf $(use_enable ocamlopt native-program) \
  35. --docdir="${EPREFIX}/usr/share/doc/${PF}" --enable-dependency-tracking #486066
  36. }
  37. src_compile() {
  38. export VARTEXFONTS="${T}/fonts"
  39. emake
  40. cd doc || die
  41. emake splash.dvi scratch_write_splash.dvi scratch_draw_splash.dvi
  42. }
  43. src_install() {
  44. emake DESTDIR="${D}" PACKAGE="${PF}" install
  45. # now install the documentation
  46. dodoc ${DOCS}
  47. export STRIP_MASK="*/bin/advi.byt"
  48. for i in "${ED}/usr/share/doc/${PF}/"*.dvi ; do
  49. docompress -x /usr/share/doc/${PF}/$(basename $i)
  50. done
  51. }
  52. pkg_postinst() {
  53. etexmf-update
  54. }
  55. pkg_postrm() {
  56. etexmf-update
  57. }