epspdf-0.5.3.ebuild 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. inherit texlive-common eutils
  5. DESCRIPTION="GUI and command-line converter for [e]ps and pdf"
  6. HOMEPAGE="http://tex.aanhet.net/epspdf/"
  7. SRC_URI="http://tex.aanhet.net/epspdf/${PN}.${PV}.tgz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. 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 ~sparc64-solaris ~x64-solaris ~x86-solaris"
  11. IUSE="doc tk"
  12. DEPEND="sys-apps/texinfo"
  13. RDEPEND="!<dev-texlive/texlive-pictures-2011-r1
  14. dev-lang/ruby
  15. app-text/ghostscript-gpl
  16. tk? ( dev-lang/tk )"
  17. S=${WORKDIR}/${PN}
  18. INSTALLDIR=/usr/share/${PN}
  19. FILES="epspdf.rb epspdfrc.rb makegray.pro"
  20. TKFILES="epspdf.help epspdf.icns epspdf.ico epspdftk.tcl"
  21. #epspdf.info seems broken, rebuild it
  22. src_compile() {
  23. cd "${S}/doc"
  24. makeinfo epspdf.texi || die
  25. }
  26. src_install() {
  27. dodir ${INSTALLDIR}
  28. cp -p ${FILES} "${ED}/${INSTALLDIR}" || die
  29. if use tk ; then
  30. cp -p ${TKFILES} "${ED}/${INSTALLDIR}" || die
  31. fi
  32. dobin_texmf_scripts "${PN}/epspdf.rb"
  33. use tk && dobin_texmf_scripts "${PN}/epspdftk.tcl"
  34. doinfo doc/epspdf.info
  35. dodoc doc/Changelog
  36. if use doc ; then
  37. dodoc doc/epspdf.pdf
  38. dohtml -r doc
  39. fi
  40. # give it a .desktop
  41. if use tk; then
  42. make_desktop_entry epspdftk epspdftk "${INSTALLDIR}/epspdf.ico" "Graphics;ImageProcessing"
  43. fi
  44. }