dvipdfm-0.13.2d-r1.ebuild 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=3
  4. inherit eutils
  5. DESCRIPTION="DVI to PDF translator"
  6. SRC_URI="http://gaspra.kettering.edu/dvipdfm/${P}.tar.gz"
  7. HOMEPAGE="http://gaspra.kettering.edu/dvipdfm/"
  8. LICENSE="GPL-2"
  9. KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
  10. SLOT="0"
  11. IUSE=""
  12. DEPEND="!>=app-text/tetex-2
  13. >=media-libs/libpng-1.2.1
  14. >=sys-libs/zlib-1.1.4
  15. !app-text/ptex
  16. virtual/latex-base"
  17. RDEPEND="${DEPEND}"
  18. S=${WORKDIR}/${PN}
  19. src_prepare() {
  20. epatch "${FILESDIR}"/${P}-libpng14.patch
  21. }
  22. src_install () {
  23. einstall || die "einstall failed!"
  24. # Install .map and .enc files to correct locations, bug #200956
  25. dodir /usr/share/texmf/fonts/map/dvipdfm/base
  26. for i in cmr.map psbase14.map lw35urw.map lw35urwa.map t1fonts.map; do
  27. mv "${ED}usr/share/texmf/dvipdfm/config/${i}" "${ED}usr/share/texmf/fonts/map/dvipdfm/base" || die "moving .map file failed"
  28. done
  29. dodir /usr/share/texmf/fonts/enc/dvipdfm
  30. mv "${ED}usr/share/texmf/dvipdfm/base" "${ED}usr/share/texmf/fonts/enc/dvipdfm/base" || die "moving .enc file failed"
  31. dodoc AUTHORS ChangeLog Credits NEWS OBTAINING README* TODO
  32. docinto doc
  33. dodoc doc/*
  34. docinto latex-support
  35. dodoc latex-support/*
  36. insinto /usr/share/texmf/tex/latex/dvipdfm/
  37. doins latex-support/dvipdfm.def
  38. }
  39. pkg_postinst() {
  40. if [ "$ROOT" = "/" ] ; then
  41. "${EPREFIX}"/usr/sbin/texmf-update
  42. fi
  43. }